Comments (4)
Hi @damirdavletov!
I can't try to reproduce this without knowing some more information first.
- What version of the SDK are you using?
- Is the crash being triggered from a foreground thread or a background thread?
- How are you using
AppNotTerminatingCleanly
? I’m assuming you have enabled it by callingenableAppNotTerminatingCleanlyDetection
. It's a heuristic that doesn't indicate when an app has crashed, only when the app is killed by the user on a foreground thread or by the iOS watchdog.
If you are willing to provide the offending code snippet, it would help diagnose the issue as well. Once we have identified a problem we can consider merging your PR.
from hockeysdk-ios.
Hi @jwallra!
- What version of the SDK are you using?
We were using 4.1.6 the issue was initially found there, then we upgraded to 5.1.4 and the problem is there as well.
- Is the crash being triggered from a foreground thread or a background thread?
The SIGKILL is being triggered from main thread when that app is running in foreground with the following code:
- (void)triggerOOMCrash {
UILabel *label = [[UILabel alloc] initWithFrame:[[[UIApplication sharedApplication] keyWindow] bounds]];
label.text = @"Crashing With OOM";
[[[UIApplication sharedApplication] keyWindow] addSubview:label];
dispatch_async(dispatch_get_main_queue(), ^{
[self triggerOOMCrash];
});
}
- How are you using
AppNotTerminatingCleanly
? I’m assuming you have enabled it by callingenableAppNotTerminatingCleanlyDetection
. It's a heuristic that doesn't indicate when an app has crashed, only when the app is killed by the user on a foreground thread or by the iOS watchdog.If you are willing to provide the offending code snippet, it would help diagnose the issue as well. Once we have identified a problem we can consider merging your PR.
We have been using AppNotTerminatingCleanly feature for years it is very useful and we know how it works. Not sure what you mean by offending code snippet but here is how HockeyApp is set up:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
...
[[BITHockeyManager sharedHockeyManager] configureWithBetaIdentifier:hockeyAppBetaIdentifier liveIdentifier:hockeyAppIdentifier delegate:self];
BITCrashManagerCallbacks crashCallbacks;
crashCallbacks.context = NULL;
crashCallbacks.handleSignal = postCrashSignalCallback;
[[[BITHockeyManager sharedHockeyManager] crashManager] setCrashCallbacks:&crashCallbacks];
[[BITHockeyManager sharedHockeyManager] crashManager].crashManagerStatus = BITCrashManagerStatusAutoSend;
[[BITHockeyManager sharedHockeyManager] crashManager].enableAppNotTerminatingCleanlyDetection = YES;
[[BITHockeyManager sharedHockeyManager] startManager];
..
}
from hockeysdk-ios.
@damirdavletov Thanks for the detailed information. I'll try to verify the issue and fix, and then we'll look at merging it.
from hockeysdk-ios.
@damirdavletov We've merged your PR. Thanks for the contribution!
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
- 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
- FOOM (fatal out of memory error) not being recorded? HOT 10
- 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.