简体   繁体   English

从后台重新启动应用程序后,iPhone重新启动

[英]Iphone Restarts after relaunching the app from background

I relaunches the ios app from bacground to foreground - iphone restarts and says backbaordd crash Please find the below crash logs for your reference 我将ios应用程序从免费状态重新启动为前台状态-iphone重新启动并说backbaordd崩溃请查找以下崩溃日志以供参考

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000001
Triggered by Thread:  5

Thread 0:
0   libsystem_kernel.dylib          0x0000000192a7dca0 mach_msg_trap + 8
1   CoreFoundation                  0x0000000185e5ed20 __CFRunLoopServiceMachPort + 180
2   CoreFoundation                  0x0000000185e5cf14 __CFRunLoopRun + 932
3   CoreFoundation                  0x0000000185d9ddcc CFRunLoopRunSpecific + 448
4   backboardd                      0x00000001000e7a60 0x1000e0000 + 31328
5   libdyld.dylib                   0x000000019299ba9c start + 0

Thread 1:
0   libsystem_kernel.dylib          0x0000000192a7daa8 kevent64 + 8
1   libdispatch.dylib               0x0000000192981998 _dispatch_mgr_thread + 48

Thread 2 name:  com.apple.CoreAnimation.render-server
Thread 2:
0   libsystem_kernel.dylib          0x0000000192a7dca0 mach_msg_trap + 8
1   QuartzCore                      0x0000000188b02a18 CA::Render::Server::server_thread(void*) + 236
2   QuartzCore                      0x0000000188b9422c thread_fun + 24
3   libsystem_pthread.dylib         0x0000000192b17e18 _pthread_body + 164
4   libsystem_pthread.dylib         0x0000000192b17d70 _pthread_start + 136
5   libsystem_pthread.dylib         0x0000000192b15550 thread_start + 0

Thread 3:
0   libsystem_kernel.dylib          0x0000000192a7dca0 mach_msg_trap + 8
1   CoreFoundation                  0x0000000185e5ed20 __CFRunLoopServiceMachPort + 180
2   CoreFoundation                  0x0000000185e5ceb0 __CFRunLoopRun + 832
3   CoreFoundation                  0x0000000185d9ddcc CFRunLoopRunSpecific + 448
4   CoreFoundation                  0x0000000185df3454 CFRunLoopRun + 108
5   IOMobileFramebuffer             0x000000018bf3e484 iomfb_runloop_thread + 312
6   libsystem_pthread.dylib         0x0000000192b17e18 _pthread_body + 164
7   libsystem_pthread.dylib         0x0000000192b17d70 _pthread_start + 136
8   libsystem_pthread.dylib         0x0000000192b15550 thread_start + 0

Thread 4 name:  com.apple.CoreAnimation.IOMFB.wireless
Thread 4:
0   libsystem_kernel.dylib          0x0000000192a7dca0 mach_msg_trap + 8
1   CoreFoundation                  0x0000000185e5ed20 __CFRunLoopServiceMachPort + 180
2   CoreFoundation                  0x0000000185e5ceb0 __CFRunLoopRun + 832
3   CoreFoundation                  0x0000000185d9ddcc CFRunLoopRunSpecific + 448
4   CoreFoundation                  0x0000000185df3454 CFRunLoopRun + 108
5   QuartzCore                      0x0000000188b58a20 CA::WindowServer::IOMFBServer::thread_body(void*) + 344
6   QuartzCore                      0x0000000188b9422c thread_fun + 24
7   libsystem_pthread.dylib         0x0000000192b17e18 _pthread_body + 164
8   libsystem_pthread.dylib         0x0000000192b17d70 _pthread_start + 136
9   libsystem_pthread.dylib         0x0000000192b15550 thread_start + 0

Thread 5 name:  com.apple.CoreAnimation.IOMFB.primary
Thread 5 Crashed:
0   libGPUSupportMercury.dylib      0x000000018b658694 gpus_ReturnContextErrorKillClient + 12
1   AGXGLDriver                     0x0000000184a77248 SubmitPackets + 196
2   AGXGLDriver                     0x0000000184a6c3a0 glrSetPrivateInteger + 284
3   GLEngine                        0x000000018870427c gliSetInteger + 4592
4   OpenGLES                        0x00000001887f11e8 -[EAGLContext swapNotification:forTransaction:onLayer:] + 152
5   QuartzCore                      0x0000000188b562c0 CA::WindowServer::IOMFBDisplay::finish_update(CA::Render::Update*, unsigned int) + 1348
6   QuartzCore                      0x0000000188b5c0a8 CA::WindowServer::Server::render_for_time(double, CVTimeStamp const*) + 1536
7   QuartzCore                      0x0000000188b58bf4 CA::WindowServer::IOMFBServer::vsync_callback(__IOMobileFramebuffer*, unsigned long long, unsigned long long, unsigned long long, void*) + 220
8   IOKit                           0x0000000186d9fe70 IODispatchCalloutFromCFMessage + 360
9   CoreFoundation                  0x0000000185e50a8c __CFMachPortPerform + 188
10  CoreFoundation                  0x0000000185e5f03c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
11  CoreFoundation                  0x0000000185e5ef9c __CFRunLoopDoSource1 + 440
12  CoreFoundation                  0x0000000185e5d1c0 __CFRunLoopRun + 1616
13  CoreFoundation                  0x0000000185d9ddcc CFRunLoopRunSpecific + 448
14  CoreFoundation                  0x0000000185df3454 CFRunLoopRun + 108
15  QuartzCore                      0x0000000188b58a20 CA::WindowServer::IOMFBServer::thread_body(void*) + 344
16  QuartzCore                      0x0000000188b9422c thread_fun + 24
17  libsystem_pthread.dylib         0x0000000192b17e18 _pthread_body + 164
18  libsystem_pthread.dylib         0x0000000192b17d70 _pthread_start + 136
19  libsystem_pthread.dylib         0x0000000192b15550 thread_start + 0

Thread 6 name:  IOHIDService - RunLoopCompatibilityThread
Thread 6:
0   libsystem_kernel.dylib          0x0000000192a7dca0 mach_msg_trap + 8
1   CoreFoundation                  0x0000000185e5ed20 __CFRunLoopServiceMachPort + 180
2   CoreFoundation                  0x0000000185e5ceb0 __CFRunLoopRun + 832
3   CoreFoundation                  0x0000000185d9ddcc CFRunLoopRunSpecific + 448
4   CoreFoundation                  0x0000000185df3454 CFRunLoopRun + 108
5   IOKit                           0x0000000186dc23bc __IOHIDServiceRunLoopCompatibilityThread + 184
6   libsystem_pthread.dylib         0x0000000192b17e18 _pthread_body + 164
7   libsystem_pthread.dylib         0x0000000192b17d70 _pthread_start + 136
8   libsystem_pthread.dylib         0x0000000192b15550 thread_start + 0

Totally what causes this issue and also kindly suggest me how to debug this issue.. 完全是什么原因导致了这个问题,还请我建议如何调试这个问题。

Your app gets terminated by the ios for any one of the reason below, 您的应用因以下任何一种原因而被ios终止,

  • High memory usage or the springboard crashes( springboard is application that manages the other applications like home screen, app icon etc). 高内存使用率或跳板崩溃(跳板是用于管理其他应用程序(如主屏幕,应用程序图标等)的应用程序)。
  • Testing your application in jail broken devices. 在越狱的设备中测试您的应用程序。

Try to pause your animation stuff while resigning the application and resume them while user entering back to the application. 尝试在退出应用程序时暂停动画素材,并在用户返回到应用程序时恢复它们。 Something like this, 像这样

- (void)applicationWillResignActive:(UIApplication *)application
{

     // pause sprite kit
     SKView *view = (SKView *)self.window.rootViewController.view;
     view.paused = YES;
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
     // resume sprite kit
     SKView *view = (SKView *)self.window.rootViewController.view;
     view.paused = NO;
}

Do you use OpenGL ? 您使用OpenGL吗? Or some kind of framework, that works with camera. 或某种适用于相机的框架。 Rendering surfaces is forbidden in background. 禁止在背景中渲染表面。

Try to handle background/foreground state changes to pause/resume rendering. 尝试处理背景/前景状态更改以暂停/继续渲染。

You can user UIApplicationDidEnterBackgroundNotification and UIApplicationWillEnterForegroundNotification for this. 您可以为此使用UIApplicationDidEnterBackgroundNotificationUIApplicationWillEnterForegroundNotification

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从后台运行应用程序时重新启动应用程序与启动屏幕问题 - Relaunching the app with splash screen issue when running app from background 从后台恢复应用程序会重新启动整个APP? - Resume app from background restarts the entire APP? 从后台唤醒时,应用重新启动 - App restarts when woken from background 有没有办法在iPhone模拟器上按菜单按钮然后重新启动应用程序后看到记录? - is there a way to see logging after hitting Menu button on iPhone simulator then relaunching the app? iPhone App从最后一个已知状态启动,而不是从流程开始重新启动 - iPhone App launches from the last known state, instead of relaunching from beginning of process 重新启动应用程序后导航栏缩小 - Navigation Bar Shrinking after relaunching app 重新启动应用程序后,Swift UserDefaults 不会持续存在 - Swift UserDefaults not persisting after relaunching app CLLocationManager startMonitoringForRegion:设备重新启动后不重新启动应用程序 - CLLocationManager startMonitoringForRegion: not relaunching app after device restart Realm swift:重新启动应用程序后的空领域 - Realm swift: Empty realm after relaunching app API调用后iPhone重启 - iPhone restarts after API call
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM