-
- All Implemented Interfaces:
-
com.bugsnag.android.OutOfMemoryHandler,com.bugsnag.android.Plugin
public final class NativeOutOfMemoryPlugin implements Plugin, OutOfMemoryHandlerInstalls an NDK based OutOfMemoryHandler into the client. OutOfMemoryErrors will be redirected to the NDK crash reporter, where they can be reported without allocating more Android Runtime memory. To use this plugin, add it to your Bugsnag Configuration:
configuration.addPlugin(NativeOutOfMemoryPlugin()) Bugsnag.start(this, configuration)This makes reporting of
OutOfMemoryErrors significantly more reliable, but comes with one current caveat: thread stack traces will not be captured or reported (this may change in the future).This plugin is useful if you are receiving
OutOfMemoryErrorreports that do not include their stack traces, as these are typically a result of error reporters attempting to allocate the error report itself. This plugin side-steps the problem by using pre-allocated native memory to capture and store theOutOfMemoryErrorfor delivery on restart.
-
-
Constructor Summary
Constructors Constructor Description NativeOutOfMemoryPlugin()
-
Method Summary
Modifier and Type Method Description Unitload(Client client)Unitunload()BooleanonOutOfMemory(OutOfMemoryError oom)-
-
Method Detail
-
onOutOfMemory
Boolean onOutOfMemory(OutOfMemoryError oom)
-
-
-
-