You are not logged in.

#1 2013-03-04 13:11:37

Nico666
Member
Registered: 2012-04-24
Posts: 56

QGIS cannot open project after qt upgrade (exception std::bad_Alloc)

Hi everyone:

Might be an upstream problem, but since the package was upgraded in AUR (to meet the last qt upgrade), Qgis cannot open saved projects.

I have been looking for similar issued in Google, but haven't found any solution yet. Running qgis in a terminal doesn't seems to give any clues (I am ignoring the locale problems)

$ qgis
Warning: loading of qgis translation failed [/usr/share/qgis/i18n//qgis_en_GB]
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_GB]
Segmentation fault (core dumped)

The GUI shows a window with the message "Exception std::bad_Alloc", before crashing and closing.

I tried creating a new project and saving it. Qgis crashed with the same message when I tried to open this new project too.

Any help or report of a similar problem would be very appreciated-

Offline

#2 2013-03-07 15:30:01

Nico666
Member
Registered: 2012-04-24
Posts: 56

Re: QGIS cannot open project after qt upgrade (exception std::bad_Alloc)

Hi everyone,

I have no intention to bump this thread, but to add some additional information that might make this problem clearer for those versed guys here.

I learned to get a more informative output of the error using GDB, and though it is not very legible for me, those lines referring "libQtGui.so.4" and "libQtCore.so.4" made me think again about this problem as an effect of the recent qt upgrade, and that's why I am asking here and not upstream, because seems to me more likely to find someone with a similar problem among arch users.

Would be pleased if you can give a look to this output and help me to discover what is not working, if any of this makes any sense

$ gdb qgis

GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qgis...(no debugging symbols found)...done.

(gdb) r

Starting program: /usr/bin/qgis 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3400.3-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Warning: loading of qgis translation failed [/usr/share/qgis/i18n//qgis_en_GB]
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_GB]
[New Thread 0x7fffc8c3c700 (LWP 6297)]
[New Thread 0x7fffc26c9700 (LWP 6298)]
[New Thread 0x7fffc1ec8700 (LWP 6299)]
[New Thread 0x7fffc1257700 (LWP 6300)]
[New Thread 0x7fffc0a56700 (LWP 6301)]
[Thread 0x7fffc1ec8700 (LWP 6299) exited]
[Thread 0x7fffc26c9700 (LWP 6298) exited]
[Thread 0x7fffc0a56700 (LWP 6301) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00000001f413c640 in ?? ()

(gdb) bt full

#0  0x00000001f413c640 in ?? ()
No symbol table info available.
#1  0xbfc5895895895898 in ?? ()
No symbol table info available.
#2  0x3f94969ebf414980 in ?? ()
No symbol table info available.
#3  0x0000000000c10640 in ?? ()
No symbol table info available.
#4  0x0000000000f04a70 in ?? ()
No symbol table info available.
#5  0x00007fffffffd2f0 in ?? ()
No symbol table info available.
#6  0x00007ffff2643a7b in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#7  0x00007ffff29eed36 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#8  0x00007ffff2c0695b in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#9  0x00007ffff3245816 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#10 0x00007ffff25f415c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#11 0x00007ffff25f8e6b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#12 0x00007ffff45c1132 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.1.8.0
No symbol table info available.
#13 0x00007ffff32456ae in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#14 0x00007ffff25f4fcb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#15 0x00007ffff266fad4 in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#16 0x00007ffff266e861 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#17 0x00007ffff2694a22 in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#18 0x00007fffeee6b845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#19 0x00007fffeee6bb78 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#20 0x00007fffeee6bc34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0x00007ffff3273b66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#22 0x00007ffff269469e in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#23 0x00007ffff32443ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#24 0x00007ffff3244688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#25 0x00007ffff3249328 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
No symbol table info available.
#26 0x00000000004d0976 in main ()
No symbol table info available.

(gdb) thread apply all bt full

Thread 5 (Thread 0x7fffc1257700 (LWP 6300)):
#0  0x00007fffede34d01 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
No symbol table info available.
#1  0x00007fffeeea8eb5 in g_cond_wait_until () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#2  0x00007fffeee42761 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#3  0x00007fffeee42daa in g_async_queue_timeout_pop () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#4  0x00007fffeee8fb82 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#5  0x00007fffeee8f3a5 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#6  0x00007fffede30e0f in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#7  0x00007ffff0c9befd in clone () from /usr/lib/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7fffc8c3c700 (LWP 6297)):
#0  0x00007ffff0c92fad in poll () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007fffeee6bb14 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#2  0x00007fffeee6bf72 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#3  0x00007fffe335c336 in ?? () from /usr/lib/libgio-2.0.so.0
No symbol table info available.
#4  0x00007fffeee8f3a5 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#5  0x00007fffede30e0f in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#6  0x00007ffff0c9befd in clone () from /usr/lib/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x7ffff7fa37c0 (LWP 6291)):
#0  0x00000001f413c640 in ?? ()
No symbol table info available.
#1  0xbfc5895895895898 in ?? ()
No symbol table info available.
#2  0x3f94969ebf414980 in ?? ()
No symbol table info available.
#3  0x0000000000c10640 in ?? ()
No symbol table info available.
#4  0x0000000000f04a70 in ?? ()
No symbol table info available.
#5  0x00007fffffffd2f0 in ?? ()
No symbol table info available.
#6  0x00007ffff2643a7b in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#7  0x00007ffff29eed36 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#8  0x00007ffff2c0695b in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#9  0x00007ffff3245816 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#10 0x00007ffff25f415c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#11 0x00007ffff25f8e6b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#12 0x00007ffff45c1132 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.1.8.0
No symbol table info available.
#13 0x00007ffff32456ae in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#14 0x00007ffff25f4fcb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#15 0x00007ffff266fad4 in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#16 0x00007ffff266e861 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
No symbol table info available.
#17 0x00007ffff2694a22 in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#18 0x00007fffeee6b845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#19 0x00007fffeee6bb78 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#20 0x00007fffeee6bc34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0x00007ffff3273b66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#22 0x00007ffff269469e in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#23 0x00007ffff32443ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#24 0x00007ffff3244688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#25 0x00007ffff3249328 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
No symbol table info available.
#26 0x00000000004d0976 in main ()
No symbol table info available.

Thank you very much, your help would be truly appreciated.

Offline

#3 2013-03-08 00:46:00

Nico666
Member
Registered: 2012-04-24
Posts: 56

Re: QGIS cannot open project after qt upgrade (exception std::bad_Alloc)

Just in case someone else have a similar problem:

I tried different combinations of projects, and I realise that new projects saved without layers from the OpenLayers plugin can be re-opened.
Projects saved with openlayers, will crash no matter if you run qgis with the --noplugins option.

I still don't have any idea why this happens, nor hot to solve it: You can add openlayers and work with them normally, and you can remove the layer before closing qgis, just to be sure that you'll be able to open the project later.

Anyway, this is evidence that must be more related to the problem described here: http://osgeo-org.1560.n6.nabble.com/QGI … 79351.html, and is therefore not related with the qt upgrade as far as I can say.

This is then an upstream problem, and not supposed to be posted here in the Arch forums. Please accept my apologies for any inconvenience.

Offline

Board footer

Powered by FluxBB