react-native-background-upload icon indicating copy to clipboard operation
react-native-background-upload copied to clipboard

Possible crash RN 0.59.10

Open nonotest opened this issue 5 years ago • 10 comments

Hi guys,

just saw this crash report - wondering if anyone has experienced this / any idea on how to solve..

android.app.RemoteServiceException · Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{bf14da4 u0 .../net.gotev.uploadservice.UploadService}
ActivityThread.java:1872android.app.ActivityThread$H.handleMessage	
Handler.java:106android.os.Handler.dispatchMessage	
Looper.java:214android.os.Looper.loop	
ActivityThread.java:7045android.app.ActivityThread.main	
Method.java:-2java.lang.reflect.Method.invoke	
RuntimeInit.java:493com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run	
ZygoteInit.java:965com.android.internal.os.ZygoteInit.main

Device: Samsung SM-G955F with Android 9

can provide more details if needed.

nonotest avatar Jul 15 '19 05:07 nonotest

did you find a solution? I also have a similar issue on android 9

karanpratapsingh avatar Jul 26 '19 11:07 karanpratapsingh

Hello guys, not sure if it is related but i think we successfully avoid this error by adding new permission in android :

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

peacepostman avatar Aug 01 '19 12:08 peacepostman

@peacepostman Thanks a lot, I also just figured this out 20 mins ago, AWESOME

karanpratapsingh avatar Aug 01 '19 13:08 karanpratapsingh

Hi Can you guys tell what app behavior do you see once you face this kind of crush? Is app closed?

quarryman avatar Aug 12 '19 18:08 quarryman

UPD: Before I implemented this I had upload forcing my app to go to background mode in favour of upload service popup and app crush soon.

quarryman avatar Aug 12 '19 19:08 quarryman

@quarryman I came across this issue too, the solution provided by @peacepostman worked for me as well. Essentially the app crashes but there are notifications of the service trying to upload the pictures without progressing. My device is on Android 9 - P20 Huawei phone. Hope this helps and thanks @peacepostman for the solution.

vmary2014 avatar Aug 13 '19 08:08 vmary2014

Duplicated here: https://github.com/Vydia/react-native-background-upload/issues/159

chasms avatar Aug 14 '19 21:08 chasms

@vmary2014 If your app stop receiving events from uploader, this might be another known issue https://github.com/Vydia/react-native-background-upload/issues/129 There is fork proposed, that solved it for me

quarryman avatar Aug 27 '19 09:08 quarryman

I'm seeing this same error and I do have the FOREGROUND_SERVICE permission set. Does anyone here have any other suggestions? I'm at a loss

Android: v1.1.10 React Native: v0.62.2 React Native Background Upload: v5.1.0

android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{1254bf5 u0 io.xoi.vision/net.gotev.uploadservice.UploadService}
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2240)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:246)
	at android.app.ActivityThread.main(ActivityThread.java:8506)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

xOIBrandon avatar Apr 01 '21 19:04 xOIBrandon

Hey y'all. I tracked this bug down to android-background-upload. The maintainer of that library released a new version that we hope will solve this problem. android-background-upload: 4.5.3

xOIBrandon avatar Apr 12 '21 21:04 xOIBrandon