Search Issue Tracker

Won't Fix

Votes

6

Found in

2018.1.0f2

Issue ID

1083389

Regression

No

[Android][Emulator] Crash in SimulateMouseInputs when using AVD API <= 19

Mobile

-

Steps to reproduce:
1. Open QA stripped project
2. Build apk
3. Deploy to Android Emulator (AVD) with API <= 19
4. Wait a minute until the spinning cube freezes

signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
#00 pc 00a758e1 /data/app-lib/com.company.Test_Install-1/libunity.so (SimulateMouseInput(int)+225)

Reproduced on: 2017.4.12f1, 2018.1.9f2, 2018.2.11f1, 2018.3.0b4, 2019.1.0a3

Reproduced on:
AVD API 17, 18 and 19

Not reproduced on:
AVD API 21
VLNQA00062, Asus MeMO Pad 8 (ME181C) (K011), Android 4.4.2, CPU: Intel Atom Z3745, GPU: Intel(R) HD Graphics for BayTrail

Comments (8)

  1. Mese

    Jan 16, 2019 15:04

    Also the Title is unfortunate. It does not only happen on (Emulator).

  2. Mese

    Jan 16, 2019 14:59

    Seem some kind of graphic bug.
    In our case, we got these errors on code executed after Admob callbacks (you know, OnRewardedClosed... etc), AND also did some kind of change on the UI.
    In our case was a fullscreen "Fade" starting on the same frame as OnRewardedClosed. My guess is that Unity is not yet ready to handle UI just coming after the innactivity of an Ad. My solution was a Coroutine that waited for a Frame. New version reported 0 errors.

    I'm now facing a similar issue, but from the callback OnRewardFailedToLoad, which does NOT stop Unity.

  3. ZenithGames

    Nov 25, 2018 21:20

    Forgot to mention the most important thing.

    When you export the project to Android Studio and run it:

    - In Debug Mode (Run-Debug) - it works (doesn't crash)
    - In Release Mode (Run->Run) - it doesn't.

    Which is the most weird thing we've ever seen here.

  4. ZenithGames

    Nov 25, 2018 21:07

    Same here:
    Normal project and empty projects (without any libraries).
    Tested with both Proguard and without Proguard.

    It happens randomly after the start (sometimes it seems that it happens when you click). That's why below there are two possible stacktraces.

    On a real device, there's no crash information (cause of a segmentation fault error). It just closes.
    On emulators, there are little, little logs.

    There are two possible stacktraces from this bug:

    1.

    D/dalvikvm( 3303): VFY: replacing opcode 0x1f at 0x001b
    D/Unity ( 3303): [VFS] Mount /data/app/com.Zenith.TestDalvik1-2.apk
    E/cutils ( 1126): Failed to mkdirat(/storage/sdcard/Android): Read-only file system
    W/Vold ( 1126): Returning OperationFailed - no handler for errno 30
    W/ContextImpl( 3303): Failed to ensure directory: /storage/sdcard/Android/obb/com.Zenith.TestDalvik1
    D/Unity ( 3303): SystemInfo CPU = Intel x86 SSE3, Cores = 2, Memory = 2023mb: 0 at /Users/builduser/buildslave/unity/build/PlatformDependent/AndroidPlayer/Source/EntryPoint.cpp:389 (4, 0, 0)
    I/Unity ( 3303): SystemInfo CPU = Intel x86 SSE3, Cores = 2, Memory = 2023mb
    D/Unity ( 3303): ApplicationInfo com.Zenith.TestDalvik1 version 1.0.0 build f772e907-f49b-4906-9f04-42a41056052d: 0 at /Users/builduser/buildslave/unity/build/PlatformDependent/AndroidPlayer/Source/EntryPoint.cpp:398 (4, 0, 0)
    I/Unity ( 3303): ApplicationInfo com.Zenith.TestDalvik1 version 1.0.0 build f772e907-f49b-4906-9f04-42a41056052d
    D/Unity ( 3303): Built from '2018.2/release' branch, Version '2018.2.9f1 (2207421190e9)', Build type 'Development', Scripting Backend 'mono': 0 at /Users/builduser/buildslave/unity/build/PlatformDependent/AndroidPlayer/Source/EntryPoint.cpp:417 (4, 0, 0)
    I/Unity ( 3303): Built from '2018.2/release' branch, Version '2018.2.9f1 (2207421190e9)', Build type 'Development', Scripting Backend 'mono'
    D/Unity ( 3303): [EGL] Attaching window :0xb86810a8
    D/Unity ( 3303): Mono path[0] = '/data/app/com.Zenith.TestDalvik1-2.apk/assets/bin/Data/Managed'
    D/Unity ( 3303): Mono config path = 'assets/bin/Data/Managed/etc'
    D/Unity ( 3303): PlayerConnection initialized from /data/app/com.Zenith.TestDalvik1-2.apk/assets/bin/Data (debug = 0)
    D/Unity ( 3303): PlayerConnection initialized network socket : 0.0.0.0 55425
    D/Unity ( 3303): PlayerConnection initialized unix socket : Unity-com.Zenith.TestDalvik1
    D/Unity ( 3303): Multi-casting "[IP] 10.0.2.15 [Port] 55425 [Flags] 3 [Guid] 4047793653 [EditorId] 3332379755 [Version] 1048832 [Id] AndroidPlayer(unknown_Android_SDK_built_for_x86@10.0.2.15) [Debug] 1 [PackageName] AndroidPlayer" to [225.0.0.222:54997]...
    D/Unity ( 3303): Waiting for connection from host on [0.0.0.0:55425]...
    D/gralloc_ranchu( 1131): gralloc_alloc: Creating ashmem region of size 2457600
    D/Unity ( 3303): Timed out. Continuing without host connection.
    D/Unity ( 3303): Started listening to [0.0.0.0:55425]
    D/Unity ( 3303): Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=0.0.0.0:56653
    D/Unity ( 3303): InitializeScriptEngine OK (0x8af00)
    D/Unity ( 3303): PlayerConnection already initialized - listening to [0.0.0.0:55425]
    D/Unity ( 3303): PlayerInitEngineNoGraphics OK
    D/Unity ( 3303): AndroidGraphics::Startup window = 0xb86810a8
    D/Unity ( 3303): [EGL] Attaching window :0xb86810a8
    D/ ( 3303): HostConnection::get() New Host Connection established 0xb8a27630, tid 3316
    D/Unity ( 3303): [EGL] Request: ES 2.0 RGB0 000 0/0
    D/Unity ( 3303): [EGL] Found: ID[2] ES 2.0 RGB24 888 24/8 AFBT
    D/Unity ( 3303): [EGL] Request: ES 2.0 RGB0 000 0/0
    D/Unity ( 3303): [EGL] Found: ID[2] ES 2.0 RGB24 888 24/8 AFBT
    D/Unity ( 3303): [EGL] Request: ES 2.0 RGBA32 8888 0/0
    D/Unity ( 3303): [EGL] Found: ID[3] ES 2.0 RGBA32 8888 24/8 AFBT
    D/EGL_emulation( 3303): eglCreateContext: 0xb8a27080: maj 2 min 0 rcv 2
    D/Unity ( 3303): ANativeWindow: (600/1024) RequestedResolution: (0/0) RenderingResolution: (0/0) EGLSurface: (600/1024)
    D/EGL_emulation( 3303): eglCreateContext: 0xb8a2e270: maj 2 min 0 rcv 2
    D/EGL_emulation( 3303): eglMakeCurrent: 0xb8a2e270: ver 2 0
    D/Unity ( 3303): Renderer: Android Emulator OpenGL ES Translator (AMD Radeon HD 7900 Series)
    D/Unity ( 3303): Vendor: Google (ATI Technologies Inc.)
    D/Unity ( 3303): Version: OpenGL ES 2.0 (4.5.13492 Core Profile Context 22.19.677.257)
    D/Unity ( 3303): GLES: 2
    D/Unity ( 3303): GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_texture_npot GL_OES_rgb8_rgba8 ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_gles_max_version_2 GL_OES_vertex_array_object
    D/Unity ( 3303): OPENGL LOG: Creating OpenGL ES 2.0 graphics device ; Context level <OpenGL ES 2.0> ; Context handle -1197284656
    D/Unity ( 3303): [EGL] Attaching window :0xb86810a8
    D/Unity ( 3303): Requested framebuffer: resolution[600x1024], rgba[8/8/8/8], depth+stencil[on], samples[1]
    D/Unity ( 3303): Created framebuffer: resolution[600x1024], rgba[8/8/8/8], depth+stencil[24/8], samples[0]
    D/Unity ( 3303): [EGL] Attaching window :0xb86810a8
    D/Unity ( 3303): Initialize engine version: 2018.2.9f1 (2207421190e9)
    D/Unity ( 3303): Begin MonoManager ReloadAssembly
    D/Unity ( 3303): - Completed reload, in 2.082 seconds
    D/Unity ( 3303): PlayerInitEngineGraphics OK
    D/Unity ( 3303): Found 8 native sensors
    D/Unity ( 3303): Sensor : Accelerometer ( 1) ; 0.000248 / 0.00s ; Goldfish 3-axis Accelerometer / The Android Open Source Project
    D/Unity ( 3303): Sensor : Accelerometer ( 1) ; 0.000248 / 0.00s ; Goldfish 3-axis Accelerometer / The Android Open Source Project
    D/Unity ( 3303): SetWindow 0 0xb8778c98
    D/Unity ( 3303): [EGL] Attaching window :0xb8778c98
    D/Unity ( 3303): ANativeWindow: (600/1024) RequestedResolution: (0/0) RenderingResolution: (0/0) EGLSurface: (600/1024)
    D/EGL_emulation( 3303): eglMakeCurrent: 0xb8a2e270: ver 2 0
    D/gralloc_ranchu( 1131): gralloc_alloc: Creating ashmem region of size 2457600
    D/Unity ( 3303): UnloadTime: 17.460000 ms
    D/Unity ( 3303): UUID: 9e53ef6f654e6b1b => 59bd6a25d6cc910abdeae8d86bb814c6
    E/cutils ( 1126): Failed to mkdirat(/storage/sdcard/Android): Read-only file system
    W/ContextImpl( 3303): Failed to ensure directory: /storage/sdcard/Android/data/com.Zenith.TestDalvik1/files
    W/Vold ( 1126): Returning OperationFailed - no handler for errno 30
    D/com.facebook.FacebookSdk( 3245): getGraphApiVersion: v3.0
    E/cutils ( 1126): Failed to mkdirat(/storage/sdcard/Android): Read-only file system
    W/ContextImpl( 3303): Failed to ensure directory: /storage/sdcard/Android/obb/com.Zenith.TestDalvik1
    W/SensorService( 1623): sensor 00000000 already enabled in connection 0xb8827460 (ignoring)
    W/Vold ( 1126): Returning OperationFailed - no handler for errno 30
    D/Unity ( 3303): Sensor : Accelerometer ( 1) ; 0.000248 / 0.00s ; Goldfish 3-axis Accelerometer / The Android Open Source Project
    D/Unity ( 3303): Choreographer available: Enabling VSYNC timing
    D/dalvikvm( 3303): GC_FOR_ALLOC freed 299K, 12% free 2847K/3204K, paused 10ms, total 11ms
    D/dalvikvm( 3303): GC_FOR_ALLOC freed 278K, 11% free 3004K/3340K, paused 3ms, total 4ms
    D/dalvikvm( 3303): GC_FOR_ALLOC freed 130K, 14% free 3006K/3472K, paused 3ms, total 4ms
    D/Unity ( 3303): ANativeWindow: (600/1024) RequestedResolution: (0/0) RenderingResolution: (0/0) EGLSurface: (600/1024)
    D/EGL_emulation( 3303): eglMakeCurrent: 0xb8a2e270: ver 2 0
    D/dalvikvm( 3303): GC_FOR_ALLOC freed 290K, 18% free 2877K/3472K, paused 2ms, total 3ms
    D/dalvikvm( 3303): GC_FOR_ALLOC freed 423K, 17% free 2883K/3472K, paused 13ms, total 13ms
    D/EGL_emulation( 1719): eglMakeCurrent: 0xb868bf50: ver 2 0
    D/dalvikvm( 3303): GC_FOR_ALLOC freed 517K, 18% free 2878K/3472K, paused 3ms, total 4ms
    E/CRASH ( 3303): signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
    E/CRASH ( 3303): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    E/CRASH ( 3303): Build fingerprint: 'generic_x86/google_sdk_x86/generic_x86:4.4.2/KK/5056517:eng/test-keys'
    E/CRASH ( 3303): Revision: '0'
    E/CRASH ( 3303): pid: 3303, tid: 3316, name: UnityMain >>> com.Zenith.TestDalvik1 <<<
    E/CRASH ( 3303): eax 00000000 ebx a74001e8 ecx a6c5b9ec edx 00000000
    E/CRASH ( 3303): esi 00000000 edi 00000003
    E/CRASH ( 3303): xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b
    E/CRASH ( 3303): eip a5e0cb77 ebp 00000001 esp a4f998bc flags 00210292
    E/CRASH ( 3303):
    E/CRASH ( 3303): backtrace:
    E/CRASH ( 3303): #00 pc 00d71b77 /data/app-lib/com.Zenith.TestDalvik1-2/libunity.so (SimulateMouseInput(int)+225)
    F/MessageQueue( 3303): IdleHandler threw exception
    F/MessageQueue( 3303): java.lang.Error: signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
    F/MessageQueue( 3303): Build fingerprint: 'generic_x86/google_sdk_x86/generic_x86:4.4.2/KK/5056517:eng/test-keys'
    F/MessageQueue( 3303): Revision: '0'
    F/MessageQueue( 3303): pid: 3303, tid: 3316, name: UnityMain >>> com.Zenith.TestDalvik1 <<<
    F/MessageQueue( 3303):
    F/MessageQueue( 3303): at libunity.SimulateMouseInput(int)(SimulateMouseInput:225)

    2.
    11-25 21:45:34.108 3016-3058/com.Zenith.Cartoon E/CRASH: other thread is trapped; signum = 11
    11-25 21:45:34.108 3016-3058/com.Zenith.Cartoon A/MessageQueue: IdleHandler threw exception
    java.lang.Error: signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
    Build fingerprint: 'generic_x86/google_sdk_x86/generic_x86:4.4.2/KK/5056517:eng/test-keys'
    Revision: '0'
    pid: 3016, tid: 3107, name: FMODAudioDevice >>> com.Zenith.Cartoon <<<

    at libunity.FMOD_Resampler_Linear_PCM16_Mono(FMOD_Resampler_Linear_PCM16_Mono:219)

    Happens on API <= 19.
    Sitting here for 8 days and trying to solve it, no clue.

  5. ercion

    Nov 17, 2018 12:27

    11-17 17:18:36.514 3976-4001/com.mycompany E/CRASH: signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Build fingerprint: 'generic_x86/google_sdk_x86/generic_x86:4.4.2/KK/5056517:eng/test-keys'
    Revision: '0'
    pid: 3976, tid: 4001, name: UnityMain >>> com.mycompany <<<
    eax 00000000 ebx a0f3b1e8 ecx ba255ed0 edx 0000047f
    esi 00000000 edi 00000003
    xcs 00000073 xds 0000007b xes ffff007b xfs c0670000 xss 0000007b
    eip 9f94c4c3 ebp 00000001 esp a12b38bc flags 00210292
    backtrace:
    #00 pc 00d6d4c3 /data/app-lib/com.mycompany-2/libunity.so (SimulateMouseInput(int)+225)
    11-17 17:18:36.514 3976-4001/com.mycompany A/MessageQueue: IdleHandler threw exception
    java.lang.Error: signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
    Build fingerprint: 'generic_x86/google_sdk_x86/generic_x86:4.4.2/KK/5056517:eng/test-keys'
    Revision: '0'
    pid: 3976, tid: 4001, name: UnityMain >>> com.mycompany <<<

    at libunity.SimulateMouseInput(int)(SimulateMouseInput:225)

  6. unity_t3Fr_z_eyNUqzQ

    Nov 16, 2018 13:31

    E/CRASH ( 2401): signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
    E/CRASH ( 2401): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    E/CRASH ( 2401): Build fingerprint: 'generic_x86/google_sdk_x86/generic_x86:4.3.1/JB_MR2/3093083:eng/test-keys'
    E/CRASH ( 2401): Revision: '0'
    E/CRASH ( 2401): pid: 2401, tid: 2414, name: UnityMain >>> com.devtodev.unitysdk <<<
    E/CRASH ( 2401): eax 00000000 ebx a8c4b1f0 ecx b93ba6d0 edx 0000066d
    E/CRASH ( 2401): esi 00000000 edi 00000003
    E/CRASH ( 2401): xcs 00000073 xds 0000007b xes ffff007b xfs c0670000 xss 0000007b
    E/CRASH ( 2401): eip a7662195 ebp 00000001 esp a67d4a2c flags 00210292
    E/CRASH ( 2401):
    E/CRASH ( 2401): backtrace:
    E/CRASH ( 2401): #00 pc 00d80195 /data/app-lib/com.devtodev.unitysdk-2/libunity.so (SimulateMouseInput(int)+225)
    F/MessageQueue( 2401): IdleHandler threw exception
    F/MessageQueue( 2401): java.lang.Error: signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
    F/MessageQueue( 2401): Build fingerprint: 'generic_x86/google_sdk_x86/generic_x86:4.3.1/JB_MR2/3093083:eng/test-keys'
    F/MessageQueue( 2401): Revision: '0'
    F/MessageQueue( 2401): pid: 2401, tid: 2414, name: UnityMain >>> com.devtodev.unitysdk <<<
    F/MessageQueue( 2401):
    F/MessageQueue( 2401): at libunity.SimulateMouseInput(int)(SimulateMouseInput:225)

  7. ercion

    Nov 14, 2018 07:12

    Reproduced on an empty project created on Unity 2018.2.0f2, built with Gradle 3.2.1, compile SDK 28, build tools 28.0.3, ran on AVD with API 19.

  8. rdevte

    Nov 08, 2018 04:44

    ~Removed~

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.