Bug #2168

Autosave leads to the GUI crash at certain conditions

Added by pospelov over 1 year ago. Updated over 1 year ago.

Status:ResolvedStart date:25 Sep 2018
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 38

Description

Seems that I managed to crash it on Linux and my stack coincide with the stack earlier reported by Marina on MacOS.

Actually I made autosave time small (2 sec), created few jobs in JobView, and then started to tune chaotically parameter in real time view (rotation angle of the box). Sooner or later it crashes
The probability to crash on debug version is lower than on release version.

  • Log from Marina on MacOS
GUI Crash:
Thread 9 Crashed:: SaveThread
0   _libBornAgainCore.so              0x000000010ec50458 (anonymous namespace)::WriteOutputDataDoubles(OutputData<double> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&, unsigned long) + 472
1   _libBornAgainCore.so              0x000000010ec50174 OutputDataWriteINTStrategy::writeOutputData(OutputData<double> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&) + 612
2   _libBornAgainCore.so              0x000000010ec55643 OutputDataWriter::writeOutputData(OutputData<double> const&) + 691
3   _libBornAgainCore.so              0x000000010ec44050 IntensityDataIOFactory::writeOutputData(OutputData<double> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 32
4   _libBornAgainGUI.so               0x000000010d0c19cb JobItemUtils::saveIntensityData(DataItem*, QString const&) + 75
5   _libBornAgainGUI.so               0x000000010cf74cb1 OutputDataIOService::save(QString const&) + 481
6   _libBornAgainGUI.so               0x000000010cf92175 ProjectDocument::save_project_data(QString const&) + 69
7   _libBornAgainGUI.so               0x000000010cf85d26 SaveThread::run() + 22
8   org.qt-project.QtCore             0x00000001105d7319 0x1105b0000 + 160537
9   libsystem_pthread.dylib           0x00007fffaaade93b _pthread_body + 180
10  libsystem_pthread.dylib           0x00007fffaaade887 _pthread_start + 286
11  libsystem_pthread.dylib           0x00007fffaaade08d thread_start + 13
  • My Linux log
1  std::multiplies<int>::operator()                                       stl_function.h              192 0x7ffff6fde326 
2  std::accumulate<int *, int, std::multiplies<int>>                      stl_numeric.h               154 0x7ffff6fdde2a 
3  LLData<double>::getTotalSize                                           LLData.h                    214 0x7ffff6fdd7e8 
4  OutputData<double>::getAllocatedSize                                   OutputData.h                65  0x7ffff7018805 
5  OutputDataIterator<double const, OutputData<double> const>::operator++ OutputDataIterator.h        154 0x7ffff7019102 
6  OutputDataIterator<double const, OutputData<double> const>::operator++ OutputDataIterator.h        164 0x7ffff5c11be9 
7  (anonymous namespace)::WriteOutputDataDoubles                          OutputDataWriteStrategy.cpp 41  0x7ffff5c0ba9c 
8  OutputDataWriteINTStrategy::writeOutputData                            OutputDataWriteStrategy.cpp 72  0x7ffff5c0bdd5 
9  OutputDataWriter::writeOutputData                                      OutputDataWriter.cpp        51  0x7ffff5c12492 
10 IntensityDataIOFactory::writeOutputData                                IntensityDataIOFactory.cpp  49  0x7ffff5bf749c 
11 JobItemUtils::saveIntensityData                                        JobItemUtils.cpp            122 0x7ffff714a9b2 
12 OutputDataIOService::save                                              OutputDataIOService.cpp     64  0x7ffff6f99a7c 
13 ProjectDocument::save_project_data                                     projectdocument.cpp         125 0x7ffff6fbcd57 
14 SaveThread::run                                                        SaveThread.cpp              33  0x7ffff6fae958 
15 QThreadPrivate::start(void *)                                                                          0x7fffefff6554 
16 start_thread                                                                                           0x7ffff48e8559 
17 clone                                                                                                  0x7fffef39b82f 

History

#1 Updated by pospelov over 1 year ago

  • Status changed from Sprint to Resolved

Also available in: Atom PDF