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

Fixed crash Caused by java.lang.IllegalStateException #3

Closed
wants to merge 2 commits into from
Closed

Fixed crash Caused by java.lang.IllegalStateException #3

wants to merge 2 commits into from

Conversation

hsangtini
Copy link

Caused by java.lang.IllegalStateException

android.media.MediaRecorder.native_stop (MediaRecorder.java)
android.media.MediaRecorder.stop (MediaRecorder.java:1886)
com.llfbandit.record.Recorder.stopRecording (Recorder.java:59)
com.llfbandit.record.Recorder.close (Recorder.java:52)
com.llfbandit.record.MethodCallHandlerImpl.close (MethodCallHandlerImpl.java:29)
com.llfbandit.record.RecordPlugin.stopPlugin (RecordPlugin.java:78)
com.llfbandit.record.RecordPlugin.onDetachedFromActivity (RecordPlugin.java:61)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.detachFromActivity (FlutterEngineConnectionRegistry.java:389)
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach (FlutterActivityAndFragmentDelegate.java:539)
io.flutter.embedding.android.FlutterActivity.release (FlutterActivity.java:589)
io.flutter.embedding.android.FlutterActivity.onDestroy (FlutterActivity.java:610)

com.llfbandit.record.Recorder.stopRecording
@hsangtini
Copy link
Author

Hope @llfbandit update new version. Crash got from Firebase Crashlytics log.

com.llfbandit.record.Recorder.stopRecording
@llfbandit
Copy link
Owner

Hi,
Thanks for the report.

Why did you change code about permission?
Also, I disagree with the current fix implementation. I'll check this tomorrow.

@hsangtini
Copy link
Author

hsangtini commented Nov 9, 2020

Hi,
Thanks for your reply. I got error about permission at Firebase Crashlytics log.

screenshot_165

Caused by java.lang.NullPointerException
Attempt to invoke interface method 'void io.flutter.plugin.common.MethodChannel$Result.success(java.lang.Object)' on a null object reference
com.llfbandit.record.MethodCallHandlerImpl.onRequestPermissionsResult (MethodCallHandlerImpl.java:62)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onRequestPermissionsResult (FlutterEngineConnectionRegistry.java:712)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onRequestPermissionsResult (FlutterEngineConnectionRegistry.java:412)
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onRequestPermissionsResult (FlutterActivityAndFragmentDelegate.java:606)
io.flutter.embedding.android.FlutterActivity.onRequestPermissionsResult (FlutterActivity.java:642)

@llfbandit
Copy link
Owner

Really wierd errors, but OK.
1.0.1 has been published. Feel free to come back if you still experience issues.

@llfbandit llfbandit closed this Nov 9, 2020
@hsangtini
Copy link
Author

Hi @llfbandit .

I updated version 1.0.1 but still got that error :(

android.media.MediaRecorder.native_stop (MediaRecorder.java)
android.media.MediaRecorder.stop (MediaRecorder.java:917)

com.llfbandit.record.Recorder.stopRecording (Recorder.java:62)
com.llfbandit.record.Recorder.close (Recorder.java:55)
com.llfbandit.record.MethodCallHandlerImpl.close (MethodCallHandlerImpl.java:29)
com.llfbandit.record.RecordPlugin.stopPlugin (RecordPlugin.java:78)
com.llfbandit.record.RecordPlugin.onDetachedFromActivity (RecordPlugin.java:61)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.detachFromActivity (FlutterEngineConnectionRegistry.java:389)
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach (FlutterActivityAndFragmentDelegate.java:539)
io.flutter.embedding.android.FlutterActivity.release (FlutterActivity.java:589)
io.flutter.embedding.android.FlutterActivity.onDestroy (FlutterActivity.java:610)

screenshot_167

@llfbandit
Copy link
Owner

Well, I tried... Time to mute this exception for good.
Please check with 1.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants