oasegips / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Crashes randomly and often #2304

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please read http://code.google.com/p/sigil/wiki/ReportingIssues for
information about submitting a good bug report.

What steps will reproduce the problem?
1. Usually it crashes when I try to add a blank page or another file.
2. Sometimes crashes when adding a photo.
3. Has crashed a few times when I'm going absolutely nothing at all.

What is the expected output? What do you see instead?
I get this pop-up from OS X:
Process:         Sigil [30222]
Path:            /Applications/Sigil.app/Contents/MacOS/Sigil
Identifier:      com.sigil-ebook.Sigil.app
Version:         0.7.2 (0.7.2)
Code Type:       X86-64 (Native)
Parent Process:  launchd [269]
User ID:         501

Date/Time:       2013-07-05 19:53:38.856 -0500
OS Version:      Mac OS X 10.8.4 (12E55)
Report Version:  10

Interval Since Last Report:          94085 sec
Crashes Since Last Report:           122
Per-App Interval Since Last Report:  5553 sec
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      AE8BD0DC-7EB5-4A1C-2E9E-73E369F92745

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff948301f8 _cache_getImp + 4
1   libobjc.A.dylib                 0x00007fff94831ed1 lookUpMethod + 41
2   libobjc.A.dylib                 0x00007fff94833cde class_respondsToSelector 
+ 31
3   com.apple.CoreFoundation        0x00007fff94098b9b objectIsKindOfClass + 43
4   com.apple.CoreFoundation        0x00007fff94098c02 __exceptionMatch + 18
5   libobjc.A.dylib                 0x00007fff9483b154 
_objc_exception_do_catch(objc_typeinfo*, objc_typeinfo*, void**, unsigned int) 
+ 144
6   libc++abi.dylib                 0x00007fff9325d26b 
get_adjusted_ptr(std::type_info const*, std::type_info const*, void**) + 71
7   libc++abi.dylib                 0x00007fff9325ce9d __gxx_personality_v0 + 889
8   libunwind.dylib                 0x00007fff91c5ec22 _Unwind_RaiseException + 
158
9   libc++abi.dylib                 0x00007fff9325d60e __cxa_rethrow + 72
10  libobjc.A.dylib                 0x00007fff9483b575 objc_exception_rethrow + 
40
11  com.apple.CoreFoundation        0x00007fff9403a146 CFRunLoopRunSpecific + 390
12  com.apple.HIToolbox             0x00007fff90ba0eb4 RunCurrentEventLoopInMode 
+ 209
13  com.apple.HIToolbox             0x00007fff90ba0b94 ReceiveNextEventCommon + 
166
14  com.apple.HIToolbox             0x00007fff90ba0ae3 
BlockUntilNextEventMatchingListInMode + 62
15  com.apple.AppKit                0x00007fff8e41f533 _DPSNextEvent + 685
16  com.apple.AppKit                0x00007fff8e41edf2 -[NSApplication 
nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
17  com.apple.AppKit                0x00007fff8e4161a3 -[NSApplication run] + 517
18  libqcocoa.dylib                 0x0000000106ba02cb 0x106b8b000 + 86731
19  QtCore                          0x0000000104f2a983 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 371
20  QtCore                          0x0000000104f2d705 QCoreApplication::exec() 
+ 357
21  com.sigil-ebook.Sigil.app       0x000000010115efe6 main + 3718
22  com.sigil-ebook.Sigil.app       0x000000010115db34 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff8efe9d16 kevent + 10
1   libdispatch.dylib               0x00007fff8dbb3dea _dispatch_mgr_invoke + 883
2   libdispatch.dylib               0x00007fff8dbb39ee _dispatch_mgr_thread + 54

Thread 2:: bearerThread
0   libsystem_kernel.dylib          0x00007fff8efe9322 __select + 10
1   QtCore                          0x0000000104f72cd5 qt_safe_select(int, 
fd_set*, fd_set*, fd_set*, timeval const*) + 69
2   QtCore                          0x0000000104f73bac 
QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, 
timeval*) + 668
3   QtCore                          0x0000000104f74afb 
QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 219
4   QtCore                          0x0000000104f2a983 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 371
5   QtCore                          0x0000000104dab1bd QThread::exec() + 109
6   QtCore                          0x0000000104daea3a 0x104d88000 + 158266
7   libsystem_c.dylib               0x00007fff916e17a2 _pthread_start + 327
8   libsystem_c.dylib               0x00007fff916ce1e1 thread_start + 13

Thread 3:: com.apple.CFSocket.private
0   libsystem_kernel.dylib          0x00007fff8efe9322 __select + 10
1   com.apple.CoreFoundation        0x00007fff94079f46 __CFSocketManager + 1302
2   libsystem_c.dylib               0x00007fff916e17a2 _pthread_start + 327
3   libsystem_c.dylib               0x00007fff916ce1e1 thread_start + 13

Thread 4:: JavaScriptCore::BlockFree
0   libsystem_kernel.dylib          0x00007fff8efe90fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff916e5fe9 _pthread_cond_wait + 869
2   QtWebKit                        0x000000010385ea28 0x10293e000 + 15862312
3   QtWebKit                        0x00000001039f95af 0x10293e000 + 17544623
4   libsystem_c.dylib               0x00007fff916e17a2 _pthread_start + 327
5   libsystem_c.dylib               0x00007fff916ce1e1 thread_start + 13

Thread 5:: Thread (pooled)
0   libsystem_kernel.dylib          0x00007fff8efe90fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff916e5fe9 _pthread_cond_wait + 869
2   QtCore                          0x0000000104daff89 0x104d88000 + 163721
3   QtCore                          0x0000000104dafdaa 
QWaitCondition::wait(QMutex*, unsigned long) + 170
4   QtCore                          0x0000000104dab800 0x104d88000 + 145408
5   QtCore                          0x0000000104daea3a 0x104d88000 + 158266
6   libsystem_c.dylib               0x00007fff916e17a2 _pthread_start + 327
7   libsystem_c.dylib               0x00007fff916ce1e1 thread_start + 13

Thread 6:: Thread (pooled)
0   libsystem_kernel.dylib          0x00007fff8efe90fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff916e5fe9 _pthread_cond_wait + 869
2   QtCore                          0x0000000104daff89 0x104d88000 + 163721
3   QtCore                          0x0000000104dafdaa 
QWaitCondition::wait(QMutex*, unsigned long) + 170
4   QtCore                          0x0000000104dab800 0x104d88000 + 145408
5   QtCore                          0x0000000104daea3a 0x104d88000 + 158266
6   libsystem_c.dylib               0x00007fff916e17a2 _pthread_start + 327
7   libsystem_c.dylib               0x00007fff916ce1e1 thread_start + 13

Thread 7:: CVDisplayLink
0   libsystem_kernel.dylib          0x00007fff8efe90fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff916e5fe9 _pthread_cond_wait + 869
2   com.apple.CoreVideo             0x00007fff949452a1 
CVDisplayLink::runIOThread() + 689
3   com.apple.CoreVideo             0x00007fff94944fd7 startIOThread(void*) + 148
4   libsystem_c.dylib               0x00007fff916e17a2 _pthread_start + 327
5   libsystem_c.dylib               0x00007fff916ce1e1 thread_start + 13

Thread 8:
0   libsystem_kernel.dylib          0x00007fff8efe96d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff916e3f4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff916e3d13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff916ce1d1 start_wqthread + 13

Thread 9:
0   libsystem_kernel.dylib          0x00007fff8efe96d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff916e3f4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff916e3d13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff916ce1d1 start_wqthread + 13

Thread 10:: QFileInfoGatherer
0   libsystem_kernel.dylib          0x00007fff8efe90fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff916e5fe9 _pthread_cond_wait + 869
2   QtCore                          0x0000000104daff89 0x104d88000 + 163721
3   QtCore                          0x0000000104dafdaa 
QWaitCondition::wait(QMutex*, unsigned long) + 170
4   QtWidgets                       0x0000000102061203 0x101e42000 + 2224643
5   QtCore                          0x0000000104daea3a 0x104d88000 + 158266
6   libsystem_c.dylib               0x00007fff916e17a2 _pthread_start + 327
7   libsystem_c.dylib               0x00007fff916ce1e1 thread_start + 13

Thread 11:
0   libsystem_kernel.dylib          0x00007fff8efe96d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff916e3f4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff916e3d13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff916ce1d1 start_wqthread + 13

Thread 12:
0   libsystem_kernel.dylib          0x00007fff8efe96d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff916e3f4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff916e3d13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff916ce1d1 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0xc00007fb3b348d00  rbx: 0x00007fff7bd87820  rcx: 0x0000000000000001  rdx: 0x0000000000000000
  rdi: 0xc00007fb3b348d70  rsi: 0x00007fff8ec484b3  rbp: 0x00007fff5eaa65e0  rsp: 0x00007fff5eaa65a0
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x00000000510558d1  r11: 0xc00007fb3b348d70
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0xc00007fb3b348d70  r15: 0x00007fff8ec484b3
  rip: 0x00007fff948301f8  rfl: 0x0000000000010202  cr2: 0x000000011e1c4000
Logical CPU: 0

-=-TRUNCATED=-=

What version of the product are you using? On what operating system?
Version 0.7.2
Loaded Qt: 5.0.2
OS X 10.8.4

Please provide any additional information below. If your source file is
required to fully understand the problem, please attach it to this issue.
Read the ReportingIssues wiki page before
submitting!

The problem is completely independent of epub file and sometimes crashes 
seconds after opening even with no epub open.

Original issue reported on code.google.com by j...@mayson.us on 6 Jul 2013 at 1:00

GoogleCodeExporter commented 9 years ago

Original comment by john@nachtimwald.com on 6 Jul 2013 at 3:00

GoogleCodeExporter commented 9 years ago
I've done a little more experimentation and here's what I think is happening...

If a folder I recently accessed with Sigil no longer exists, the program 
crashes.  For instance if I import ~/Desktop/some-dir/some-file.html into Sigil 
that will work.  Now suppose I rm -rf ~/Desktop/some-dir and then try to import 
~/Desktop/another-dir/another-file.html then it'll crash.  This is very 
repeatable.

Now in the above scenario let's say instead of attempting to import that second 
file I just let Sigil sit open.  It'll eventually crash if I have deleted the 
last folder it imported from.

Does this make sense?

I think it crashes on start-up if I have deleted the last folder accessed.

My workaround thus far is only import from ~/Desktop since it'll always be 
there.

Original comment by j...@mayson.us on 7 Jul 2013 at 10:05