phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 659 forks source link

Playing video & using the camera lead to crash (UNISOC T616) #2592

Open ParanScreen opened 11 months ago

ParanScreen commented 11 months ago

Current Behavior:

To Reproduce

Camera

  1. Open the camera app
  2. The app will crash.

Video

  1. Open a web browser and access youtube.com
  2. Choose any video
  3. (The ad will be displayed as a black screen)
  4. After the ad, it will be soft rebooted (boot animation shown) immediately after playback starts.

Crash Logcats: camera-crash-logcat.txt youtube-webview-crash-logcat.txt

Full Logcat: camera-full-logcat.txt

I don't know if this is a universal issue for UNISOC/T616 or a device specific problem, but I've seen UNISOC T610s have some troubles playing video on a TrebleDroid GSI, so potentially the UNISOC's implementation of the GPU driver is the root cause.

Please take a look if you have a moment, thank you for your time.

ParanScreen commented 11 months ago

Update: Found that both your final release (AOSP 12.1 v416 build, flavour system-squeak-arm64-ab-floss) and Andy Yan's LineageOS 19.1 (Build 20231017) don't have this issue. Maybe due to a compatibility issue between vendor versions, as the tablet's stock firmware is A12?

Below are dumpsys from SurfaceFlinger from AOSP 12.1 v416 build (which works just fine): aosp121-v416-youtube-on-bromite-sf.txt aosp121-v416-camera-sf.txt

And below is the dumpsys from SurfaceFlinger from TrebleDroid 14.0.0_r14 ci-20231117 just before crashing while attempting to play a YouTube video on a webview (from a simple bash script to run adb shell dumpsys SurfaceFlinger > yt-log-$a.txt until there is no more output): yt-log-22.txt

(btw, could you let me know where shoud I fill the issue report, here or TrebleDroid's repo?)

Engraver0292 commented 11 months ago

Have the same issue on my Chuwi HiPad XPro with a Unisoc T616. Anything above Android 12 has this issue.

0xLCT commented 10 months ago

I also have this issue on the N-one/Incar Npad Pro T616 ID:N4T2 LineageOs 12.1 works too.

(btw, could you let me know where shoud I fill the issue report, here or TrebleDroid's repo?)

@ParanScreen I think it's better to report it on TrebleDroid repo as development mainly seems to be happening there ( last commit here was 2 years ago)

It's most probably an old driver as there is other T616 tablets running official android 13 like the Teclast T60 and the Cubot Tab 40. You can try to flash their firmware but doing so might brick your device so I don't recommend it.