Summary: | Crash during exit on LabPlot 2.0 | ||
---|---|---|---|
Product: | [Applications] LabPlot2 | Reporter: | rgb.mldc |
Component: | general | Assignee: | Alexander Semke <alexander.semke> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | stefan.gerlach |
Priority: | NOR | Keywords: | drkonqi |
Version: | 2.0.0.beta2 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
rgb.mldc
2014-01-25 18:57:17 UTC
Note: even if the report says version 2.0 beta, the report is for LabPlot 2.0 final (the report system do not offer version 2 final as a choice) (In reply to comment #1) > Note: even if the report says version 2.0 beta, the report is for LabPlot > 2.0 final (the report system do not offer version 2 final as a choice) Dr.Konqi (usually) wouldn't lie. If the report says the version is '2.0.0-beta2', then it is . Maybe the maintainer forgets to bump version in the source code before making the final release. We forgot to adjust the version string in one place. So, the final release (v.2.0.0) is currently presented as 2.0.0beta2. With the final version I don't observe any crashes on openSUSE 12.1 and 13.1. Are you sure you've downloaded the final release? I got this version from Education repository, reported as version 2.0.0-2.1. A couple of days ago, that repo offered 2.0.0beta2. I changed version to the one offered by Science repo and it seems the crash disappeared (version 2.0.0-1.1. I'll do more testing later today and report back. I did some more testing. If I start LabPlot → New → New spreadsheet → type some data → New Worksheet → New xy-plot → box plot, two axes → new xy-curve → Select the data ranges → Save the document (not saving is the same) → close the window (File → Quit or with the cross on the window decoration) → Accept → Crash. Closing the document first and then quitting gives the same problem. But this only happens with NEW documents: opening an existing document, editing it and saving does NOT give the crash on exit. Thank you a lot for testing and giving LabPlot a try. I still cannot reproduce the crash. Do you always get the same call stack as reported in you first post? (In reply to comment #6) > Thank you a lot for testing and giving LabPlot a try. > I still cannot reproduce the crash. Do you always get the same call stack as > reported in you first post? Yes. I mean, the hexadecimal codes on each lines differ a bit ("#0 0x00007f076e7404ed in poll () from /lib64/libc.so.6" instead of "#0 0x00007f203ab814ed in poll () from /lib64/libc.so.6", for example), but all the libraries and calls are the same and are presented on the same order. Hi, i can reproduce the crash on openSUSE 12.2. I see a "*** glibc detected *** labplot2: free(): invalid next size (normal): 0x0000000002b759a0 ***" so something seems to be wrong with the memory management. valgrind gives the following errors. Maybe it helps finding the bug. ==31625== Invalid write of size 4 ==31625== at 0x754D564: QGridLayout::setHorizontalSpacing(int) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x4CC62E: CartesianPlotDock::CartesianPlotDock(QWidget*) (CartesianPlotDock.cpp:82) ==31625== by 0x49A5B7: GuiObserver::selectedAspectsChanged(QList<AbstractAspect*>&) (GuiObserver.cpp:168) ==31625== by 0x4974AA: GuiObserver::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_GuiObserver.cpp:52) ==31625== by 0x6DF1F5E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.1) ==31625== by 0x48DCA6: ProjectExplorer::selectedAspectsChanged(QList<AbstractAspect*>&) (moc_ProjectExplorer.cpp:161) ==31625== by 0x5CDF9B: ProjectExplorer::selectionChanged(QItemSelection const&, QItemSelection const&) (ProjectExplorer.cpp:473) ==31625== by 0x48DAC6: ProjectExplorer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_ProjectExplorer.cpp:102) ==31625== by 0x6DF1F5E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.1) ==31625== by 0x7A86C16: QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x7A8BD8C: QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x7A8CA7B: QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== Address 0xf8e788c is 4 bytes after a block of size 280 alloc'd ==31625== at 0x4C2A6E7: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==31625== by 0x753938A: QBoxLayout::QBoxLayout(QBoxLayout::Direction, QWidget*) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x7539ECD: QHBoxLayout::QHBoxLayout(QWidget*) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x4CC565: CartesianPlotDock::CartesianPlotDock(QWidget*) (CartesianPlotDock.cpp:71) ==31625== by 0x49A5B7: GuiObserver::selectedAspectsChanged(QList<AbstractAspect*>&) (GuiObserver.cpp:168) ==31625== by 0x4974AA: GuiObserver::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_GuiObserver.cpp:52) ==31625== by 0x6DF1F5E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.1) ==31625== by 0x48DCA6: ProjectExplorer::selectedAspectsChanged(QList<AbstractAspect*>&) (moc_ProjectExplorer.cpp:161) ==31625== by 0x5CDF9B: ProjectExplorer::selectionChanged(QItemSelection const&, QItemSelection const&) (ProjectExplorer.cpp:473) ==31625== by 0x48DAC6: ProjectExplorer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_ProjectExplorer.cpp:102) ==31625== by 0x6DF1F5E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.1) ==31625== by 0x7A86C16: QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== ==31625== Invalid write of size 4 ==31625== at 0x754D5A4: QGridLayout::setVerticalSpacing(int) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x4CC63F: CartesianPlotDock::CartesianPlotDock(QWidget*) (CartesianPlotDock.cpp:83) ==31625== by 0x49A5B7: GuiObserver::selectedAspectsChanged(QList<AbstractAspect*>&) (GuiObserver.cpp:168) ==31625== by 0x4974AA: GuiObserver::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_GuiObserver.cpp:52) ==31625== by 0x6DF1F5E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.1) ==31625== by 0x48DCA6: ProjectExplorer::selectedAspectsChanged(QList<AbstractAspect*>&) (moc_ProjectExplorer.cpp:161) ==31625== by 0x5CDF9B: ProjectExplorer::selectionChanged(QItemSelection const&, QItemSelection const&) (ProjectExplorer.cpp:473) ==31625== by 0x48DAC6: ProjectExplorer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_ProjectExplorer.cpp:102) ==31625== by 0x6DF1F5E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.1) ==31625== by 0x7A86C16: QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x7A8BD8C: QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x7A8CA7B: QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== Address 0xf8e7890 is 8 bytes after a block of size 280 alloc'd ==31625== at 0x4C2A6E7: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==31625== by 0x753938A: QBoxLayout::QBoxLayout(QBoxLayout::Direction, QWidget*) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x7539ECD: QHBoxLayout::QHBoxLayout(QWidget*) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== by 0x4CC565: CartesianPlotDock::CartesianPlotDock(QWidget*) (CartesianPlotDock.cpp:71) ==31625== by 0x49A5B7: GuiObserver::selectedAspectsChanged(QList<AbstractAspect*>&) (GuiObserver.cpp:168) ==31625== by 0x4974AA: GuiObserver::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_GuiObserver.cpp:52) ==31625== by 0x6DF1F5E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.1) ==31625== by 0x48DCA6: ProjectExplorer::selectedAspectsChanged(QList<AbstractAspect*>&) (moc_ProjectExplorer.cpp:161) ==31625== by 0x5CDF9B: ProjectExplorer::selectionChanged(QItemSelection const&, QItemSelection const&) (ProjectExplorer.cpp:473) ==31625== by 0x48DAC6: ProjectExplorer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_ProjectExplorer.cpp:102) ==31625== by 0x6DF1F5E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.8.1) ==31625== by 0x7A86C16: QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) (in /usr/lib64/libQtGui.so.4.8.1) ==31625== Hallo Stefan, ich habe den Bug gefunden, korrigiere ihn gleich. Warum hat valgring bei mir nix gemeldet?... Viele Grüße ich I commited a fix for this problem. Can you checkout the current code from our sourceforge repository as described here http://labplot.sourceforge.net/download/, compile and test it again? Hi, it is fixed for me. Fixed in v2.0.1 |