crash

Segmentation fault on exit in pyQt5 but not pyQt4

心已入冬 提交于 2019-12-24 00:22:59
问题 The workaround to a crash upon exit given in this answer works in pyqt4. But not using pyqt5, where there is often (more than half the times) a segmentation fault. Only the import lines changed #!/usr/bin/python import sys #toolkit = "Qt4" toolkit = "Qt5" if toolkit == "Qt4": # Qt4 (no crash) from PyQt4.QtCore import * from PyQt4.QtGui import * elif toolkit == "Qt5": # Qt5 (crash) from PyQt5.QtWidgets import ( QApplication, QGraphicsScene, QGraphicsView ) app = QApplication(sys.argv) grview =

Android Emulator Crashes on ig4icd32.dll with exception code c0000005 (emulator-arm.exe has stopped working)

独自空忆成欢 提交于 2019-12-23 23:50:31
问题 I have been developing apps on Android for a while now. I have the development environment installed on my laptop and everything was working till this morning. I had the v15 and v10 SDK platforms and emulators installed. Just to try the Android Jelly Bean emulator, I tried to download the v16 SDK from SDK Manager. That led to a series of updates in SDK manager and then the ADT plug in also. Since that I have been facing this issue whenever I try to start the emulator. I have searched a lot

iPhone - How to symbolicate/translate/read device crashlog with XCode 4

好久不见. 提交于 2019-12-23 23:04:19
问题 How may I "translate" / symbolicate the crashlog coming from my device to know where the app crashed, assuming I ran a debug build, I have the .crash file, and the .app, and .app.dSYM files corresponding to those sent to the device. An interface (without command line) solution would be appreciated as it is said that the organiser knows how to do that (but I damn don't find how to). If there are no solution of that kind, so... P.S. : I have no symbolicatecrash anywhere EDIT I achieved to have

Android crash log annotation

邮差的信 提交于 2019-12-23 20:08:42
问题 Is it possible for an Android application to add additional lines to a crash log before it actually crashes in order to send better debugging information back to the developers? 回答1: Use Fabric or firebase crash analytics. They will provide you the crash logs. In your onCreate import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import com.crashlytics.android.Crashlytics; import io.fabric.sdk.android.Fabric; public

How do I guarantee cleanup code runs in Windows C++ (SIGINT, bad alloc, and closed window)

空扰寡人 提交于 2019-12-23 18:57:33
问题 I have a Windows C++ console program, and if I don't call ReleaseDriver() at the end of my program, some pieces of hardware enter a bad state and can't be used again without rebooting. I'd like to make sure ReleaseDriver() gets runs even if the program exits abnormally, for example if I hit Ctrl+C or close the console window. I can use signal() to create a signal handler for SIGINT . This works fine, although as the program ends it pops up an annoying error "An unhandled Win32 exception

How to re-add icon to system tray after explorer.exe crash

不问归期 提交于 2019-12-23 17:58:32
问题 My java application currently has an icon in the system tray. When the system tray crashes, however (you can simulate this by killing explorer.exe in the taskbar), the icon disappears after the system tray returns. When I check SystemTray.getSystemTray().getTrayIcons() for the icons in the system tray, it always shows that my TrayIcon is still in the system tray, even though after it crashes and reloads and my tray icon is longer there. At the moment I'm removing and adding my icon once every

SurfaceView setMeasuredDimension() with height greater than 4096 crashes

给你一囗甜甜゛ 提交于 2019-12-23 17:37:01
问题 I'm using surfaceview in my work. My requirement is to make a curved line in a vertical scrollview. When I test it I found when the height is less than 4096 it works well, but more than that (even just 4097), it crashes! @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // TODO Auto-generated method stub super.onMeasure(widthMeasureSpec, heightMeasureSpec); setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), 4097); } Can anyone tell me why? 回答1: The

How can I monitor an application crash from a separate process

你。 提交于 2019-12-23 15:58:12
问题 I have a certain .net application that occasionally crashes with one of the following windows errors: [application name] has encountered a problem and needs to close. We are sorry for the inconvenience. or [application name] has stopped working I want to monitor this app from another .net process, prevent showing the default windows error report dialog, and do my own error processing. Is there a way I can detect that the other app has crashed? And can I prevent or hide the default error

How can I monitor an application crash from a separate process

耗尽温柔 提交于 2019-12-23 15:54:57
问题 I have a certain .net application that occasionally crashes with one of the following windows errors: [application name] has encountered a problem and needs to close. We are sorry for the inconvenience. or [application name] has stopped working I want to monitor this app from another .net process, prevent showing the default windows error report dialog, and do my own error processing. Is there a way I can detect that the other app has crashed? And can I prevent or hide the default error

DeleteGlobalRef crash on ICS

爱⌒轻易说出口 提交于 2019-12-23 15:51:03
问题 I use NDK to allocate large buffer for Java: allocNativeBuffer(JNIEnv* env, jobject cls, jlong size) { void* buffer = malloc(size); jobject directBuffer = env->NewDirectByteBuffer(buffer, size); jobject globalRef = env->NewGlobalRef(directBuffer); return globalRef; } After using this buffer I deallocate it: freeNativeBuffer(JNIEnv* env, jobject cls, jobject globalRef) { void *buffer = env->GetDirectBufferAddress(globalRef); env->DeleteGlobalRef(globalRef); free(buffer); } On Android 2.2 it