Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix coredump at exit #4

Closed
oroulet opened this issue Apr 9, 2017 · 3 comments
Closed

fix coredump at exit #4

oroulet opened this issue Apr 9, 2017 · 3 comments

Comments

@oroulet
Copy link
Contributor

oroulet commented Apr 9, 2017

I sometimes get a message about a pixmap create before qapplication causing the crash...
QPixmap: Must construct a QGuiApplication before a QPixmap
not sure it is related.
gdb does not give much information..
0 malloc_consolidate (av=av@entry=0x7ffff7bb3b00 <main_arena>) at malloc.c:4204
#1 0x00007ffff7875d1f in _int_malloc (av=av@entry=0x7ffff7bb3b00 <main_arena>, bytes=bytes@entry=4096)
at malloc.c:3485
#2 0x00007ffff7877d84 in __GI___libc_malloc (bytes=4096) at malloc.c:2925
#3 0x00007ffff5b97ecc in QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlagsQArrayData::AllocationOption) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4 0x00007fffecfa049e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#5 0x00007fffecfa05e4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6 0x00007fffed09b4c5 in QV4::WeakValue::free() () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7 0x00007fffed134d77 in QQmlData::destroyed(QObject*) () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8 0x00007ffff5d99dce in QObject::~QObject() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9 0x00007fffd43456d6 in ?? ()

@fuchsmich
Copy link

I will try to move all the setup stuff (args, singleton,...) from app.py to main_controller.py.
Then we can export the MainController to qml as a class to qml, it gets instanciated there and also dies properly with the exit of the application.

Maybe this solves this issue.

@oroulet
Copy link
Contributor Author

oroulet commented Apr 11, 2017

I would prefere not to have the singleton and arg stuff into MainController class... wait a little with that one.

@oroulet
Copy link
Contributor Author

oroulet commented Apr 16, 2017

done. Looks like qml stuff needed an explicit aprent

@oroulet oroulet closed this as completed Apr 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants