z-huang / InnerTune

A Material 3 YouTube Music client for Android
GNU General Public License v3.0
4.43k stars 273 forks source link

My phone restarts! #182

Closed xmha97 closed 2 years ago

xmha97 commented 2 years ago

Checklist

Steps to reproduce the bug

  1. Go to the "Music" app
  2. Play music
  3. Crashing Bluetooth!
  4. My bluetooth turns on and off rapidly
  5. My phone restarts!
  6. It enters the recovery menu

    Expected behavior

Play music without issue

Actual behavior

See "Steps to reproduce the bug"

Screenshots/Screen recordings

https://user-images.githubusercontent.com/23485114/190854361-b3206525-ea1b-4d2d-b37e-f2d92e8b8dc4.mp4

Screenshot_2022-09-17-16-04-15-483_com.miui.bugreport.jpg

Logs

No response

Music version

0.3.3 (Debug)

Android version

Android 12

Additional information

No response

xmha97 commented 2 years ago

Last night, in order to solve this problem, I factory reset my phone, but the problem still persists. My phone is: Xiaomi 11T

Please don't close this issue until it is resolved although I have no logs to give you so you can resolve it.

z-huang commented 2 years ago

I'm sorry. Is that your phone can't boot normally after the crash? Also, is this reproducable?

xmha97 commented 2 years ago

No, It enters the recovery menu! Yes, this is reproducible.

xmha97 commented 2 years ago

I understood the problem @z-huang

I have installed this app on several Xiaomi mobile phones This problem happened on all these phones!

When Bluetooth is turned off, the app works fine But as soon as Bluetooth is turned on, Bluetooth turns off and on quickly, and the phone restarts.

Please turn on Bluetooth on your mobile to see if there is a problem or not.

I have to choose between Bluetooth and this app Hi, wired handsfree 😂

z-huang commented 2 years ago

I'm using a Xiaomi phone, too. But I don't have this issue. My bluetooth is open all the time.

Screenshot_2022-09-17-16-04-15-483_com.miui.bugreport.jpg

Can you give me the full output? I need lines that start with "com.zionhuang.music" so that I may know where the disaster starts.

xmha97 commented 2 years ago

Can you give me the full output?

Page 2

Screenshot_2022-09-17-17-51-30-679_com.miui.bugreport.jpg

Page 3

Screenshot_2022-09-17-17-52-51-537_com.miui.bugreport.jpg

xmha97 commented 2 years ago

I'm using a Xiaomi phone, too.

What's your Xiaomi phone? (Model)

z-huang commented 2 years ago

MI 9 with MIUI EU 12.5

owencz1998 commented 2 years ago

No issues with samsung just a heads up 🙂

xmha97 commented 2 years ago

No issues with samsung just a heads up 🙂

What's your Samsung phone? (Model)

owencz1998 commented 2 years ago

Z fold 3 dude

airon90 commented 2 years ago

No issue with my Xiaomi 11T Pro

xmha97 commented 2 years ago

No issue with my Xiaomi 11T Pro

Are you using the debug version? Is your bluetooth on when playing music?

z-huang commented 2 years ago

Can you try f96bbcbfe1125936fc6708d70a5e07a6f1c1fa70?

xmha97 commented 2 years ago

Now I using this version: https://github.com/z-huang/music/actions/runs/3075547412 The problem is not solved.

z-huang commented 2 years ago

Is there any setting you've changed in your phones in common? Especially in the developer options.

airon90 commented 2 years ago

Are you using the debug version? Is your bluetooth on when playing music?

I tested the Debug version playing music in my car, linking the phone to the car via bluetooth

owencz1998 commented 2 years ago

I use Samsung ear buds everyday with the debug version never had that issue

owencz1998 commented 2 years ago

Iv just looked online apparently people have had this issue and had to replace the battery have u checked to make sure all software and app updates are done and checked other music apps to see if it does the same

airon90 commented 2 years ago

Is there any setting you've changed in your phones in common? Especially in the developer options.

I don't think I set something particular that can change Bluetooth behaviour: in dev option I just activated USB debugging

xmha97 commented 2 years ago

Hi @z-huang

I tested many debug versions and found out which version is causing the problem:

IMG_20220919_033409_371.jpg

IMG_20220919_033413_678.jpg As you can see, my phone's bluetooth is on but there is no problem.

Perhaps by comparing the code between the two versions, the problem can be found.

xmha97 commented 2 years ago

Log

(the latest debug version) Download logcat.zip

z-huang commented 2 years ago

Try this: d5c2f928a18f320959ec300c9abfd029ed4060ff It should fix the bug.

xmha97 commented 2 years ago

Try this: d5c2f92 It should fix the bug.

Thank you, I tested the app for one day, and the app was OK. 👍