todbot / blink1

Official software for blink(1) USB RGB LED by ThingM
https://blink1.thingm.com/
Other
958 stars 236 forks source link

Blink1Control Mac crash in net code (due to sleep?) #216

Closed todbot closed 9 years ago

todbot commented 9 years ago

Blink1Control has been reported to crash on Mac OSX perhaps when the computer is going into / coming out of a sleep cycle.

Top part of crash report from user with thread that crashed is below. Looks like it might be due to a Qt network request behaving badly when the network is unavailable, like what could happen when a computer is coming out of sleep and needs to rejoin WiFi.


Process:         Blink1Control [384]
Path:            /Applications/Blink1Control.app/Contents/MacOS/Blink1Control
Identifier:      com.thingm.Blink1Control
Version:         1.94 (0)
Code Type:       X86-64 (Native)
Parent Process:  launchd [138]
Responsible:     Blink1Control [384]
User ID:         501

Date/Time:       2015-03-08 22:45:26.939 -0700
OS Version:      Mac OS X 10.9.5 (13F34)
Report Version:  11
Anonymous UUID:  BA39CCA0-B083-F37A-40D2-4EE1D36DDC55

Sleep/Wake UUID: 2D3BBF22-6B7E-442E-B026-0372E673C34F

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   org.qt-project.QtNetwork        0x000000010e499234 QNetworkReply::setFinished(bool) + 4
1   org.qt-project.QtNetwork        0x000000010e4a16a7 0x10e457000 + 304807
2   org.qt-project.QtNetwork        0x000000010e4a9d2c 0x10e457000 + 339244
3   org.qt-project.QtNetwork        0x000000010e52b86c 0x10e457000 + 870508
4   org.qt-project.QtCore           0x000000010d9c45f3 QObject::event(QEvent*) + 755
5   org.qt-project.QtWidgets        0x000000010cc01dbb QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
6   org.qt-project.QtWidgets        0x000000010cc05110 QApplication::notify(QObject*, QEvent*) + 8192
7   com.thingm.Blink1Control        0x000000010ca8c44a MainApp::notify(QObject*, QEvent*) + 26
8   org.qt-project.QtCore           0x000000010d999cbb QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 971
9   libqcocoa.dylib                 0x000000010fe2f1be 0x10fe0e000 + 135614
10  libqcocoa.dylib                 0x000000010fe2fa41 0x10fe0e000 + 137793
11  com.apple.CoreFoundation        0x00007fff8e7165b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
12  com.apple.CoreFoundation        0x00007fff8e707c62 __CFRunLoopDoSources0 + 242
13  com.apple.CoreFoundation        0x00007fff8e7073ef __CFRunLoopRun + 831
14  com.apple.CoreFoundation        0x00007fff8e706e75 CFRunLoopRunSpecific + 309
15  com.apple.HIToolbox             0x00007fff8c131a0d RunCurrentEventLoopInMode + 226
16  com.apple.HIToolbox             0x00007fff8c1317b7 ReceiveNextEventCommon + 479
17  com.apple.HIToolbox             0x00007fff8c1315bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
18  com.apple.AppKit                0x00007fff8a19424e _DPSNextEvent + 1434
19  com.apple.AppKit                0x00007fff8a19389b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
20  com.apple.AppKit                0x00007fff8a18799c -[NSApplication run] + 553
21  libqcocoa.dylib                 0x000000010fe2e92d 0x10fe0e000 + 133421
22  org.qt-project.QtCore           0x000000010d9965dd QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 381
23  org.qt-project.QtCore           0x000000010d9995ba QCoreApplication::exec() + 346
24  com.thingm.Blink1Control        0x000000010ca370b5 main + 53
25  libdyld.dylib                   0x00007fff838c05fd start + 1
todbot commented 9 years ago

should be fixed in upgrade to Qt 5.5