crash

android.content.res.Resources.getConfiguration()' on a null object reference

落花浮王杯 提交于 2019-12-13 07:39:55
问题 I have a Service that acts like an overlay with a chathead (like facebook messenger) when the user tap on this chatHead I pop a MapView (v2) It works for the majority of my users, but in the bug report all the Xiaomi Xiaomi Redmi Note 3 users have the same crash java.lang.RuntimeException: Unable to create service com.package.MyService: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a

Using ostringstream causing program crash

亡梦爱人 提交于 2019-12-13 07:21:10
问题 I have some older C++ applications/services that I need to maintain which run on Windows 2003 (not by choice). I had things all set and working with VS 2013, but now I can't get any of the C++ projects working again. They just crash. I narrowed it down to when stringstream is used so I wrote a sample Win32 exe to test with. These are the only settings I've changed in VS 2013 Update 5: Set to use Platform Toolset = Visual Studio 2013 - Windows XP (v120_xp). Character Set = Use Multi-Byte

iOS - [Class classMethod] results in unrecognized selector sent

孤者浪人 提交于 2019-12-13 07:18:49
问题 Due to code privacy, I have to omit part of info. Just excuse me. In TokenRequestManager.m , there is an instance method serialQueue4TokenType : - (dispatch_queue_t)serialQueue4TokenType:(TokenType)tokenType { static NSMutableDictionary *serialQueueDict = nil; if (serialQueueDict == nil) { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ serialQueueDict = [[NSMutableDictionary alloc] initWithCapacity:TokenTypeCount]; }); } dispatch_queue_t queue; @synchronized (self) { NSString

Android Studio 2.1.1, fully up-to-date, IDE just crashed, and my project files disappeared

我的未来我决定 提交于 2019-12-13 07:10:31
问题 So, the IDE crashed, prompted me to "Send a Crash Report" then closed. When I reopened my project, no files were visible. I checked the project folder and there's nothing there, only the .idea folder. All gone! Undelete tools find nothing... A day's work gone! I've searched this group but found nothing helpful... Is there a solution to this? Where are my files? And why would an IDE crash wipe my files? 回答1: After some digging around on my Hard Drive I noticed that said missing files were in a

JVM crashing in Solaris box Problematic frame: # C [libc.so.1]# [ timer expired, abort… ]

心不动则不痛 提交于 2019-12-13 06:58:32
问题 JVM(JDK 1.7) crashing in Solaris(5.11) box with following error. # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0xffffffff7eb83be0, pid=11981, tid=3599 # # JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode solaris-sparc compressed oops) # Problematic frame: # C [libc.so.1+0x83be0]# [ timer expired, abort... ] $ pkg info entire Name: entire Summary:

UITableView crashing with no erros

半世苍凉 提交于 2019-12-13 06:51:53
问题 Basically, from the root of the navigation controller, a table view, I build a URL string that contains the information i want to display on the new tableView. in the new table view i use the URL for an NSURL request. My code gives me no error but crashes, right after the NSLog: made cells. help before i kill myself. sorry should all be together but copy pasting code obviously doesn't work well. #import "CatDisplayViewController.h" #import "CatViewController.h" implementation

How to change Exception message, "The application … has stopped unexpectedly. Please try again later.”

▼魔方 西西 提交于 2019-12-13 06:43:32
问题 Is there any way to modify the generic Android Exception message "The application ... has stopped unexpectedly. Please try again later.” to display something more meaningful to the user? 回答1: What about implementing your own UncaughtExceptionHandler. See this question for some ideas: How do I obtain crash-data from my Android application? 来源: https://stackoverflow.com/questions/2673497/how-to-change-exception-message-the-application-has-stopped-unexpectedly

Tomcat crashes JVM due to EXCEPTION_ACCESS_VIOLATION

痞子三分冷 提交于 2019-12-13 05:58:48
问题 After some time away from work, it seems that one of my colleagues decided to experiment with our staging server. With the objeticve of developing using a new framework for DB access, he installed a bunch of stuff without being careful if there was any unwanted interaction with the in house developed applications. Instead of having any kind of framework to handle the SQL calls from the JSP apps, the old DBA/Programmer wrote a crude connection class to access the MS-SQL'08 server. The class in

OutOfMemoryError crashes systemui when accessing Recent Apps only on Marshmallow

若如初见. 提交于 2019-12-13 05:25:12
问题 I'm working on an Android app that works well except when accessing the recent apps list on Android 6.0+. When I tap the recent apps button while my app is open, com.android.systemui will crash with the following stacktrace: 03-31 15:40:22.291 23442-23442/? E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback 03-31 15:40:22.318 23442-23442/? E/MessageQueue-JNI: java.lang.OutOfMemoryError: Failed to allocate a 119596108 byte allocation with 16777216 free bytes and 57MB

WP8.1 WinJS application crashes when launched from toast notification

吃可爱长大的小学妹 提交于 2019-12-13 05:23:20
问题 I am developing WP8.1 app with WinJS. I am using push notifications. I want to execute a logic depending on "launch" string received in push notification payload. My toast notification payload is <toast launch='launchString'> <visual> <binding template='ToastText02'> <text id='1'>headlineText</text> <text id='2'>bodyText</text> </binding> </visual> </toast> I have registered an event WinJS.Application.addEventListener("activated", this.onActivated); Which is defined as onActivated: function