[TIMOB-2482] iPhone: Crash on network change events
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-02-01T15:43:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Ygor Lemos |
Assignee | Hans Knöchel |
Created | 2011-04-15T03:20:58.000+0000 |
Updated | 2016-02-01T15:43:33.000+0000 |
Description
Follows my code and the crash reports.
When i started using the change eventListener for Ti.Network, and
switched the network on the device, several crashes have
raised.
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-04-15T03:20:58.000+0000 | 2732 |
Here follows some crash reports from XCode.
Titanium Mobile 1.4.2 x Xcode 3.25 w\ iOS SDK 4.2 Snow Leopard Build: 10M2423
The crash always happen on the same thread. When I flick the Airplane mode and get back to the application. It should only dismiss the modal window and go on, but it gets messy.
Pasting the crash report inline as lighthouse is not accepting it on file upload ( weirdo!? )
Incident Identifier: 6ECF35C8-292D-4A6F-916D-53D633C3192B
CrashReporter Key: 5c8216c22eb7d3f1e51d014e0873501d5ca2529d
Hardware Model: iPhone2,1
Process: ezRec [8281]
Path: /var/mobile/Applications/E096775B-E372-4A94-AD47-89994D2CB686/ezRec.app/ezRec
Identifier: ezRec
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-12-02 05:19:22.484 -0200
OS Version: iPhone OS 4.2.1 (8C148a)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
ezRec failed to resume in time
Elapsed total CPU time (seconds): 1.580 (user 0.870, system 0.710), 16% CPU
Elapsed application CPU time (seconds): 0.000, 0% CPU
Thread 0:
0 libSystem.B.dylib 0x311662c4 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x31193b3a semaphore_wait_signal + 2
2 libSystem.B.dylib 0x311680d0 pthread_mutex_lock + 252
3 Foundation 0x31cc5c60 -[NSRecursiveLock lock] + 8
4 ezRec 0x00075f62 -AnalyticsModule queueEvent:name:data:immediate:
5 ezRec 0x00076fc2 -AnalyticsModule analyticsEvent:
6 Foundation 0x31cd861c nsnote_callback + 136
7 CoreFoundation 0x3145711c __CFXNotificationPost_old + 396
8 CoreFoundation 0x31456dbc CFXNotificationPostNotification + 112
9 Foundation 0x31cc7d1c -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
10 ezRec 0x0002f81c +TiUtils queueAnalytics:name:data:
11 ezRec 0x00088e1a -TiApp applicationDidEnterBackground:
12 UIKit 0x338fd738 -[UIApplication handleApplicationSuspend:eventInfo:] + 468
13 UIKit 0x338a27a6 -[UIApplication handleEvent:withNewEvent:] + 1910
14 UIKit 0x338a1ec2 -[UIApplication sendEvent:] + 38
15 UIKit 0x338a1900 UIApplicationHandleEvent + 5084
16 GraphicsServices 0x35d66efc PurpleEventCallback + 660
17 CoreFoundation 0x314656f8 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 20
18 CoreFoundation 0x314656bc CFRunLoopDoSource1 + 160
19 CoreFoundation 0x31457f76 CFRunLoopRun + 514
20 CoreFoundation 0x31457c80 CFRunLoopRunSpecific + 224
21 CoreFoundation 0x31457b88 CFRunLoopRunInMode + 52
22 GraphicsServices 0x35d664a4 GSEventRunModal + 108
23 GraphicsServices 0x35d66550 GSEventRun + 56
24 UIKit 0x338d5322 -[UIApplication _run] + 406
25 UIKit 0x338d2e8c UIApplicationMain + 664
26 ezRec 0x000046d8 main (main.m:36)
27 ezRec 0x00003d5c 0x1000 + 11612
Thread 1:
0 libSystem.B.dylib 0x31192974 kevent + 24
1 libSystem.B.dylib 0x3123c704 dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x3123c174 dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x3123bb98 dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x311e024a pthread_wqthread + 258
5 libSystem.B.dylib 0x311d8970 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x31166268 mach_msg_trap + 20
1 libSystem.B.dylib 0x31168354 mach_msg + 44
2 CoreFoundation 0x31458648 CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x31457ed2 CFRunLoopRun + 350
4 CoreFoundation 0x31457c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x31457b88 CFRunLoopRunInMode + 52
6 WebCore 0x33d9f124 RunWebThread(void*) + 332
7 libSystem.B.dylib 0x311df886 _pthread_start + 242
8 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 3:
0 libSystem.B.dylib 0x311de9f0 semwait_signal + 24
1 libSystem.B.dylib 0x311937ec _pthread_cond_wait + 748
2 libSystem.B.dylib 0x311933d2 pthread_cond_wait + 26
3 Foundation 0x31cf1704 -[NSCondition wait] + 164
4 ezRec 0x00021672 -KrollContext main
5 Foundation 0x31ccf192 -[NSThread main] + 38
6 Foundation 0x31cc8242 NSThreadmain + 966
7 libSystem.B.dylib 0x311df886 _pthread_start + 242
8 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 4:
0 libSystem.B.dylib 0x311de9f0 _semwait_signal + 24
1 libSystem.B.dylib 0x311937ec pthread_cond_wait + 748
2 libSystem.B.dylib 0x311933d2 pthread_cond_wait + 26
3 ezRec 0x000ce4a6 WTI::TCMalloc_PageHeap::scavengerThread() (FastMalloc.cpp:2304)
4 ezRec 0x000ce4ce WTI::TCMalloc_PageHeap::runScavengerThread(void*) (FastMalloc.cpp:1438)
5 libSystem.B.dylib 0x311df886 _pthread_start + 242
6 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 5:
0 libSystem.B.dylib 0x311de9f0 _semwait_signal + 24
1 libSystem.B.dylib 0x311937ec pthread_cond_wait + 748
2 libSystem.B.dylib 0x311933d2 pthread_cond_wait + 26
3 CoreMedia 0x31a9cb14 WaitOnCondition + 4
4 CoreMedia 0x31a9ca5a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x30e74c9c fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x31ab8f76 figThreadMain + 166
7 libSystem.B.dylib 0x311df886 _pthread_start + 242
8 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 6:
0 libSystem.B.dylib 0x311de9f0 semwait_signal + 24
1 libSystem.B.dylib 0x311937ec _pthread_cond_wait + 748
2 libSystem.B.dylib 0x311933d2 pthread_cond_wait + 26
3 Foundation 0x31cf1704 -[NSCondition wait] + 164
4 ezRec 0x0002193e -KrollContext main
5 Foundation 0x31ccf192 -[NSThread main] + 38
6 Foundation 0x31cc8242 NSThreadmain + 966
7 libSystem.B.dylib 0x311df886 _pthread_start + 242
8 libSystem.B.dylib 0x311d4a88 thread_start + 0
Unknown thread crashed with unknown flavor: 5, state_count: 1
Binary Images:
0x27f000 - 0x280fff dns.so armv7 /usr/lib/info/dns.so 0x284000 - 0x288fff AccessibilitySettingsLoader armv7 /System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader 0x2fe00000 - 0x2fe27fff dyld armv7 /usr/lib/dyld
0x30122000 - 0x30177fff libvDSP.dylib armv7 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x3019a000 - 0x301e4fff libstdc++.6.dylib armv7 /usr/lib/libstdc++.6.dylib
0x3024e000 - 0x302fdfff WebKit armv7 /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x30319000 - 0x30320fff libbz2.1.0.dylib armv7 /usr/lib/libbz2.1.0.dylib
0x3033c000 - 0x30429fff libiconv.2.dylib armv7 /usr/lib/libiconv.2.dylib
0x30569000 - 0x3056afff CoreSurface armv7 /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x30666000 - 0x306e2fff AVFoundation armv7 /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x30746000 - 0x3074ffff CoreVideo armv7 /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x30750000 - 0x3075bfff libz.1.dylib armv7 /usr/lib/libz.1.dylib
0x3075f000 - 0x30761fff MobileInstallation armv7 /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x30792000 - 0x3079cfff AccountSettings armv7 /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x3079d000 - 0x307a3fff liblockdown.dylib armv7 /usr/lib/liblockdown.dylib
0x30853000 - 0x30854fff DataMigration armv7 /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x309e4000 - 0x30a16fff AppSupport armv7 /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x30a1d000 - 0x30a54fff Security armv7 /System/Library/Frameworks/Security.framework/Security
0x30a5d000 - 0x30b0bfff QuartzCore armv7 /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x30c3d000 - 0x30c5afff AppleAccount armv7 /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount
0x30c7e000 - 0x30caafff DataAccess armv7 /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
0x30cc6000 - 0x30cd8fff iAd armv7 /System/Library/Frameworks/iAd.framework/iAd
0x30d3c000 - 0x30d3ffff ActorKit armv7 /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit
0x30d54000 - 0x30d61fff libbsm.0.dylib armv7 /usr/lib/libbsm.0.dylib
0x30e17000 - 0x30e4dfff CoreLocation armv7 /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x30e5e000 - 0x30e70fff VoiceServices armv7 /System/Library/PrivateFrameworks/VoiceServices.framework/VoiceServices
0x30e71000 - 0x30faefff MediaToolbox armv7 /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x30faf000 - 0x30feefff libGLImage.dylib armv7 /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x3101d000 - 0x3101ffff CrashReporterSupport armv7 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x31020000 - 0x3102cfff SpringBoardServices armv7 /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x31077000 - 0x3115ffff libGLProgrammability.dylib armv7 /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
0x31160000 - 0x31163fff IOSurface armv7 /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x31165000 - 0x31276fff libSystem.B.dylib armv7 /usr/lib/libSystem.B.dylib
0x31324000 - 0x31336fff PersistentConnection armv7 /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x31337000 - 0x31371fff IOKit armv7 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x313a4000 - 0x313aafff StoreKit armv7 /System/Library/Frameworks/StoreKit.framework/StoreKit
0x313fa000 - 0x3140dfff libmis.dylib armv7 /usr/lib/libmis.dylib
0x31425000 - 0x31429fff AssetsLibraryServices armv7 /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x31430000 - 0x31516fff CoreFoundation armv7 /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x31517000 - 0x31519fff IOMobileFramebuffer armv7 /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x3151b000 - 0x3151efff CertUI armv7 /System/Library/PrivateFrameworks/CertUI.framework/CertUI
0x3153d000 - 0x31546fff ITSync armv7 /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x31549000 - 0x3154cfff CaptiveNetwork armv7 /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x3155c000 - 0x3167cfff CoreGraphics armv7 /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x3167d000 - 0x3168dfff DataAccessExpress armv7 /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x3168e000 - 0x31694fff IAP armv7 /System/Library/PrivateFrameworks/IAP.framework/IAP
0x31697000 - 0x316c8fff VideoToolbox armv7 /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x316cf000 - 0x31702fff iCalendar armv7 /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar
0x31703000 - 0x31705fff libgcc_s.1.dylib armv7 /usr/lib/libgcc_s.1.dylib
0x31706000 - 0x317f8fff MusicLibrary armv7 /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary
0x317f9000 - 0x3183cfff ManagedConfiguration armv7 /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x3186b000 - 0x3187afff Notes armv7 /System/Library/PrivateFrameworks/Notes.framework/Notes
0x3187b000 - 0x31991fff libicucore.A.dylib armv7 /usr/lib/libicucore.A.dylib
0x31992000 - 0x3199bfff WebBookmarks armv7 /System/Library/PrivateFrameworks/WebBookmarks.framework/WebBookmarks
0x3199c000 - 0x31a5dfff libobjc.A.dylib armv7 /usr/lib/libobjc.A.dylib
0x31a5e000 - 0x31a66fff MobileBluetooth armv7 /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
0x31a7d000 - 0x31a8afff OpenGLES armv7 /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x31a8b000 - 0x31a95fff ExternalAccessory armv7 /System/Library/Frameworks/ExternalAccessory.framework/ExternalAccessory
0x31a9a000 - 0x31ad7fff CoreMedia armv7 /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x31ae0000 - 0x31ae3fff libGFXShared.dylib armv7 /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x31b29000 - 0x31b52fff MobileCoreServices armv7 /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x31b58000 - 0x31b5ffff AggregateDictionary armv7 /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x31bcc000 - 0x31be1fff libresolv.9.dylib armv7 /usr/lib/libresolv.9.dylib
0x31cc4000 - 0x31de3fff Foundation armv7 /System/Library/Frameworks/Foundation.framework/Foundation
0x31de4000 - 0x31e17fff QuickLook armv7 /System/Library/Frameworks/QuickLook.framework/QuickLook
0x31e18000 - 0x31e63fff libBLAS.dylib armv7 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x33856000 - 0x33884fff MIME armv7 /System/Library/PrivateFrameworks/MIME.framework/MIME
0x33886000 - 0x3389cfff EAP8021X armv7 /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x3389e000 - 0x33c1ffff UIKit armv7 /System/Library/Frameworks/UIKit.framework/UIKit
0x33c5e000 - 0x33ce7fff Message armv7 /System/Library/PrivateFrameworks/Message.framework/Message
0x33ce8000 - 0x342d0fff WebCore armv7 /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x34342000 - 0x3436bfff ContentIndex armv7 /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x3438c000 - 0x343e5fff EventKit armv7 /System/Library/Frameworks/EventKit.framework/EventKit
0x343e6000 - 0x34405fff Bom armv7 /System/Library/PrivateFrameworks/Bom.framework/Bom
0x344ea000 - 0x34623fff AudioToolbox armv7 /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x34628000 - 0x34628fff Accelerate armv7 /System/Library/Frameworks/Accelerate.framework/Accelerate
0x34641000 - 0x34700fff CFNetwork armv7 /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x3471b000 - 0x3473cfff MobileSync armv7 /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x3479e000 - 0x34854fff MapKit armv7 /System/Library/Frameworks/MapKit.framework/MapKit
0x34941000 - 0x34944fff ApplePushService armv7 /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x34952000 - 0x3495afff MobileWiFi armv7 /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x3495b000 - 0x34bf5fff libLAPACK.dylib armv7 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x34bf6000 - 0x34c36fff CoreAudio armv7 /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x34c4e000 - 0x34c86fff libCGFreetype.A.dylib armv7 /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x35227000 - 0x3532efff CoreData armv7 /System/Library/Frameworks/CoreData.framework/CoreData
0x35336000 - 0x353dffff libxml2.2.dylib armv7 /usr/lib/libxml2.2.dylib
0x353e1000 - 0x3548efff JavaScriptCore armv7 /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x354b4000 - 0x354bcfff libkxld.dylib armv7 /usr/lib/system/libkxld.dylib
0x354d9000 - 0x354f9fff PrintKit armv7 /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
0x354fa000 - 0x3553cfff CoreTelephony armv7 /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x3553d000 - 0x3558afff libsqlite3.dylib armv7 /usr/lib/libsqlite3.dylib
0x3558b000 - 0x3558dfff MediaRemote armv7 /System/Library/PrivateFrameworks/MediaRemote.framework/MediaRemote
0x3567c000 - 0x356ccfff GMM armv7 /System/Library/PrivateFrameworks/GMM.framework/GMM
0x3570a000 - 0x35a1afff GeoServices armv7 /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
0x35a23000 - 0x35a36fff MediaControl armv7 /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl
0x35a37000 - 0x35a3cfff MobileKeyBag armv7 /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x35a95000 - 0x35a95fff vecLib armv7 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x35b9f000 - 0x35ba5fff ProtocolBuffer armv7 /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x35bcc000 - 0x35bfbfff SystemConfiguration armv7 /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x35bff000 - 0x35ca0fff Celestial armv7 /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x35ca1000 - 0x35d10fff ProofReader armv7 /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x35d1a000 - 0x35d61fff MessageUI armv7 /System/Library/Frameworks/MessageUI.framework/MessageUI
0x35d62000 - 0x35d6efff GraphicsServices armv7 /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x35db1000 - 0x35e44fff ImageIO armv7 /System/Library/Frameworks/ImageIO.framework/ImageIO
0x35e52000 - 0x35e85fff AddressBook armv7 /System/Library/Frameworks/AddressBook.framework/AddressBook
0x35ea2000 - 0x35f38fff AddressBookUI armv7 /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x35f46000 - 0x35f49fff ArtworkCache armv7 /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
0x35f4a000 - 0x35f4ffff libMobileGestalt.dylib armv7 /usr/lib/libMobileGestalt.dylib
0x35f86000 - 0x35fbcfff CoreText armv7 /System/Library/Frameworks/CoreText.framework/CoreText
0x35fbd000 - 0x35fbffff libAccessibility.dylib armv7 /usr/lib/libAccessibility.dylib
0x35fd3000 - 0x35ffbfff StoreServices armv7 /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
0x35ffc000 - 0x36015fff libRIP.A.dylib armv7 /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x3607f000 - 0x3608efff MobileDeviceLink armv7 /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink
0x360a8000 - 0x361b7fff MediaPlayer armv7 /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
Closing as invalid, tested using a simplified feature test:
Output: