you-apps / RecordYou

Privacy focused recorder app built with MD3
https://you-apps.net
GNU General Public License v3.0
750 stars 34 forks source link

Crash when spamming Record button #26

Closed salad612 closed 1 year ago

salad612 commented 1 year ago

Spam the record button with mic symbol and it will crash

salad612 commented 1 year ago

Managed to get it to crash by spamming record screen and allow screen recording too. Interestingly, even if I quit the app using the app switcher it is more prone to crashing after it crashes once. i.e. the next time you open it it will crash when just pressing the record screen button (also it starts recording when you reenter the app). May be a duplicate of https://github.com/Bnyro/RecordYou/issues/25

salad612 commented 1 year ago

crash report when spamming record video:

type: crash
package: com.bnyro.recorder:3
process: com.bnyro.recorder

java.lang.RuntimeException: Error receiving broadcast Intent { act=com.bnyro.recorder.STOP flg=0x10 } in com.bnyro.recorder.services.ScreenRecorderService$b@1db7bd7
    at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1800)
    at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2)
    at android.os.Handler.handleCallback(Handler.java:942)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7872)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Caused by: java.lang.RuntimeException: stop failed.
    at android.media.MediaRecorder.stop(Native Method)
    at com.bnyro.recorder.services.ScreenRecorderService.onDestroy(SourceFile:17)
    at com.bnyro.recorder.services.ScreenRecorderService$b.onReceive(Unknown Source:2)
    at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1790)
    ... 9 more
salad612 commented 1 year ago

crash report when spamming record audio:

type: crash
package: com.bnyro.recorder:3
process: com.bnyro.recorder

java.lang.RuntimeException: stop failed.
    at android.media.MediaRecorder.stop(Native Method)
    at d3.g.C(SourceFile:19)
    at j.w$b.o(SourceFile:17)
    at k.f1$a.j(SourceFile:134)
    at s5.a.n(Unknown Source:8)
    at a0.a.s(Unknown Source:77)
    at g6.i.q(SourceFile:129)
    at g6.i.B(SourceFile:44)
    at g6.i.n(SourceFile:17)
    at x0.d0.D(SourceFile:51)
    at x0.d0.C(Unknown Source:8)
    at c1.c.e(Unknown Source:13)
    at x0.i.e(SourceFile:85)
    at x0.i.e(SourceFile:71)
    at x0.i.e(SourceFile:71)
    at x0.i.e(SourceFile:71)
    at x0.j.e(SourceFile:26)
    at y.w2.d(Unknown Source:26)
    at x0.u.a(SourceFile:159)
    at androidx.compose.ui.platform.AndroidComposeView.M(SourceFile:78)
    at androidx.compose.ui.platform.AndroidComposeView.C(SourceFile:227)
    at androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent(SourceFile:88)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3121)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2802)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3121)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2802)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3121)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2802)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3121)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2802)
    at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:500)
    at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1905)
    at android.app.Activity.dispatchTouchEvent(Activity.java:4263)
    at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:458)
    at android.view.View.dispatchPointerEvent(View.java:15269)
    at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6654)
    at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6454)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5910)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5967)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5933)
    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6098)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5941)
    at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6155)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5914)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5967)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5933)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5941)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5914)
    at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8989)
    at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8940)
    at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8909)
    at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:9112)
    at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:267)
    at android.os.MessageQueue.nativePollOnce(Native Method)
    at android.os.MessageQueue.next(MessageQueue.java:335)
    at android.os.Looper.loopOnce(Looper.java:161)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7872)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
    Suppressed: g6.f0: [androidx.compose.ui.platform.x1@ecb278f, y.e@a279a1c, k1{Cancelling}@1795625, t0@e8723fa]