Fixed
Status Update
Comments
tr...@google.com <tr...@google.com>
sp...@google.com <sp...@google.com>
sp...@google.com <sp...@google.com>
an...@google.com <an...@google.com> #2
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Koala Feature Drop | 2024.1.2 Canary 4
- Android Gradle Plugin 8.6.0-alpha04
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
Studio Screen Sharing Agent keeps crashing on certain devices with API 29 due to incorrect JNI call.
destroyDisplay method in SurfaceControl.java has "void" return type but surface_control.cc calls it using
CallStaticObjectMethodV instead of CallStaticVoidMethod.
ATTACH LOG FILES
2024-05-25 16:51:56.419 17423-17448 app_process app_process A java_vm_ext.cc:570] JNI DETECTED ERROR IN APPLICATION: the return type of CallStaticObjectMethodV does not match void android.view.SurfaceControl.destroyDisplay(android.os.IBinder)
2024-05-25 16:51:56.419 17423-17448 app_process app_process A java_vm_ext.cc:570] in call to CallStaticObjectMethodV
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] Runtime aborting...
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] Dumping all threads without mutator lock held
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] All threads:
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] DALVIK THREADS (18):
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] "DisplayStreamer 0" prio=5 tid=16 Runnable
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] | group="" sCount=0 dsCount=0 flags=0 obj=0x12e00028 self=0x766a0a7800
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] | sysTid=17448 nice=0 cgrp=default sched=0/0 handle=0x765bcead50
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] | state=R schedstat=( 17746377 37060040 19 ) utm=1 stm=0 core=1 HZ=100
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] | stack=0x765bbf4000-0x765bbf6000 stackSize=991KB
2024-05-25 16:51:56.531 17423-17448 app_process app_process A runtime.cc:630] | held mutexes= "abort lock" "mutator lock"(shared held)
Android Studio Jellyfish | 2023.3.1 Patch 1
Build #AI-233.14808.21.2331.11842104, built on May 15, 2024
Runtime version: 17.0.10+0-17.0.10b1087.21-11572160 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Metal Rendering is ON
Registry:
ide.experimental.ui=true