https://github.com/knight-zxw/apimodelingcrashsample
ApiModelingCrashSample
https://github.com/knight-zxw/apimodelingcrashsample
Last synced: 9 months ago
JSON representation
ApiModelingCrashSample
- Host: GitHub
- URL: https://github.com/knight-zxw/apimodelingcrashsample
- Owner: Knight-ZXW
- Created: 2025-08-26T08:58:11.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-08-26T09:16:00.000Z (9 months ago)
- Last Synced: 2025-08-26T11:41:49.786Z (9 months ago)
- Language: Kotlin
- Size: 94.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Issue: ApiModeling causes SurfaceTexture to crash during runtime execution.
Root Cause:
SurfaceTexture implements a finalize method that triggers JNI (Java Native Interface) functions.
During R8's external linking phase, an additional object is created to maintain proper class loading sequence.
However, this object's initialization instruction is not invoked, leaving it in an incomplete state.
Crash Mechanism:
When the garbage collector attempts to reclaim this improperly initialized object, it triggers the finalize method, which results in a native crash due to the uninitialized object state.