Skip to content

[Issue]: Application crashes on launch, v20.1.0 #279

@shezik

Description

@shezik

Describe the bug

Application crashes on launch.

Steps to reproduce

Fresh install v20.1.0, launch the application from home screen.

Affected games

No response

Other Moonlight clients

None

Moonlight adjusted settings

None

Moonlight adjusted settings (please complete the following information)

No response

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

Android 12

Device model

Samsung Galaxy Tab S7

Server PC OS version

N/A

Server PC GeForce Experience version

No response

Server PC Nvidia GPU driver version

No response

Server PC antivirus and firewall software

No response

Screenshots

No response

Relevant log output

07-13 14:04:14.524   869   869 D Zygote  : Forked child process 19615
07-13 14:04:14.525  1243  1537 I ActivityManager: Start proc 19615:com.limelight.noir/u0a411 for activelaunch {com.limelight.noir/com.limelight.PcView}
07-13 14:04:14.544 19615 19615 E .limelight.noi: Not starting debugger since process cannot load the jdwp agent.
07-13 14:04:14.545 19615 19615 E USNET   : USNET: appName: com.limelight.noir
07-13 14:04:14.546 19615 19615 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
07-13 14:04:14.547 19615 19615 D ActivityThread: setConscryptValidator
07-13 14:04:14.548 19615 19615 D ActivityThread: setConscryptValidator - put
07-13 14:04:14.553  1243  4176 D ActivityManager: attachApplicationLocked() app=ProcessRecord{d02d158 19615:com.limelight.noir/u0a411} app.isolatedEntryPoint=null instr2=null
07-13 14:04:14.556 19615 19615 I ActivityThread: Relaunch all activities: onCoreSettingsChange
07-13 14:04:14.556 19615 19615 D ActivityThread: handleBindApplication()++ app=com.limelight.noir
07-13 14:04:14.556 19615 19615 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10411; state: ENABLED
07-13 14:04:14.565 19615 19615 W .limelight.noi: ClassLoaderContext classpath element mismatch. expected=/system_ext/framework/androidx.window.extensions.jar, found=/system/system_ext/framework/androidx.window.extensions.jar (PCL[]{PCL[/system_ext/framework/androidx.window.extensions.jar*3879096251]} | PCL[]{PCL[/system/system_ext/framework/androidx.window.extensions.jar*3879096251]})
07-13 14:04:14.572 19615 19615 V GraphicsEnvironment: ANGLE Developer option for 'com.limelight.noir' set to: 'default'
07-13 14:04:14.573 19615 19615 V GraphicsEnvironment: ANGLE GameManagerService for com.limelight.noir: false
07-13 14:04:14.573 19615 19615 V GraphicsEnvironment: App is not on the allowlist for updatable production driver.
07-13 14:04:14.574 19615 19615 D LoadedApk: LoadedApk::makeApplication() appContext.mOpPackageName=com.limelight.noir appContext.mBasePackageName=com.limelight.noir
07-13 14:04:14.574 19615 19615 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false
07-13 14:04:14.575 19615 19615 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false
07-13 14:04:14.581 19615 19615 D ActivityThread: handleBindApplication() --
07-13 14:04:14.584 19615 19615 I com.limelight.LimeLog: ArtemisProfile: Loading profile...
07-13 14:04:14.610 19615 19641 D OpenGLRenderer: RenderThread::requireGlContext()
07-13 14:04:14.611  1243  1526 V ActivityManager: Changed top to ProcessRecord{d02d158 19615:com.limelight.noir/u0a411}
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: QUALCOMM build                   : 193b2ee, I593c16c433
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: Build Date                       : 10/07/21
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.32.02.10
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: Local Branch                     : Test-lib-SR05432264
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: Remote Branch                    :
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: Remote Branch                    :
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: Reconstruct Branch               :
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: Build Config                     : S P 10.0.5 AArch64
07-13 14:04:14.612 19615 19641 I AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
07-13 14:04:14.620 19615 19641 I AdrenoGLES-0: PFP: 0x016dd093, ME: 0x00000000
07-13 14:04:14.620  1243  2033 I Pageboost: Record App IO : com.limelight.noir pid 19615
07-13 14:04:14.622  1243  2033 I Pageboost: 64 bit checked : true for 19615
07-13 14:04:14.623  1243  2033 I Pageboost: IoRecord pid : 19615, started correctly
07-13 14:04:14.625 19615 19641 D OpenGLRenderer: RenderThread::setGrContext()
07-13 14:04:14.643 15392 17872 D BinderSender: onForegroundActivitiesChanged: pid=19615, uid=10411, foregroundActivities=true
07-13 14:04:14.650 19615 19615 E .limelight.noi: Invalid ID 0x00000000.
07-13 14:04:14.650  1243  1523 D SSRM:LoadDetectMonitor: PID = 19615, UID = 10411
07-13 14:04:14.656 19615 19615 I DecorView: [INFO] isPopOver=false, config=true
07-13 14:04:14.656 19615 19615 I DecorView: updateCaptionType >> DecorView@fd7234d[], isFloating=false, isApplication=true, hasWindowControllerCallback=true, hasWindowDecorCaption=false
07-13 14:04:14.656 19615 19615 D DecorView: setCaptionType = 0, this = DecorView@fd7234d[]
07-13 14:04:14.657 19615 19615 I DecorView: getCurrentDensityDpi: from real metrics. densityDpi=340 msg=resources_loaded
07-13 14:04:14.657 19615 19615 I DecorView: setWindowBackground: isPopOver=false color=ff1a1a1a d=android.graphics.drawable.ColorDrawable@f0fe313
07-13 14:04:14.663 19615 19615 D AndroidRuntime: Shutting down VM
--------- beginning of crash
07-13 14:04:14.664 19615 19615 E AndroidRuntime: FATAL EXCEPTION: main
07-13 14:04:14.664 19615 19615 E AndroidRuntime: Process: com.limelight.noir, PID: 19615
07-13 14:04:14.664 19615 19615 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.limelight.noir/com.limelight.PcView}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.shrink()' on a null object reference
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5433)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5472)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:54)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2498)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:226)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:313)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8855)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
07-13 14:04:14.664 19615 19615 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton.shrink()' on a null object reference
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at com.limelight.PcView.refreshProfileButton(SourceFile:350)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at com.limelight.PcView.onResume(SourceFile:373)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1494)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.Activity.performResume(Activity.java:8477)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5403)
07-13 14:04:14.664 19615 19615 E AndroidRuntime:        ... 13 more
07-13 14:04:14.693 19615 19615 I Process : Sending signal. PID: 19615 SIG: 9
07-13 14:04:14.722  1243  1392 I ActivityManager: Process com.limelight.noir (pid 19615) has died: prcp TOP (586,2368)
07-13 14:04:14.722  1243  1392 I ActivityTaskManager: Removing activity ActivityRecord{ab376e9 u0 com.limelight.noir/com.limelight.PcView t1444 f}}(appDied)  from stack callers=com.android.server.wm.ActivityRecord.handleAppDied:4590 com.android.server.wm.WindowProcessController.handleAppDied:1302 com.android.server.wm.ActivityTaskManagerService$LocalService.handleAppDied:7174 com.android.server.am.ActivityManagerService.handleAppDiedLocked:3688 com.android.server.am.ActivityManagerService.appDiedLocked:3878
07-13 14:04:14.722  1243  1539 I libprocessgroup: Successfully killed process cgroup uid 10411 pid 19615 in 0ms
07-13 14:04:14.723 15392 17872 D BinderSender: onProcessDied: pid=19615, uid=10411
07-13 14:04:14.725   869   869 I Zygote  : Process 19615 exited due to signal 9 (Killed)

Additional context

I believe it is related to https://github.com/ClassicOldSong/moonlight-android/blame/d9828999463822368d5772bb20b6cd8b94b278b1/app/src/main/java/com/limelight/PcView.java#L373.

Downgrading to v20.0.0+250712 fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions