Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Crash on startup with ENABLE_THREADEDGL #569

Open
cryos opened this issue Mar 5, 2011 · 7 comments
Open

Crash on startup with ENABLE_THREADEDGL #569

cryos opened this issue Mar 5, 2011 · 7 comments

Comments

@cryos
Copy link
Owner

cryos commented Mar 5, 2011

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 ?? ()

Reported by: @jiahao

@cryos
Copy link
Owner Author

cryos commented Mar 5, 2011

The 'widget not contained in stack' message turns out be somewhat of a red herring, in that the ENABLE_THREADEDGL=OFF binary outputs the same messages. Upon startup, this is what the binary prints to console:

"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.
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"
QStackedLayout::setCurrentWidget: Widget 0xd83a00 not contained in stack
PreCalculate
Finished queue.
GLWidget initialisation...
GLWidget initialised...
createObjects()
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area

Original comment by: @jiahao

@cryos
Copy link
Owner Author

cryos commented Mar 5, 2011

Please try this patch: http://review.source.kitware.com/#change,980
Just execute given git command inside your local Avogadro git
Not Qt bug certainly

Original comment by: @annulen

@cryos
Copy link
Owner Author

cryos commented Apr 7, 2011

Not urgent, and poster hasn't responded about the proposed Git change. Decreasing priority.

Original comment by: @ghutchis

@cryos
Copy link
Owner Author

cryos commented Apr 7, 2011

Thanks for the reminder. The suggested patch provided by annulen worked for me.

Original comment by: @jiahao

@cryos
Copy link
Owner Author

cryos commented Jul 21, 2012

cFodc9 vvttigblozlr, [url=http://ihjctdehrrcv.com/]ihjctdehrrcv[/url], [link=http://fqaynsywlppm.com/]fqaynsywlppm[/link], http://ngcldnluorfl.com/

Original comment by: nobody

@cryos
Copy link
Owner Author

cryos commented Aug 18, 2012

UAOEyE bavzibaxvony, [url=http://xbzsabvfecnj.com/]xbzsabvfecnj[/url], [link=http://nzueavqhjzxd.com/]nzueavqhjzxd[/link], http://uwmzssmyujpt.com/

Original comment by: nobody

@cryos
Copy link
Owner Author

cryos commented Aug 30, 2012

wdR8c9 ghbqwsjonucp, [url=http://ecflxbgvypjq.com/]ecflxbgvypjq[/url], [link=http://dyagzohmcmeh.com/]dyagzohmcmeh[/link], http://udsdsypahwdu.com/

Original comment by: nobody

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants