Skip to content

Random "UI error" causes a crash #10355

@ghost

Description

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.25.2

Steps to reproduce the bug

  1. Open the app as normally
  2. Start downloading videos & subtitles
  3. Use the app as normally (watch other videos, search, look at the download progress)
  4. At any given backswipe to go to the previous screen (especially from the downloads progress view), the app will crash, and give an "UI error"

Expected behavior

The app should have worked normally, no crashes, et cetera.

Actual behavior

The app will crash at any given time, especially if you look at the downloads view, and go back to the previous view by tapping back on the system nav bar.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: ZA
  • Content Language: en-ZA
  • App Language: en_ZA
  • Service: none
  • Version: 0.25.2
  • OS: Linux samsung/a33xnsdxx/a33x:13/TP1A.220624.014/A336EDXU6CWF1:user/release-keys 13 - 33
Crash log

android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service org.schabi.newpipe/us.shandian.giga.service.DownloadManagerService
	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
	at android.os.Parcel.readParcelableInternal(Parcel.java:4787)
	at android.os.Parcel.readParcelable(Parcel.java:4755)
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3018)
	at android.os.Parcel.createException(Parcel.java:3007)
	at android.os.Parcel.readException(Parcel.java:2990)
	at android.os.Parcel.readException(Parcel.java:2932)
	at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6991)
	at android.app.Service.startForeground(Service.java:743)
	at us.shandian.giga.service.DownloadManagerService.updateForegroundState(DownloadManagerService.java:336)
	at us.shandian.giga.service.DownloadManagerService.handleMessage(DownloadManagerService.java:268)
	at us.shandian.giga.service.DownloadManagerService.$r8$lambda$gVT-KbstFlv6SWFsotFx97l7BIY(DownloadManagerService.java:0)
	at us.shandian.giga.service.DownloadManagerService$$ExternalSyntheticLambda2.handleMessage(R8$$SyntheticClass:0)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.app.ActivityThread.main(ActivityThread.java:8757)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)


Affected Android/Custom ROM version

Android 13, with OneUI 5.1

Affected device model

Samsung Galaxy A33 5G (SM-A336E)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugdownloaderIssue is related to the downloader

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions