crash

Activity crash lifecycle method - android

﹥>﹥吖頭↗ 提交于 2020-07-06 09:46:08
问题 I'm developing an app which in a case of crash, needs to save some data with the time of the crash. Now, I'm saving the data in onDestroy() like this: @Override protected void onDestroy() { saveState(); super.onDestroy(); } But whenever I crash my app on purpose, onDestroy() is not called and my data is not saved. My question is, how can I save my data on a crash? Which approach should I take? Because I need the time of the crash to be also saved, it's mandatory. 回答1: The

Arduino IDE (Win10) crashes when I launch the program

為{幸葍}努か 提交于 2020-07-01 17:01:37
问题 My Arduino IDE (ver 1.8.12 on Win10) crashes when I launch it. Running the arduino_debug.exe I get this error message. C:\Program Files (x86)\Arduino>arduino_debug.exe Set log4j store directory C:\Users\volke\AppData\Local\Arduino15 Loading configuration... Initializing packages... java.lang.NullPointerException at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134) at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483) at processing.app.Base

Arduino IDE (Win10) crashes when I launch the program

房东的猫 提交于 2020-07-01 17:00:51
问题 My Arduino IDE (ver 1.8.12 on Win10) crashes when I launch it. Running the arduino_debug.exe I get this error message. C:\Program Files (x86)\Arduino>arduino_debug.exe Set log4j store directory C:\Users\volke\AppData\Local\Arduino15 Loading configuration... Initializing packages... java.lang.NullPointerException at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134) at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483) at processing.app.Base

Firestore: Transactions crashing when offline

独自空忆成欢 提交于 2020-06-29 04:13:07
问题 I am aware that according to the changelog (0.12.9+5). It supposedly fixed a crash on android where Transaction s attempted while offline would result in an app crash. However, even with 0.13.7 (the version I'm using). I'm still running into app crashes. There is no error log in the console (just immediate crash). I've tried: Running my app in debug mode on a physical device (same behavior) Attaching error handle callback (not called) Lowering my cloud_firestore version down to 0.12.11 (the

Is it possible to crash this program somehow?

▼魔方 西西 提交于 2020-06-27 16:56:32
问题 I am currently learning C in one of my courses at the university. Now we have a task to solve and I am not sure how to do it. The task looks like this: "Is it possible to let this program crash with user inputs? If so, explain this case." The program we have been given is quite simple and looks like this: #include <stdio.h> // Include to use printf, scanf int main() { // Define buffers to store user name and password char username[16]; char password[16]; // Read username and password from

Crash when running on device after second launch

丶灬走出姿态 提交于 2020-06-17 15:48:10
问题 I am not an engineer, so a bit overwhelmed with this crash in my simple weather app that shows Celsius and Fahrenheit side by side. I only updated to iOS 13 SDK and changed some colors for night mode. App runs fine in simulator and also launches fine on device when started out of Xcode. However, when hard closing app and re-launching on device I get the following crash. I have no idea how to debug crashes, so I'd appreciate any help! Incident Identifier: FFECFBCF-3BAB-4372-BA17-CC76247FE9CA

catch(…) is not catching an exception, my program is still crashing

廉价感情. 提交于 2020-06-10 02:51:30
问题 I'm having a problem with a tester that my application crashes in initialization. I added more logging and exception handling but it still crashes with the generic "this program has stopped working" message rather than triggering my error handling. Given my main() looks like this and has catch(...) under what circumstances would this not be triggered? try{ simed::CArmApp app(0, cmd); for(bool done = false;!done;) { done = !app.frame(); } } catch(const std::runtime_error &e){

Get CGRect of View

空扰寡人 提交于 2020-05-24 03:52:25
问题 I'm using a "RectGetter" to get the CGRect of a View . Like this: Text("Hello") .background(RectGetter(rect: self.$rect)) struct RectGetter: View { @Binding var rect: CGRect var body: some View { GeometryReader { proxy in self.createView(proxy: proxy) } } func createView(proxy: GeometryProxy) -> some View { DispatchQueue.main.async { self.rect = proxy.frame(in: .global) // crash here } return Rectangle().fill(Color.clear) } } But sometimes I get a crash when setting the rect. Thread 0 name:

java.lang.BootstrapMethodError: Exception from call site #2 bootstrap method on CameraX (1.0.0-alpha06)

拜拜、爱过 提交于 2020-05-12 15:30:02
问题 I am trying to use CameraX API to fetch photo, but after I updated to new API version 1.0.0-alpha06 it started to crash on CameraX.bindToLifecycle(...) method. The log of error is: Process: com.aximetria.aximetria.debug, PID: 2629 java.lang.BootstrapMethodError: Exception from call site #2 bootstrap method at androidx.camera.core.Preview.updateListener(Preview.java:368) at androidx.camera.core.Preview.updateOutput(Preview.java:586) at androidx.camera.core.Preview.updateConfigAndOutput(Preview

java.lang.BootstrapMethodError: Exception from call site #2 bootstrap method on CameraX (1.0.0-alpha06)

拥有回忆 提交于 2020-05-12 15:29:12
问题 I am trying to use CameraX API to fetch photo, but after I updated to new API version 1.0.0-alpha06 it started to crash on CameraX.bindToLifecycle(...) method. The log of error is: Process: com.aximetria.aximetria.debug, PID: 2629 java.lang.BootstrapMethodError: Exception from call site #2 bootstrap method at androidx.camera.core.Preview.updateListener(Preview.java:368) at androidx.camera.core.Preview.updateOutput(Preview.java:586) at androidx.camera.core.Preview.updateConfigAndOutput(Preview