Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have error code = 100 #156

Closed
mbermeleev opened this issue Jan 19, 2024 · 1 comment
Closed

Have error code = 100 #156

mbermeleev opened this issue Jan 19, 2024 · 1 comment
Labels
Fixed Issue was fixed in latest release

Comments

@mbermeleev
Copy link

mbermeleev commented Jan 19, 2024

Please help!
This library has been imported into the project. It seems that everything has been done according to the instructions so that everything works, but an error crashes on android 14 immediately after clicking the "start"
button, it gives an error code = 100
the following is indicated in the logs:
E/HBRecorderOnError: java.lang.IllegalStateException: Must register a callback before starting capture, to manage resources in response to MediaProjection states.
at android.media.projection.MediaProjection.createVirtualDisplay(MediaProjection.java:214)
at com.hbisoft.hbrecorder.ScreenRecordService.initVirtualDisplay(ScreenRecordService.java:563)
at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:273)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5268)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2531)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8893)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
E/HBRecorder: HBRecorderOnStart called
At the same time, on android devices 13 and below, everything works correctly
It problem actual for samsung's devices with android 14
I also installed your latest release on the device, it works correctly on the device

@HBiSoft
Copy link
Owner

HBiSoft commented Feb 24, 2024

This should be fixed in 3.0.2.

@HBiSoft HBiSoft closed this as completed Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Issue was fixed in latest release
Projects
None yet
Development

No branches or pull requests

2 participants