crash

LinqPad just crashed on me. Is my code anywhere on the disk?

孤者浪人 提交于 2019-12-12 10:53:52
问题 I crashed LinqPad while crafting something slightly less than trivial. I don't want to restart it until I'm sure that won't jeopardise recovering my work (if this is possible). My question is: Does LinqPad write temp files anyware that might still contain the code I wrote? For posterity, here's a test case that crashes LinqPad every time (also posted to LinqPad forum): void Main() { Crasher.Crash(); } class Crasher { public static void Crash() { var a=0; Crash(); a++; //let's get something in

Is it not possible to make a C++ application “Crash Proof”?

拜拜、爱过 提交于 2019-12-12 10:47:11
问题 Let's say we have an SDK in C++ that accepts some binary data (like a picture) and does something. Is it not possible to make this SDK "crash-proof"? By crash I primarily mean forceful termination by the OS upon memory access violation, due to invalid input passed by the user (like an abnormally short junk data). I have no experience with C++, but when I googled, I found several means that sounded like a solution (use a vector instead of an array, configure the compiler so that automatic

Intellij diagnosing crash problem

扶醉桌前 提交于 2019-12-12 10:34:55
问题 Sometimes Intellij IDEA crashes for no obvious reason. First, it becomes quite slow, CTRL + N (class search) often takes a bit longer than usual time to respond when you type something into it, jumping between files takes more time. And then it crashes.. What is the usual route to diagnose Intellij crash? I've been monitoring memory on the status bar when it crashed and it had about 100MB (out of 512MB) left at that time. Are there any useful logs that would point in the direction of the

iOS: how to trigger a user force-quit crash on iPhone?

喜欢而已 提交于 2019-12-12 10:27:21
问题 WWDC video(WWDC 2010 Session 317 - Understanding Crash Reports on iPhone OS) says error code 0xdeadfa11 in crash log means a user force-quit crash, but I've never seen this errer code. How to trigger a user force-quit crash? EDIT: I would like knowing both the manual way and programmatical way :P 回答1: Apparently there is no programmatical way to do it because the exception type is based on user activity. In order to simulate the crash the apple docs says as follow The exception code

Received memory warning when capturing screen and save to video ios

对着背影说爱祢 提交于 2019-12-12 09:46:20
问题 I am now writing a program to capture screen and convert to video. I can successfully save the video if it is less than 10 seconds. But, if more than that, I received memory warning and application crash. I wrote this code as follow. Where am I missing to release data ? I would like to know how to do. -(void)captureAndSaveImage { if(!stopCapturing){ if (assetWriterInput.readyForMoreMediaData) { keepTrackOfBackGroundMood++; NSLog(@"keepTrackOfBackGroundMood is %d",keepTrackOfBackGroundMood);

PHP doesn't handle stack overflow?

若如初见. 提交于 2019-12-12 09:43:55
问题 I was surprised when I just tried the following PHP code: function foo() { foo(); } foo(); I expected to get "500: Internal server error". Instead the connection was closed immediately (no bytes received), and the log files show that apache segfaulted. WTF? Is this a known bug in PHP? Are there some configuration options that I'm missing? Because a crashed process for every accidental stack overflow is, well... pretty unacceptable, I think. 回答1: PHP is not able to deal with this, it will just

EditText weird crash on LG Optimus w/Swype (works on emulator and Droids)

筅森魡賤 提交于 2019-12-12 09:41:01
问题 I have an app which works in the emulator and on Droid phones. While testing on an LG Optimus (which BTW has Swype installed) it crashes with the following stack trace (NOTE: it is in the constructor of EditText). What is weird is that supposed offending line in TextView (981) is the method signature for getDefualtView( ) and there are no references to GestureDetector in EditText or TextView in 2.2 source code. I'm presuming (or hazarding a guess that it is most likely due to Swype) and am

Android Studio Quits unexpectedly on Mac

守給你的承諾、 提交于 2019-12-12 09:39:33
问题 I am running Android Studio v1.5.1 on OSX El Capitan 10.11.2. Android studio starts flickering whenever I move and click the mouse from external monitor to the laptops screen, then suddenly quits without giving any error message. Is anyone else facing this problem? Crash Report: http://pastebin.com/xda8wAKN 回答1: I just found the solution to my problem: Open the info.plist in a text editor path is "/Applications/Android\ Studio.app/Contents/info.plist" update the JVMVersion to 1.7* 来源: https:/

Problem while using CTFontRef in a loop to create NSMutableAttributedString

有些话、适合烂在心里 提交于 2019-12-12 09:17:31
问题 I need to create a NSMutableAttributedString with different CTFontRef and CTParagraphStyleRef for different range in that string. I try creating it by putting the following code in a loop and change range as I need, CTFontRef normalFontRef = CTFontCreateWithName((CFStringRef)@"CourierNewPSMT", fontsize, NULL); NSDictionary* normalFontAttribute = [[NSDictionary alloc] initWithObjectsAndKeys:(id)normalFontRef,(NSString*)kCTFontAttributeName, nil]; [attributedString addAttributes

Crash on iOS > TCCAccessRequest_block_invoke_2.8

不问归期 提交于 2019-12-12 08:26:22
问题 I've got an error in my app (iOS 8 to iOS 11) : Crashed: com.apple.root.default-qos 0 libsystem_kernel.dylib 0x1839a00a8 __abort_with_payload + 8 1 libsystem_kernel.dylib 0x18399b100 abort_with_payload_wrapper_internal + 100 2 libsystem_kernel.dylib 0x18399b12c system_set_sfi_window + 10 3 TCC 0x1868ed99c __TCCAccessRequest_block_invoke_2.85 + 222 4 TCC 0x1868ed8bc __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 706 5 TCC 0x1868f113c __tccd_send_block_invoke + 316 6 libxpc.dylib 0x183aeda0c _xpc