Native crash of RenderThread with signal 6 (SIGABRT) Native crash of RenderThread with signal 6 (SIGABRT) java java

Native crash of RenderThread with signal 6 (SIGABRT)


I run into this problem too while working on improvements of my app where I wanted to make the camera preview a bit smoother. Instead of closing it down if not needed by stopping the preview and making the surface invisible I only stopped the preview and left the surface visible. (this makes a nice still image and has a shorter restart time) This caused the "Leaked 2 GPU objects!" crash if the app became closed.

I assume there are only two situations where the preview is closing clean: a) if the preview is running b) if the preview is stopped and! the surface is removed from view (invisible).


We originally reported this bug (to google) https://issuetracker.google.com/issues/37123764. This was a problem in a firmware/security update for the Nexuses (we saw it on a 5X in-house), it was fixed in a later firmware update.

Phones on the "bad" firmware need to update. Never found a workaround.


There may be a problem with the RAM

added this code in manifests -> application

android:largeHeap="true"