memory leak - application exited with signal 9

2020-03-01 07:08发布

问题:

I have an application which is dealing with many data structures, uiimageviews, videos, creating bit map context and so on. Every time the application is crashing on its continuous usage for a long time. The application is crashing with the memory warning --> Application exited abnormally with signal 9. What may be its reason. What does signal 9 means.

回答1:

I think this is due to the memory issue. Your app is using lot of memory due that is app is killed..



回答2:

Check out this posting

http://lists.apple.com/archives/xcode-users/2011/Mar/msg00837.html

It sounds like it might be related.



回答3:

It can also be a privacy/permission issue. We forgot to add NSCameraUsageDescription and UILaunchStoryboardName to Info.plist file and our app crashed with error Message from debugger: Terminated due to signal 9

After adding the following lines to Info.plist the app sopped crashing.

<key>NSCameraUsageDescription</key>
<string>The app would like to let you make a picture.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>The app would like to let you choose an item from your Photos.</string>