Nicht nachvollziehbarer Absturz

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Nicht nachvollziehbarer Absturz

    Hallo zusammen,

    im Build, den unsere Mitarbeiter vom Bildserver installieren können, kommt es zu folgendem Absturz.

    Quellcode

    1. Incident Identifier: E453B3B6-621E-4E8E-BC78-87E0C8834188
    2. CrashReporter Key: a34f8c9dc8de54951cf99560708732ad080164b0
    3. Hardware Model: iPad3,6
    4. Process: MyApp [268]
    5. Path: /private/var/mobile/Containers/Bundle/Application/EA071840-24E2-40D0-9CF3-E77104432041/MyApp.app/MyApp
    6. Identifier: de.My.App
    7. Version: 2016.502.6061 (2016.502)
    8. Code Type: ARM (Native)
    9. Parent Process: launchd [1]
    10. Date/Time: 2016-03-01 10:44:53.53 +0100
    11. Launch Time: 2016-03-01 10:44:39.39 +0100
    12. OS Version: iOS 9.0.2 (13A452)
    13. Report Version: 105
    14. Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    15. Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
    16. Triggered by Thread: 2
    17. Filtered syslog:
    18. None found
    19. Global Trace Buffer (reverse chronological seconds):
    20. 3.061549 AppleJPEG 0x000000002cb096c5 [0x164d0c00] Releasing session
    21. 4.042276 AppleJPEG 0x000000002cb0b53d [0x164d0c00] Decoding completed without errors
    22. 4.122101 AppleJPEG 0x000000002cb09c31 [0x164d0c00] Options: 1x-1 [0000071E,1000038D] 0001D060
    23. 4.122101 AppleJPEG 0x000000002cb09afd [0x164d0c00] Decoding: C0 0x10000AAB 0x0100304A 0x22111100 0x302AC008 2926607
    24. 4.122101 AppleJPEG 0x000000002cb0b53d [0x164d0c00] Decoding completed without errors
    25. 4.201061 AppleJPEG 0x000000002cb09c31 [0x164d0c00] Options: 1x-1 [0000038F,1000038F] 0001D060
    26. 4.201061 AppleJPEG 0x000000002cb09afd [0x164d0c00] Decoding: C0 0x10000AAB 0x0100304A 0x22111100 0x302AC008 2926607
    27. 4.201062 AppleJPEG 0x000000002cb0b53d [0x164d0c00] Decoding completed without errors
    28. 4.332290 AppleJPEG 0x000000002cb09c31 [0x164d0c00] Options: 1x-1 [00000000,1000038F] 0001D060
    29. 4.332290 AppleJPEG 0x000000002cb09afd [0x164d0c00] Decoding: C0 0x10000AAB 0x0100304A 0x22111100 0x00000000 2926607
    30. 4.361750 AppleJPEG 0x000000002cb08fa1 [0x164d0c00] Created session
    31. 7.858291 AppleJPEG 0x000000002cb096c5 [0x164adc00] Releasing session
    32. 8.845408 AppleJPEG 0x000000002cb0b53d [0x164adc00] Decoding completed without errors
    33. 8.928702 AppleJPEG 0x000000002cb09c31 [0x164adc00] Options: 1x-1 [0000071E,1000038D] 0001D060
    34. 8.928702 AppleJPEG 0x000000002cb09afd [0x164adc00] Decoding: C0 0x10000AAB 0x0100304A 0x22111100 0x302AC008 2926607
    35. 8.928744 AppleJPEG 0x000000002cb0b53d [0x164adc00] Decoding completed without errors
    36. 9.009285 AppleJPEG 0x000000002cb09c31 [0x164adc00] Options: 1x-1 [0000038F,1000038F] 0001D060
    37. 9.009285 AppleJPEG 0x000000002cb09afd [0x164adc00] Decoding: C0 0x10000AAB 0x0100304A 0x22111100 0x302AC008 2926607
    38. 9.009285 AppleJPEG 0x000000002cb0b53d [0x164adc00] Decoding completed without errors
    39. 9.151869 AppleJPEG 0x000000002cb09c31 [0x164adc00] Options: 1x-1 [00000000,1000038F] 0001D060
    40. 9.151870 AppleJPEG 0x000000002cb09afd [0x164adc00] Decoding: C0 0x10000AAB 0x0100304A 0x22111100 0x00000000 2926607
    41. 9.175425 AppleJPEG 0x000000002cb08fa1 [0x164adc00] Created session
    42. 13.325143 AppleJPEG 0x000000002cb096c5 [0x15c27800] Releasing session
    43. 13.568382 AppleJPEG 0x000000002cb08fa1 [0x15c27800] Created session
    44. 13.720401 CFNetwork 0x000000002685eaa1 TCP Conn 0x155d7f90 SSL Handshake DONE
    45. 13.831128 CFNetwork 0x000000002685e9db TCP Conn 0x155d7f90 starting SSL negotiation
    46. 13.838443 CFNetwork 0x00000000268de4cd TCP Conn 0x155d7f90 complete. fd: 7, err: 0
    47. 13.838635 CFNetwork 0x00000000268df5cf TCP Conn 0x155d7f90 event 1. err: 0
    48. 13.897250 CFNetwork 0x00000000268df64d TCP Conn 0x155d7f90 started
    49. Thread 0 name: Dispatch queue: com.apple.main-thread
    50. Thread 0:
    51. 0 IMGSGX554GLDriver 0x256405e6 sgxEndRender + 158
    52. 1 IMGSGX554GLDriver 0x2570ac86 sgxStartTransfer + 42
    53. 2 IMGSGX554GLDriver 0x2570ddde sgxGenerateMipmapTransfer + 770
    54. 3 IMGSGX554GLDriver 0x256455a2 glrWriteTextureData + 586
    55. 4 GLEngine 0x29710570 glTexImage2D_Exec + 1576
    56. 5 OpenGLES 0x297d9730 glTexImage2D + 68
    57. ....
    58. 17 UIKit 0x2b1655d2 -[UIViewController _setViewAppearState:isAnimating:] + 674
    59. 18 UIKit 0x2b220f06 -[UINavigationController viewDidAppear:] + 198
    60. 19 UIKit 0x2b1655d2 -[UIViewController _setViewAppearState:isAnimating:] + 674
    61. 20 UIKit 0x2b1d353a __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke + 38
    62. 21 UIKit 0x2b1d34d0 -[UIViewController _executeAfterAppearanceBlock] + 100
    63. 22 UIKit 0x2b3ed23c _runAfterCACommitDeferredBlocks + 500
    64. 23 UIKit 0x2b3f830e _cleanUpAfterCAFlushAndRunDeferredBlocks + 90
    65. 24 UIKit 0x2b1405a0 _afterCACommitHandler + 84
    66. 25 CoreFoundation 0x26ffe0f0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
    67. 26 CoreFoundation 0x26ffc3e6 __CFRunLoopDoObservers + 282
    68. 27 CoreFoundation 0x26ffc824 __CFRunLoopRun + 972
    69. 28 CoreFoundation 0x26f4f1e8 CFRunLoopRunSpecific + 516
    70. 29 CoreFoundation 0x26f4efdc CFRunLoopRunInMode + 108
    71. 30 GraphicsServices 0x3007daf8 GSEventRunModal + 160
    72. 31 UIKit 0x2b1b417c UIApplicationMain + 144
    73. 32 Myapp 0x0016aaee 0xa3000 + 817902
    74. 33 libdyld.dylib 0x39111872 start + 2
    Alles anzeigen

    Leider tritt diese nicht auf, wenn ich mit Xcode builde? Ich hoffe hier hat jemand eine Idee, was das ist.

    In der Konsole steht zusätzlich noch:

    Quellcode

    1. Mar 1 10:44:51 iPad-4th-Gen syncdefaultsd[269] <Notice>: (Note ) SYDAccount: no account
    2. Mar 1 10:44:51 iPad-4th-Gen syncdefaultsd[269] <Notice>: (Note ) SYDPIMAccount: no account (null)
    3. Mar 1 10:44:51 iPad-4th-Gen syncdefaultsd[269] <Notice>: (Note ) SYDAlwaysOnAccount: no account (null)
    4. Mar 1 10:44:53 iPad-4th-Gen MyApp[268] <Warning>: [SCENE] - width:1024.000000 height:660.000000
    5. Mar 1 10:44:53 iPad-4th-Gen SpringBoard[48] <Warning>: HW kbd: Failed to set (null) as keyboard focus
    6. Mar 1 10:44:53 iPad-4th-Gen com.apple.xpc.launchd[1] (UIKitApplication:de.My.App[0xe9e2][268]) <Notice>: Service exited due to signal: Segmentation fault: 11
    7. Mar 1 10:44:53 iPad-4th-Gen ReportCrash[270] <Notice>: platform_thread_get_unique_id matched 12922
    8. Mar 1 10:44:53 iPad-4th-Gen ReportCrash[270] <Notice>: Formulating report for corpse[268] MyApp
    9. Mar 1 10:44:53 iPad-4th-Gen SpringBoard[48] <Warning>: Application 'UIKitApplication:de.My.App[0xe9e2]' crashed.
    10. Mar 1 10:44:53 iPad-4th-Gen UserEventAgent[23] <Warning>: 41912691226: id=de.My.App pid=268, state=0
    11. Mar 1 10:44:54 iPad-4th-Gen ReportCrash[270] <Warning>: saved type '109_MyApp' report (4 of max 25) as /var/mobile/Library/Logs/CrashReporter/MyApp_2016-03-01-104453_iPad-4th-Gen.ips
    12. Mar 1 10:45:23 iPad-4th-Gen CommCenter[25] <Notice>: Snapshot path [/var/wireless/Library/Logs/CrashReporter/Baseband/] was removed
    13. Mar 1 10:46:07 iPad-4th-Gen routined[38] <Error>: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
    Alles anzeigen
    Man kann alles schaffen. Man muss es nur wollen ;)
    www.regetskcob.github.io
  • Baust du auf deinem Rechner als Release Version oder als Debug Version.

    Im Crash-Report steht, dass die App auf eine ungültige Speicheradresse zugreift:
    1. Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    2. Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
    3. Triggered by Thread: 2
    Oder benutzt du unterschiedliche Targets, so das in einem Traget, die Dateien nicht hinzugefügt sind.

    Viele Grüße,
    Schumi
  • Sieht nach einem Dangling Pointer aus. Da ist das Verhalten halt immer unterschiedlich und hat nicht unbedingt was mit Release und Debug zu tun sondern hängt von vielen anderen Faktoren ab.

    Gruß

    Claus
    2 Stunden Try & Error erspart 10 Minuten Handbuchlesen.

    Pre-Kaffee-Posts sind mit Vorsicht zu geniessen :)
  • schumi schrieb:

    Baust du auf deinem Rechner als Release Version oder als Debug Version.

    Im Crash-Report steht, dass die App auf eine ungültige Speicheradresse zugreift:
    1. Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    2. Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
    3. Triggered by Thread: 2
    Oder benutzt du unterschiedliche Targets, so das in einem Traget, die Dateien nicht hinzugefügt sind.

    Viele Grüße,
    Schumi
    Unterschiedliche Tagtest ja. Aber selbes Gerät.

    Amin Negm-Awad schrieb:

    Zeig mal Thread 2

    Quellcode

    1. Thread 2 name: Dispatch queue: NSOperationQueue 0x155e6cf0 :: NSOperation 0x1681a610 (QOS: USER_INTERACTIVE)
    2. Thread 2 Crashed:
    3. 0 IMGSGX554GLDriver 0x25642430 sgxBeginRender + 2468
    4. 1 IMGSGX554GLDriver 0x25639b3c glrClearCore + 240
    5. 2 IMGSGX554GLDriver 0x25639956 glrClear + 194
    6. 3 GLEngine 0x29713c8c glClear_Exec + 360
    7. 4 MyApp 0x0038870a 0xa3000 + 3036938
    8. 5 MyApp 0x000db2d0 0xa3000 + 230096
    9. 6 MyApp 0x0014f62e 0xa3000 + 706094
    10. 7 MyApp 0x0014f292 0xa3000 + 705170
    11. 8 CoreFoundation 0x27040244 __invoking___ + 68
    12. 9 CoreFoundation 0x26f6a8e4 -[NSInvocation invoke] + 292
    13. 10 Foundation 0x27df8ecc -[NSInvocationOperation main] + 116
    14. 11 Foundation 0x27d4c8be -[__NSOperationInternal _start:] + 774
    15. 12 Foundation 0x27dfacc4 __NSOQSchedule_f + 192
    16. 13 libdispatch.dylib 0x390f304e _dispatch_queue_drain + 1762
    17. 14 libdispatch.dylib 0x390ec02e _dispatch_queue_invoke + 282
    18. 15 libdispatch.dylib 0x390f43dc _dispatch_root_queue_drain + 400
    19. 16 libdispatch.dylib 0x390f424a _dispatch_worker_thread3 + 94
    20. 17 libsystem_pthread.dylib 0x3927de28 _pthread_wqthread + 1024
    21. 18 libsystem_pthread.dylib 0x3927da18 start_wqthread + 8
    Alles anzeigen
    Man kann alles schaffen. Man muss es nur wollen ;)
    www.regetskcob.github.io
  • Hallo Daniel,
    es wird hier openGL Code aufgerufen.

    An OpenGL ES app is terminated if it attempts to execute OpenGL ES commands on the graphics hardware. iOS prevents background apps from accessing the graphics processor so that the frontmost app is always able to present a great experience to the user. Your app can be terminated not only if it makes OpenGL ES calls while in the background but also if previously submitted commands are flushed to the GPU while in the background. Your app must ensure that all previously submitted commands have finished executing before moving into the background.

    Grüsse
    Jürgen

    Quellcode

    1. - (void)applicationWillResignActive:(UIApplication *)application
    2. {
    3. glFinish();
    4. }
  • sauerzapf schrieb:

    Hallo Daniel,
    es wird hier openGL Code aufgerufen.

    An OpenGL ES app is terminated if it attempts to execute OpenGL ES commands on the graphics hardware. iOS prevents background apps from accessing the graphics processor so that the frontmost app is always able to present a great experience to the user. Your app can be terminated not only if it makes OpenGL ES calls while in the background but also if previously submitted commands are flushed to the GPU while in the background. Your app must ensure that all previously submitted commands have finished executing before moving into the background.

    Grüsse
    Jürgen

    Quellcode

    1. - (void)applicationWillResignActive:(UIApplication *)application
    2. {
    3. glFinish();
    4. }
    Hey Sauerzapf,

    der Absturz tritt nicht auf bei Wechseln der App in den Hinter- bzw. Vordergrund. Es wird einfach nur die verwendete Instanz der Irrlicht-Engine beendet, zerstört und eine neue Instanz beim Öffnen erzeugt. Beim beenden der Instanz wurde bisher immer glFlush (dieses hat damals mal glFinish aufgrund von Ladezeit-problemen abgelöst) aufgerufen. Ein Wechsel auf glFinish brachte hier keine Verbesserung.

    schumi schrieb:

    DanielBocksteger95 schrieb:

    Unterschiedliche Tagtest ja. Aber selbes Gerät.
    Dann teste mal beide Target auf deinem Mac und schaue was passiert.
    Ich habe leider absolut keine Möglichkeit das Target unseres Buildservers auf meinem Mac zu kompilieren, da ich dafür die nötigen Profile nicht besitze. Gibt es da denn keinen anderen Grund dafür, dass sich das Verhalten so enorm unterschiedet?
    Man kann alles schaffen. Man muss es nur wollen ;)
    www.regetskcob.github.io
  • DanielBocksteger95 schrieb:

    Ich habe leider absolut keine Möglichkeit das Target unseres Buildservers auf meinem Mac zu kompilieren, da ich dafür die nötigen Profile nicht besitze. Gibt es da denn keinen anderen Grund dafür, dass sich das Verhalten so enorm unterschiedet?
    Die Frage unterscheiden sich die Targets nur in den Profilen oder gibt es noch andere Unterscheidungen.
    Ist die Irrlicht-Engine vielleicht mit deinem Profile signiert.
  • schumi schrieb:

    DanielBocksteger95 schrieb:

    Ich habe leider absolut keine Möglichkeit das Target unseres Buildservers auf meinem Mac zu kompilieren, da ich dafür die nötigen Profile nicht besitze. Gibt es da denn keinen anderen Grund dafür, dass sich das Verhalten so enorm unterschiedet?
    Die Frage unterscheiden sich die Targets nur in den Profilen oder gibt es noch andere Unterscheidungen.Ist die Irrlicht-Engine vielleicht mit deinem Profile signiert.
    Die Engine wird immer mit dem buildenden Profil neu signiert/kompiliert.Das dafür verwendete target ist aber das, welches ich auch ntuze. lediglich das Target der App ist ein anderes...
    Man kann alles schaffen. Man muss es nur wollen ;)
    www.regetskcob.github.io