Widget not contained in stack error with ENABLE_THREADEDGL

Bugs item #3200267, was opened at 2011-03-05 01:39
Message generated for change (Tracker Item Submitted) made by jiahao
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=3200267&group_id=165310

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Qt Bug
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jiahao Chen (jiahao)
Assigned to: Nobody/Anonymous (nobody)
Summary: Widget not contained in stack error with ENABLE_THREADEDGL

Initial Comment:
Running the avogadro binary freshly compiled from HEAD crashes. Binary compiled and run on Ubuntu 10.04 64-bit with ENABLE_THREADEDGL=ON. Turning this off does not produce this bug.

Here is some gdb output that might be helpful.

(gdb) run
Starting program: /home/cjh/local/bin/avogadro avogadro
[Thread debugging using libthread_db enabled]
Enabling Threads
"Avogadro version: 1.1.0 Git: 331b158
LibAvogadro version: 1.1.0 Git: 331b158"
Locale: "en_US"
Libavogadro translations not found.
System has OpenGL support.
About to test OpenGL capabilities.
OpenGL capabilities found:
Double Buffering.
Direct Rendering.
Antialiasing.
[New Thread 0x7fffef7b1710 (LWP 19008)]
[Thread 0x7fffef7b1710 (LWP 19008) exited]
Loading plugins: "/home/cjh/local/bin/…/lib/avogadro/1_1"
Searching for plugins in "/home/cjh/local/lib/avogadro/1_1"
Searching for plugins in "/home/cjh/local/lib/avogadro/1_1/colors"
Searching for plugins in "/home/cjh/local/lib/avogadro/1_1/engines"
Searching for plugins in "/home/cjh/local/lib/avogadro/1_1/extensions"
Searching for plugins in "/home/cjh/local/lib/avogadro/1_1/tools"
Loading plugins: “/home/cjh/.avogadro/1_1/plugins”
[New Thread 0x7fffef7b1710 (LWP 19010)]
[New Thread 0x7fffd432d710 (LWP 19011)]
Threaded GL enabled.
[New Thread 0x7fffd3b2c710 (LWP 19012)]
QStackedLayout::setCurrentWidget: Widget 0x859ba0 not contained in stack
PreCalculate
Finished queue.
GLWidget initialisation…
GLWidget initialised…
createObjects()

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd3b2c710 (LWP 19012)]
sem_post () at …/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S:34
34 …/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: No such file or directory.
in …/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S
(gdb) bt
#0 sem_post () at …/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S:34
#1 0x00007ffff1542a99 in PyThread_release_lock (lock=0x0) at …/Python/thread_pthread.h:374
#2 0x00007ffff3642324 in ~PythonThread (this=0x7ac560, widget=0x7fffe8245b60)
at /home/cjh/local/src/avogadro/libavogadro/src/pythonthread_p.h:37
#3 Avogadro::PythonExtension::paint (this=0x7ac560, widget=0x7fffe8245b60)
at /home/cjh/local/src/avogadro/libavogadro/src/pythonextension_p.cpp:269
#4 0x00007ffff35e0fb2 in Avogadro::GLWidget::render (this=0x7fffe8245b60)
at /home/cjh/local/src/avogadro/libavogadro/src/glwidget.cpp:797
#5 0x00007ffff35d858f in Avogadro::GLThread::run (this=0x777b60)
at /home/cjh/local/src/avogadro/libavogadro/src/glwidget.cpp:342
#6 0x00007ffff4c70775 in ?? () from /usr/lib/libQtCore.so.4
#7 0x00007ffff3e969ca in start_thread (arg=) at pthread_create.c:300
#8 0x00007ffff7b3f6fd in clone () at …/sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9 0x0000000000000000 in ?? ()


You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=3200267&group_id=165310