java.lang.RuntimeException: Unable to start service org.torproject.vpn.vpn.TorVpnService@500fb54
After installing the latest built pipeline apk, I'm now unable to launch the vpn app. When I do, it crashes right away.
This is what I was able to capture in logcat:
12-26 15:37:08.318 29262 29262 I onionmasq: onionmasq_mobile: Hello from Rust!
12-26 15:37:08.319 29262 29262 D onionmasq: onionmasq_mobile: Getting reference to "org.torproject.onionmasq.OnionMasqJni" class...
12-26 15:37:08.357 29262 29262 D AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found
12-26 15:37:08.385 29262 29282 D LeakCanary: LeakCanary is running and ready to detect memory leaks.
12-26 15:37:08.442 29262 29262 D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10303; state: ENABLED
12-26 15:37:08.446 29262 29262 W .torproject.vpn: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
12-26 15:37:08.564 3593 3629 V WindowManagerShell: Transition animation finished (aborted=false), notifying core (#4090)android.os.BinderProxy@b2e4118@0
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: setPauseUIUpdate parameter `paused` is false
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: fillGapsWithPrediction flags:
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: Hotseat app child is: com.android.launcher3.views.DoubleShadowBubbleTextView{54b0971 VFED..CL. ......ID 0,0-207,166 #1} and isPredictedIcon() evaluates to: false
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: Hotseat app child is: com.android.launcher3.views.DoubleShadowBubbleTextView{c39a356 VFED..CL. ......ID 207,0-414,166 #2} and isPredictedIcon() evaluates to: false
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: Hotseat app child is: null and isPredictedIcon() evaluates to: false
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: Remove predicted apps from the past
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: Prediction Index: 0
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: Hotseat app child is: com.android.launcher3.views.DoubleShadowBubbleTextView{ed2efd7 VFED..CL. ......ID 621,0-828,166 #11} and isPredictedIcon() evaluates to: false
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: Hotseat app child is: com.android.launcher3.views.DoubleShadowBubbleTextView{c2dd0c4 VFED..CL. ......ID 828,0-1035,166 #c} and isPredictedIcon() evaluates to: false
12-26 15:37:08.565 26493 26493 D HotseatPredictionController: bindItems to hotseat: []
12-26 15:37:08.566 1910 2224 V WindowManager: Finish Transition #4090: created at 12-26 15:37:07.989 collect-started=0.081ms request-sent=9.12ms started=11.305ms ready=46.45ms sent=48.018ms finished=576.353ms
12-26 15:37:08.569 3593 3629 V WindowManagerShell: Track 0 became idle
12-26 15:37:08.569 3593 3629 V WindowManagerShell: All active transition animations finished
12-26 15:37:08.584 1910 16909 W WindowManager: lockNow pending, ignore updating lockscreen timeout
12-26 15:37:08.597 1910 2229 W WindowManager: lockNow pending, ignore updating lockscreen timeout
12-26 15:37:08.748 29262 29262 W .torproject.vpn: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
12-26 15:37:08.764 29262 29262 D ConnectFragment: setUIState: INIT --> INIT
12-26 15:37:08.816 29262 29262 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10303; state: DISABLED
12-26 15:37:08.818 29262 29262 W .torproject.vpn: Accessing hidden field Lcom/android/internal/policy/DecorView;->mWindow:Lcom/android/internal/policy/PhoneWindow; (unsupported, reflection, allowed)
12-26 15:37:08.822 29262 29302 W Parcel : Expecting binder but got null!
12-26 15:37:08.832 1910 16909 D CompatibilityChangeReporter: Compat change id reported: 261072174; UID 10303; state: ENABLED
12-26 15:37:08.834 29262 29262 D TorVpnService: service: onStartCommand
12-26 15:37:08.835 29262 29262 D CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10303; state: ENABLED
12-26 15:37:08.839 1910 16909 D CompatibilityChangeReporter: Compat change id reported: 170668199; UID 10303; state: ENABLED
12-26 15:37:08.839 1910 16909 I ActivityManager: Background started FGS: Allowed [callingPackage: org.torproject.vpn; callingUid: 10303; uidState: TOP ; uidBFSL: [BFSL]; intent: Intent { act=TorVpnService.start cmp=org.torproject.vpn/.vpn.TorVpnService }; code:PROC_STATE_TOP; tempAllowListReason:<null>; targetSdkVersion:34; callerTargetSdkVersion:34; startForegroundCount:0; bindFromPackage:null: isBindService:false]; startForegroundDelayMs:15481
12-26 15:37:08.839 1910 16909 D CompatibilityChangeReporter: Compat change id reported: 255038118; UID 10303; state: ENABLED
12-26 15:37:08.840 29262 29262 D AndroidRuntime: Shutting down VM
12-26 15:37:08.842 29262 29262 E AndroidRuntime: FATAL EXCEPTION: main
12-26 15:37:08.842 29262 29262 E AndroidRuntime: Process: org.torproject.vpn, PID: 29262
12-26 15:37:08.842 29262 29262 E AndroidRuntime: java.lang.RuntimeException: Unable to start service org.torproject.vpn.vpn.TorVpnService@500fb54 with Intent { act=TorVpnService.start cmp=org.torproject.vpn/.vpn.TorVpnService }: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{87a7a5b 29262:org.torproject.vpn/u0a303} targetSDK=34
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4859)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2294)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:205)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Looper.loop(Looper.java:294)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8194)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: Caused by: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{87a7a5b 29262:org.torproject.vpn/u0a303} targetSDK=34
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.MissingForegroundServiceTypeException$1.createFromParcel(MissingForegroundServiceTypeException.java:53)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.MissingForegroundServiceTypeException$1.createFromParcel(MissingForegroundServiceTypeException.java:49)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Parcel.readParcelableInternal(Parcel.java:4870)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Parcel.readParcelable(Parcel.java:4852)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:3052)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:3041)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:3024)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2966)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6761)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at leakcanary.ServiceWatcher$install$4$2.invoke(ServiceWatcher.kt:93)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at $Proxy3.setServiceForeground(Unknown Source)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.Service.startForeground(Service.java:775)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at org.torproject.vpn.vpn.TorVpnService.onStartCommand(TorVpnService.kt:79)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4841)
12-26 15:37:08.842 29262 29262 E AndroidRuntime: ... 9 more
12-26 15:37:08.846 1910 16909 W ActivityTaskManager: Force finishing activity org.torproject.vpn/.MainActivity
12-26 15:37:08.846 1910 29303 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
12-26 15:37:08.846 3593 3629 V WindowManagerShell: Transition requested: android.os.BinderProxy@72f5bbf TransitionRequestInfo { type = 2, triggerTask = null, remoteTransition = null, displayChange = null, flags = 16 }
12-26 15:37:08.847 1910 16909 W WindowManager: lockNow pending, ignore updating lockscreen timeout
12-26 15:37:08.850 29262 29262 I Process : Sending signal. PID: 29262 SIG: 9
12-26 15:37:08.865 712 712 I BpBinder: onLastStrongRef automatically unlinking death recipients:
12-26 15:37:08.880 1910 8365 I ActivityManager: Process org.torproject.vpn (pid 29262) has died: fg TOP
12-26 15:37:08.880 1910 2277 I libprocessgroup: Successfully killed process cgroup uid 10303 pid 29262 in 0ms
12-26 15:37:08.880 1910 11449 I WindowManager: WIN DEATH: Window{7c85d58 u0 org.torproject.vpn/org.torproject.vpn.MainActivity}
12-26 15:37:08.880 1910 11449 W InputManager-JNI: Input channel object '7c85d58 org.torproject.vpn/org.torproject.vpn.MainActivity (client)' was disposed without first being removed with the input manager!
12-26 15:37:08.881 1910 11449 W WindowManager: lockNow pending, ignore updating lockscreen timeout
12-26 15:37:08.881 1101 1101 I Zygote : Process 29262 exited due to signal 9 (Killed)
12-26 15:37:08.882 1910 8365 W ActivityManager: Canceling start item Intent { act=TorVpnService.start cmp=org.torproject.vpn/.vpn.TorVpnService } in service org.torproject.vpn/.vpn.TorVpnService