On startup QGIS throws a couple of path errors and then dies. Warning: QCss::Parser - Failed to load file "/style.qss" QKqueueFileSystemWatcherEngine::addPaths: open: No such file or directory Warning: QFileSystemWatcher: failed to add paths: /home/ian/.qgis2//project_templates QGIS died on signal 11(no debugging symbols found)...[repeated many times]...(no debugging symbols found)...Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/local/lib/gcc48/libgcc_s.so.1] (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 33d49d00 (LWP 100338/qgis)] [New Thread 33d49400 (LWP 100337/qgis)] [New Thread 2f3c4c00 (LWP 100336/qgis)] [New Thread 3422a300 (LWP 100335/qgis)] [New Thread 2f216400 (LWP 100334/qgis)] [New Thread 2f216100 (LWP 100333/qgis)] [New Thread 2f215500 (LWP 100332/qgis)] [New Thread 2f214000 (LWP 100331/qgis)] (no debugging symbols found)...(no debugging symbols found)...[many more repeats](no debugging symbols found)...[Switching to Thread 2f214000 (LWP 100331/qgis)] 0x2d9da593 in _wait4 () from /lib/libc.so.7 On a quick look through the source it looks as if the file name is formed at qgsapplication.cpp line 474: QString stylesheetname = path + "/style.qss"; Clearly path is an empty string at this point. The second seems a little different. It looks as if the // element has resulted from a similar empty string in place of a directory name but comparing this with what I see in Linux I'd expect the path to be simply /home/ian/.qgis2/project_templates i.e. it should simply be a single / I get this by installing from both installing via pkg and building from ports.
(In reply to Ian Goddard from comment #0) Hi Ian, Thanks for your report. These messages about "path problems" appear on 11.x and 12.x for some time now. They are also reported from some MacOSX users. I will investigate some more, if we could solve the real issues, but this may take some time. In my experience, your crash after the initial start up phase has nothing to do with the problems, described before. From time to time, QGIS seems to have trouble with parts of its own configuration files, stored under ~/.qgis2. For me, in most cases, it helps to delete the cached file structure and then start QGIS again: rm -R ~/.qgis2/cache Could you please try and report back, if this also helps in your case, thank you.
Hi Rainer Thanks for your quick reply. Clearing the cache eliminates the project_templates message but not the style sheet message. The program still dies with sig 11. Is there anything I can help with here? Unfortunately my C is very rusty and I never used C++ Ian
(In reply to Ian Goddard from comment #2) My skills with C and C++ are very small, too :( There is one bigger C++ casting problem with QGIS versions > 2.14.3, which seems to only appear on FreeBSD and MacOSX and for which I really need help from a C/C++ expert. I asked for help upstream on the QGIS devel mailing list [1], but got no reaction or help. Because of this unsolved casting problem, we only have version 2.14.3 in the ports ... Could you, please, also try to rename (= backup) your complete ~/.ggis2 directory to something like ~/.qgis2_BAK, before starting QGIS again. This should create a new ~/.qgis2 dir. For me, this helped in all harder crashes until now. [1] https://lists.osgeo.org/pipermail/qgis-developer/2016-June/043233.html
(In reply to Rainer Hurling from comment #3) I'm afraid it doesn't help. The original errors recur. I see the style sheet is found in .qgis/themes/Night Mapping . I wonder if it's possible that the space in the file name is causing the problem although it seems unlikely.
Because my real life boxes all are running with recent 12.0-CURRENT, I just created a virtual instance of 11-RC3amd64 in VirtualBox, from an original VHD file from the FreeBSD project [1]. In this virtual instance I then did 'pkg install x11/xorg' and 'pkg install graphics/qgis'. After that I started Xorg via 'startx' and in it QGIS. I got exactly the two warnings, reported by you: Warning: QCss::Parser - Failed to load file "/style.qss" QKqueueFileSystemWatchEngine::addPaths: open: No such file or directory Warning: QFileSystemWatch: failed to add paths: /root/.qgis2//project_templates Reading contributors file /usr/local/share/qgis/doc/CONTRIBUTORS.................. After that, QGIS started without errors and seems to be functional :) So, if your installation is similar to mine described above, is there any chance, that you configured something on your own (options of dependend ports, system wide settings, ...)? [1] ftp://ftp.freebsd.org/pub/FreeBSD/releases/VM-IMAGES/11.0-RC3/amd64/Latest/FreeBSD-11.0-RC3-amd64.vhd.xz
(In reply to Rainer Hurling from comment #5) Mine was 386. I'll download a 64-bit & give that a try. I'll report back later.
(In reply to Ian Goddard from comment #6) OK, I've rebuilt as a 64-bit system. QGIS now works. It appears to be a 32-bit only bug so probably less of a problem. I wonder if there's a string-handling issue somewhere in the Qt libraries. But maybe this can be closed.
comment 0 lacks crash backtrace, so the cause remains unclear. Closing per maintainer request in bug 217719, and the reporter no longer being affected to continue investigation.