Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ParanScreen opened this issue Nov 21, 2023 · 3 comments
Open

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

ParanScreen opened this issue Nov 21, 2023 · 3 comments

Comments

@ParanScreen
Copy link

ParanScreen commented Nov 21, 2023

Current Behavior:

  • Using apps that use camera functionality causes the app to crash
  • Playing video (e.g. YouTube video on a webview) will also cause the phone to crash, and sometimes cause the entire device to soft restart

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

  • Device: N-one/Incar Npad Pro (UNISOC T616 SoC)
  • Build Flavor: system-td-arm64-ab-vanilla.img
  • Version: Log was taken from android_14.0.0_r14 ci-20231117, but the issue persists on various TrebleDroid-based builds that I've tried, including LineageOS, ArrowOS and PixelExperience (Android 13).

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
Copy link
Author

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
Copy link

Engraver0292 commented Dec 6, 2023

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

@lctrevizan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants