When we released Android, we found a crash problem, but I can’t confirm that the problem is willing. Can you help me see why.
10-18 11:22:50.822 2909 3243 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-18 11:22:50.823 2909 3243 E CRASH : Version '2020.1.11f1c1 (5a0e79d68ad0)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
10-18 11:22:50.823 2909 3243 E CRASH : Build fingerprint: 'qcom/msm8953_32/msm8953_32:8.1.0/OPM1.171019.026/207:user/jenkins-207,test-keys'
10-18 11:22:50.823 2909 3243 E CRASH : Revision: '0'
10-18 11:22:50.823 2909 3243 E CRASH : ABI: 'arm'
10-18 11:22:50.823 2909 3243 E CRASH : Timestamp: 2021-10-18 11:22:50+0800
10-18 11:22:50.823 2909 3243 E CRASH : pid: 2909, tid: 3243, name: UnityMain >>> com.app.launcher <<<
10-18 11:22:50.823 2909 3243 E CRASH : uid: 1000
10-18 11:22:50.823 2909 3243 E CRASH : signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x73682ad5
10-18 11:22:50.823 2909 3243 E CRASH : r0 00000000 r1 0dd98e70 r2 000003e8 r3 000000c5
10-18 11:22:50.823 2909 3243 E CRASH : r4 75562dd0 r5 a1bc1588 r6 73682a85 r7 aeff61b8
10-18 11:22:50.824 2909 3243 E CRASH : r8 00000000 r9 90700264 r10 00000000 r11 aeff61b8
10-18 11:22:50.824 2909 3243 E CRASH : ip aefef628 sp 8ef39df0 lr aefb188b pc 9e4a6dcc
10-18 11:22:50.824 2909 3243 E CRASH :
10-18 11:22:50.824 2909 3243 E CRASH : backtrace:
10-18 11:22:50.824 2909 3243 E CRASH : #00 pc 00009dcc /vendor/lib/egl/eglSubDriverAndroid.so (EglAndroidWindowSurface::smile:estroy()+88)
10-18 11:22:50.824 2909 3243 E CRASH : #01 pc 001a1d53 /vendor/lib/egl/libGLESv2_adreno.so (EglWindowSurface::smile:estroy()+218)
10-18 11:22:50.824 2909 3243 E CRASH : #02 pc 0018cdd1 /vendor/lib/egl/libGLESv2_adreno.so (EglApi::smile:estroySurface(void*, void*)+100)
10-18 11:22:50.824 2909 3243 E CRASH : #03 pc 0000b5b7 /system/lib/libEGL.so (eglDestroySurface+54) (BuildId: 3b65cc1aca616c79509b8cd744e3b704)
10-18 11:22:50.824 2909 3243 E CRASH : #04 pc 0023d66f /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.824 2909 3243 E CRASH : #05 pc 0023d8e5 /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.824 2909 3243 E CRASH : #06 pc 0023c6e5 /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #07 pc 00419199 /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #08 pc 00419407 /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #09 pc 0040ca9b /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #10 pc 0041a9dd /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #11 pc 0006d6a3 /system/priv-app/Launcher-release-signed/oat/arm/Launcher-release-signed.odex (BuildId: edf5010c569b31abd782b5559786b6dadbf05558)
10-18 11:22:50.863 3042 3547 D AIAudioTrack: on Tick: (currentFrame=5 totalFrame=100 isDataFeedEnd=false)
chengdragon198:
When we released Android, we found a crash problem, but I can’t confirm that the problem is willing. Can you help me see why.
10-18 11:22:50.822 2909 3243 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-18 11:22:50.823 2909 3243 E CRASH : Version '2020.1.11f1c1 (5a0e79d68ad0)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
10-18 11:22:50.823 2909 3243 E CRASH : Build fingerprint: 'qcom/msm8953_32/msm8953_32:8.1.0/OPM1.171019.026/207:user/jenkins-207,test-keys'
10-18 11:22:50.823 2909 3243 E CRASH : Revision: '0'
10-18 11:22:50.823 2909 3243 E CRASH : ABI: 'arm'
10-18 11:22:50.823 2909 3243 E CRASH : Timestamp: 2021-10-18 11:22:50+0800
10-18 11:22:50.823 2909 3243 E CRASH : pid: 2909, tid: 3243, name: UnityMain >>> com.app.launcher <<<
10-18 11:22:50.823 2909 3243 E CRASH : uid: 1000
10-18 11:22:50.823 2909 3243 E CRASH : signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x73682ad5
10-18 11:22:50.823 2909 3243 E CRASH : r0 00000000 r1 0dd98e70 r2 000003e8 r3 000000c5
10-18 11:22:50.823 2909 3243 E CRASH : r4 75562dd0 r5 a1bc1588 r6 73682a85 r7 aeff61b8
10-18 11:22:50.824 2909 3243 E CRASH : r8 00000000 r9 90700264 r10 00000000 r11 aeff61b8
10-18 11:22:50.824 2909 3243 E CRASH : ip aefef628 sp 8ef39df0 lr aefb188b pc 9e4a6dcc
10-18 11:22:50.824 2909 3243 E CRASH :
10-18 11:22:50.824 2909 3243 E CRASH : backtrace:
10-18 11:22:50.824 2909 3243 E CRASH : #00 pc 00009dcc /vendor/lib/egl/eglSubDriverAndroid.so (EglAndroidWindowSurface::smile:estroy()+88)
10-18 11:22:50.824 2909 3243 E CRASH : #01 pc 001a1d53 /vendor/lib/egl/libGLESv2_adreno.so (EglWindowSurface::smile:estroy()+218)
10-18 11:22:50.824 2909 3243 E CRASH : #02 pc 0018cdd1 /vendor/lib/egl/libGLESv2_adreno.so (EglApi::smile:estroySurface(void*, void*)+100)
10-18 11:22:50.824 2909 3243 E CRASH : #03 pc 0000b5b7 /system/lib/libEGL.so (eglDestroySurface+54) (BuildId: 3b65cc1aca616c79509b8cd744e3b704)
10-18 11:22:50.824 2909 3243 E CRASH : #04 pc 0023d66f /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.824 2909 3243 E CRASH : #05 pc 0023d8e5 /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.824 2909 3243 E CRASH : #06 pc 0023c6e5 /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #07 pc 00419199 /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #08 pc 00419407 /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #09 pc 0040ca9b /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #10 pc 0041a9dd /system/priv-app/Launcher-release-signed/Launcher-release-signed.apk (BuildId: 5b3892a41a9c6f3cdab38ad539e22fb6b8660d28)
10-18 11:22:50.825 2909 3243 E CRASH : #11 pc 0006d6a3 /system/priv-app/Launcher-release-signed/oat/arm/Launcher-release-signed.odex (BuildId: edf5010c569b31abd782b5559786b6dadbf05558)
10-18 11:22:50.863 3042 3547 D AIAudioTrack: on Tick: (currentFrame=5 totalFrame=100 isDataFeedEnd=false)
2020.1 is no longer supported, you should switch to 2020 LTS, as for crash, it seems like it’s crashing in driver.
Also, since you cannot publish with Mono, try switching to il2cpp and see if same issue occurs.
Tomas1856:
2020.1 is no longer supported, you should switch to 2020 LTS, as for crash, it seems like it’s crashing in driver.
Also, since you cannot publish with Mono, try switching to il2cpp and see if same issue occurs.
Thank you for your reply. We tried to use other versions, but they couldn’t initialize unityplayer in the application, so we abandoned it. As for il2cpp, the occupation of its global-metadata.dat file will cause some problems, so we use mono for the time being.
In addition, I see that the crash may be caused by the surface. Is this related to our modification of the surface in pause() of unityplayer?
public class MyUnityPlayer extends UnityPlayer {
private boolean isShow=false;
private String TAG="MyUnityPlayer";
public MyUnityPlayer(Context contextWrapper) {
super(contextWrapper);
Log.i(TAG, " new MyUnityPlayer: --"+contextWrapper.toString());
}
public void addView(View child) {
Log.i(TAG,"addView");
if (child instanceof SurfaceView) {
final SurfaceView surfaceView = (SurfaceView) child;
surfaceView.getHolder().setFormat(PixelFormat.TRANSPARENT);
surfaceView.setZOrderOnTop(true);
}
super.addView(child);
}
@Override
public void pause() {
Log.i(TAG, "pause: start--"+isShow);
if(true){
super.pause();
for (int i = 0; i < getChildCount(); i++) {
final View child =getChildAt(i);
if(null!=child){
Log.i(TAG,"pause---"+child.toString());
post(new Runnable() {
@Override
public void run() {
child.setVisibility(View.GONE);
}
});
}
}
windowFocusChanged(false);
isShow=false;
}
Log.i(TAG, "pause: end");
}
chengdragon198:
Thank you for your reply. We tried to use other versions, but they couldn’t initialize unityplayer in the application, so we abandoned it. As for il2cpp, the occupation of its global-metadata.dat file will cause some problems, so we use mono for the time being.
In addition, I see that the crash may be caused by the surface. Is this related to our modification of the surface in pause() of unityplayer?
public class MyUnityPlayer extends UnityPlayer {
private boolean isShow=false;
private String TAG="MyUnityPlayer";
public MyUnityPlayer(Context contextWrapper) {
super(contextWrapper);
Log.i(TAG, " new MyUnityPlayer: --"+contextWrapper.toString());
}
public void addView(View child) {
Log.i(TAG,"addView");
if (child instanceof SurfaceView) {
final SurfaceView surfaceView = (SurfaceView) child;
surfaceView.getHolder().setFormat(PixelFormat.TRANSPARENT);
surfaceView.setZOrderOnTop(true);
}
super.addView(child);
}
@Override
public void pause() {
Log.i(TAG, "pause: start--"+isShow);
if(true){
super.pause();
for (int i = 0; i < getChildCount(); i++) {
final View child =getChildAt(i);
if(null!=child){
Log.i(TAG,"pause---"+child.toString());
post(new Runnable() {
@Override
public void run() {
child.setVisibility(View.GONE);
}
});
}
}
windowFocusChanged(false);
isShow=false;
}
Log.i(TAG, "pause: end");
}
Without investigation it’s hard to tell. In any case, even if there’s a bug, Unity 2020.1 won’t receiving any bug fixes, since it’s not supported.