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

[Bug]: app goes to background immediately #327

Open
4 of 5 tasks
elpaso opened this issue Apr 8, 2024 · 4 comments
Open
4 of 5 tasks

[Bug]: app goes to background immediately #327

elpaso opened this issue Apr 8, 2024 · 4 comments

Comments

@elpaso
Copy link

elpaso commented Apr 8, 2024

Guidelines

  • I have encountered this bug in the latest release of FreeTube.
  • I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • This issue contains only one bug.

Describe the bug

  1. Install the app from F-Droid after adding the repo
  2. run the app
  3. search for "Sting"
  4. click on first result
  5. play first video result
  6. video starts buffering
  7. the app screen disappears, no video or sound is played
  8. two notifications: "Freetube is running in the background" and another one with the player control symbols "<| || >|"
  9. clicking on the notifications has no effect

Expected Behavior

the video plays

Issue Labels

content not loading

FreeTube Version

v0.20.0.11 Beta

Operating System Version

android 10

Installation Method

.apk

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

@elpaso elpaso added the bug Something isn't working label Apr 8, 2024
@MarmadileManteater
Copy link
Owner

It sounds like the app is crashing.

@MarmadileManteater
Copy link
Owner

The notification doesn't get cancelled because the lifecycle hook isn't called when the app crashes like that, but the app is not still running. Well, the service probably is, but the activity is not.

@elpaso
Copy link
Author

elpaso commented Apr 8, 2024

Yes, the app is crashing, after a while the OS tells me that the app is repeatedly crashing. Is there anything I can do to debug this?

@MarmadileManteater
Copy link
Owner

MarmadileManteater commented Apr 8, 2024

You have to download the nightly (release is no longer debuggable), and you should be able to read the logs using logcat (although, you might be able to read logcat for release, idk, but if you actually want to debug and step through the code, you need nightly). I would personally use android studio (since I already have it), but it might be easier to just get the SDK platform tools and run adb logcat.

Typically, most problems can be debugged with the chrome inspector, but this problem doesn't seem like it would be easy to debug this way seeing as the problem would definitely result in the webview being destroyed, closing the debug session.

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

No branches or pull requests

2 participants