Bug 212910 - graphics/qgis: QGIS on 11RC3 dies on signal 11 whilst starting up
Summary: graphics/qgis: QGIS on 11RC3 dies on signal 11 whilst starting up
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-22 20:25 UTC by Ian Goddard
Modified: 2017-03-13 06:52 UTC (History)
1 user (show)

See Also:
linimon: maintainer-feedback? (rhurlin)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Goddard 2016-09-22 20:25:07 UTC
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.
Comment 1 Rainer Hurling freebsd_committer freebsd_triage 2016-09-23 06:24:59 UTC
(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.
Comment 2 Ian Goddard 2016-09-23 09:45:54 UTC
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
Comment 3 Rainer Hurling freebsd_committer freebsd_triage 2016-09-23 10:53:02 UTC
(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
Comment 4 Ian Goddard 2016-09-23 12:27:34 UTC
(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.
Comment 5 Rainer Hurling freebsd_committer freebsd_triage 2016-09-23 15:06:45 UTC
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
Comment 6 Ian Goddard 2016-09-23 16:53:08 UTC
(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.
Comment 7 Ian Goddard 2016-09-24 20:47:49 UTC
(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 8 Jan Beich freebsd_committer freebsd_triage 2017-03-13 06:52:20 UTC
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.