App error if phone recorder is turned on while recording and crash if paused in the process

in #utopian-io7 years ago

Project Information

Expected behavior

While recording with the screen recorder app, wanted to capture the feature of it opening inside app before recording, expected to be able to use my mobile default recorder to capture this.

Actual behavior

After enabling target app feature, I started the recording with the app it opened in the targeted app, immediately I clicked on my phone default recorder to capture this, I got error response and I further clicked on pause in the notification bar of screen recorder app, and there was a crash.

How to reproduce

  • download screen recorder app from F-droid
  • launch the app and enable target app (chrome was used in my scenario)
  • click on the record button which is a blue color below the right corner
  • immediately you are on the target app after accepting prompt, open the mobile default screen recorder
  • error message will be seen, open the notification bar and click the pause option of the screen recorder app
    App crashes!
  • App version: version 1.8.7
  • Operating system: android 7.0

Recording Of The Bug

Proof of Work Done

https://github.com/onos1

from the logcat pulled the result of the crash was Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference

Full logcat of the application crash is shown below:

Logcat

05-06 22:06:18.699 17633 17633 E AndroidRuntime: FATAL EXCEPTION: main 05-06 22:06:18.699 17633 17633 E AndroidRuntime: Process: com.orpheusdroid.screenrecorder, PID: 17633 05-06 22:06:18.699 17633 17633 E AndroidRuntime: java.lang.RuntimeException: Unable to start service com.orpheusdroid.screenrecorder.RecorderService@3d2d93b with null: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3411) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at android.app.ActivityThread.-wrap21(ActivityThread.java) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1632) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at com.orpheusdroid.screenrecorder.RecorderService.onStartCommand(RecorderService.java:145) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3394) 05-06 22:06:18.699 17633 17633 E AndroidRuntime: ... 8 more 05-06 22:07:15.818 17840 17840 E AndroidRuntime: FATAL EXCEPTION: main 05-06 22:07:15.818 17840 17840 E AndroidRuntime: Process: com.orpheusdroid.screenrecorder, PID: 17840 05-06 22:07:15.818 17840 17840 E AndroidRuntime: java.lang.RuntimeException: Unable to start service com.orpheusdroid.screenrecorder.RecorderService@3d2d93b with null: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3411) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at android.app.ActivityThread.-wrap21(ActivityThread.java) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1632) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at com.orpheusdroid.screenrecorder.RecorderService.onStartCommand(RecorderService.java:145) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3394) 05-06 22:07:15.818 17840 17840 E AndroidRuntime: ... 8 more 05-06 22:09:13.076 18046 18046 E AndroidRuntime: FATAL EXCEPTION: main 05-06 22:09:13.076 18046 18046 E AndroidRuntime: Process: com.orpheusdroid.screenrecorder, PID: 18046 05-06 22:09:13.076 18046 18046 E AndroidRuntime: java.lang.RuntimeException: Unable to start service com.orpheusdroid.screenrecorder.RecorderService@3d2d93b with null: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3411) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at android.app.ActivityThread.-wrap21(ActivityThread.java) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1632) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at com.orpheusdroid.screenrecorder.RecorderService.onStartCommand(RecorderService.java:145) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3394) 05-06 22:09:13.076 18046 18046 E AndroidRuntime: ... 8 more

Sort:  

Hello! I find your post valuable for the wafrica community! Thanks for the great post! @wafrica is now following you! ALWAYs follow @wafrica and use the wafrica tag!

Hello! @Onos, Sorry your contribution cannot be approved, because the project repository is on Utopian Blacklisted repos and any contribution on the repo will be rejected automatically.


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]