Comments (10)
Hey, @fosterbrereton, thanks for getting in touch!
We've checked this problem (with provided code in specific) on a few machines, and could not reproduce the issue. Can the problem be in the debugger being attached?
Also, can you provide verbose logs to help us locate the origin of issue?
Thanks.
from hockeysdk-ios.
When attached to the Xcode debugger, I see something like the following:
2019-06-24 16:49:38.828157-0700 MyApp[28852:792758] Allocated 1073741824 bytes
Message from debugger: Terminated due to memory issue
When I am not attached to the debugger, there is no output anywhere except for the console of the device:
default 20:59:13.099559 -0700 MyApp Allocated 1073741824 bytes
default 20:59:13.552536 -0700 kernel EXC_RESOURCE -> MyApp[29847] exceeded mem limit: ActiveHard 3072 MB (fatal)
default 20:59:13.552690 -0700 kernel 464154.287 memorystatus: killing_specific_process pid 29847 [MyApp] (per-process-limit 10) - memorystatus_available_pages: 50959
HockeyApp produces no crash reports for this kind of crash, so unfortunately that's all the logging information I have.
Both of the above were generated with a 12.9" iPad Pro.
from hockeysdk-ios.
I mean you can call the crash without debugger attached, then launch app with debugger attached to be able to get logs on what has happened.
I will re-check that meanwhile.
from hockeysdk-ios.
After a more thourough investigation, we were able to reproduce the issue.
It appears that trying to allocate 1gb per iteration might disallow to reproduce the issue. Changing this amount helped us out.
Memory allocation error can lead to 2 different ways of app being terminated: throwing C++ std::bad_alloc
exception and process termination by OS. Since we are using in-process crash detection, first one can be detected, while the latter one can not - it isn't mapped to signals interceptable by in-process crash detection.
In your example, the SDK is not able to catch a crash since the application is killed by OS.
from hockeysdk-ios.
Thanks for the information. The crash I’m interested in is the process termination- we are handling exceptions just fine in our app.
I noticed in the log an EXC_RESOURCE mach exception was being sent to the application prior to the crash. What kind of mach exception support exists in HockeyApp? Could it be modified to accommodate include support for this kind of exception?
from hockeysdk-ios.
@fosterbrereton This is a new feature request in HockeySDK. Please note that we are not adding new features in HockeyApp which will sunset on November 16, 2019. App Center is the next generation solution for HockeyApp and I'd recommend you to move your apps to App Center in the coming weeks. We can track it as a new feature request in App Center.
from hockeysdk-ios.
@elamalani Thanks. We're in the process of migrating to App Center. I posted a similar issue there but it was closed as a duplicate of this issue. Should I reopen?
from hockeysdk-ios.
@fosterbrereton Yea, it would be great if you could reopen the ticket on App Center repo and let's close this one.
from hockeysdk-ios.
Filed, thanks.
from hockeysdk-ios.
@fosterbrereton While I think the App Center SDK does not yet have this feature, you could try using https://www.hockeyapp.net/help/sdk/ios/5.1.4/Classes/BITCrashManager.html#/c:objc(cs)BITCrashManager(py)enableAppNotTerminatingCleanlyDetection now that you are still using the HockeySDK.
It's not 100% accurate and can include reports from other reasons but it should theoretically provide you with info about how often your app gets killed for using too much memory.
from hockeysdk-ios.
Related Issues (20)
- Set Custom AlertViewHandler Documentation HOT 2
- SDK logging an error instead of a debug or verbose message "The file “Application Support” doesn’t exist." HOT 14
- lastSessionCrashDetails sometimes doesn't work right HOT 5
- When is the next release? HOT 8
- HockeyApp Update alert does not popup HOT 7
- BITCrashManager ignores crashes after crashManagerStatus reset from .disabled HOT 3
- AppNotTerminatingCleanly event reported for background sessions HOT 3
- BITUpdateManager not updating automatically HOT 2
- Cancel update crashes the app HOT 5
- Crashes not appearing in dashboard HOT 10
- BITCrashManager cancelled HOT 3
- AppNotTerminatingCleanly event is not reported after process start HOT 4
- Feedback composing doesn't resize properly for keyboard HOT 4
- Unable to add New iOS Devices to Provisioning Profile HOT 5
- Cocoapods only updates to 5.1.2 HOT 3
- Carthage Compilation Failed in Xcode 10.2 beta 3 HOT 25
- No crash dialog in main app after crashes via KB extension HOT 4
- Support Project Catalyst (UIKitForMac) HOT 3
- ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hockeysdk-ios.