Questions tagged [crash]

A crash is the result of an unrecoverable error that causes the program to stop completely.

A crash is the result of an unrecoverable error that causes the program to stop completely. During software development, crashes can be avoided by implementing proper error and exception handling.

Another common source of crashes is improper memory management, especially for programming languages like or , that don't have a fully fledged automatic garbage collector, that detects no longer used memory automatically, and feeds it back as available.

13257 questions
766
votes
30 answers

How do I obtain crash-data from my Android application?

How can I get crash data (stack traces at least) from my Android application? At least when working on my own device being retrieved by cable, but ideally from any instance of my application running on the wild so that I can improve it and make it…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
687
votes
31 answers

How to automatically generate a stacktrace when my program crashes

I am working on Linux with the GCC compiler. When my C++ program crashes I would like it to automatically generate a stacktrace. My program is being run by many different users and it also runs on Linux, Windows and Macintosh (all versions are…
KPexEA
  • 16,560
  • 16
  • 61
  • 78
531
votes
34 answers

Node.js heap out of memory

Today I ran my script for filesystem indexing to refresh RAID files index and after 4h it crashed with following error: [md5:] 241613/241627 97.5% [md5:] 241614/241627 97.5% [md5:] 241625/241627 98.1% Creating missing list... (79570 files…
Lapsio
  • 6,384
  • 4
  • 20
  • 26
346
votes
31 answers

What is the easiest way to make a C++ program crash?

I'm trying to make a Python program that interfaces with a different crashy process (that's out of my hands). Unfortunately the program I'm interfacing with doesn't even crash reliably! So I want to make a quick C++ program that crashes on purpose…
jonathan topf
  • 7,897
  • 17
  • 55
  • 85
304
votes
5 answers

Xcode - But... Where are our archives?

I've submitted three versions of my app onto the App Store using the Build and Archive commands. But... Where are those archives? I've just learnt that I just need them to be able to read crashlogs. My ~/Library/Developer/Xcode/Archives folder is…
Oliver
  • 23,072
  • 33
  • 138
  • 230
225
votes
24 answers

Android Room - simple select query - Cannot access database on the main thread

I am trying a sample with Room Persistence Library. I created an Entity: @Entity public class Agent { @PrimaryKey public String guid; public String name; public String email; public String password; public String phone; …
Devarshi
  • 16,440
  • 13
  • 72
  • 125
187
votes
9 answers

How do I prevent node.js from crashing? try-catch doesn't work

From my experience, a php server would throw an exception to the log or to the server end, but node.js just simply crashes. Surrounding my code with a try-catch doesn't work either since everything is done asynchronously. I would like to know what…
TiansHUo
  • 8,509
  • 7
  • 45
  • 57
183
votes
17 answers

How to get Android crash logs?

I have an app that is not in the market place (signed with a debug certificate), but would like to get crash log data, whenever my application crashes. Where can I find a log of why my app crashed?
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
143
votes
25 answers

Android Studio - How to increase Allocated Heap Size

I've been using Android Studio for 3 months now and one of the apps I started on it has become fairly large. The memory usage indicated at the bottom right of the program says my allocated heap is maxed at 494M. When I start to change the XML…
zafrani
  • 4,030
  • 5
  • 31
  • 39
111
votes
6 answers

Do NSUserDefaults persist through an Update to an app in the Appstore?

Is this the case? Do NSUserDefaults get reset when you submit an update to an app on the App Store, or are they reset? My app is crashing when updated but not crashing when downloaded fully - so I'm trying to determine what could possibly be…
Nick Cartwright
  • 8,334
  • 15
  • 45
  • 56
106
votes
6 answers

Android 7 Native Crash: libc.so tgkill

I'm seeing this native crash with the following stack trace. This happens in Android 7.0 & 7.1 only. Nothing new has been added to the app, which has been in production for a few years, but with more devices being updated to Nougat this crash…
AlexVPerl
  • 7,652
  • 8
  • 51
  • 83
100
votes
17 answers

Crashlytics is not sending Crash report from iPhone

I've setup the Crashlytics in my one iOS application and installed the application on a real device. My Crashlytics Dashboard is displaying that, I've successfully added the app. However, it's not sending crash report. My internet speed is not so…
farhad rubel
  • 2,334
  • 2
  • 22
  • 29
99
votes
1 answer

GMSGroundOverlay animating - should I be using a CATiledLayer?

I am experimenting with the Google Maps for iOS SDK latest version 1.2.1.2944 to animate a GMSGroundOverlay. The user has control over the image sequence, so using an animated UIImage isn't a possibility sadly, so i'm loading in the UIImage on the…
RobWhistler
  • 1,023
  • 1
  • 7
  • 6
95
votes
2 answers

How to fix: android.app.RemoteServiceException without any message (not related to Bad Notification or Broadcast)

I have an android.app.RemoteServiceException (RSE) but without any message. I get the following crash report on Google Play Console. When I get a RSE due to a bad Notification or Broadcast I get the related message but in this case it is a black…
95
votes
7 answers

ViewController respondsToSelector: message sent to deallocated instance (CRASH)

Ok, here is the deal, I hate putting out questions about my debugging and crashes. Because I usually handle them myself, but I just cannot get my way around this, even after viewing multiple questions already. Ok so here is the problem, I find my…
MCKapur
  • 9,127
  • 9
  • 58
  • 101
1
2 3
99 100