-
Notifications
You must be signed in to change notification settings - Fork 3
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
Null pointer on stop recording #1
Comments
Hi, Thanks for reporting, needed more inputs on the bug, does it happen all the time ? |
yes, it does happen all the time. Will this work with mp3 files ? |
actually it is working on my phone, your OS looks like 11 |
I haven't implemented the newest writing external storage way, so that might be the reason, but I will look into again |
it might take quite sometime for me to implement can check in lower android versions to cross check whether that is the issue |
pushed the temporary change, let me know whether its working |
not working, I am also facing the same issues |
Device : Poco X3 Pro
Android Version : 11
Getting null pointer exception when trying to stop the recording.
2021-10-29 10:19:25.102 32676-32735/com.shri.androidkaraoke E/UCAudioEncoder: write: AudioEncoder is not alive 2021-10-29 10:19:25.103 32676-32735/com.shri.androidkaraoke E/AudioMixer: stop audio 2021-10-29 10:19:25.103 32676-32735/com.shri.androidkaraoke I/UCAudioEncoder: Stop audio encoder: 0 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.lang.Thread.join()' on a null object reference 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at com.shri.karaokesdk.audiomodule.coreaudio.UCAudioEncoder.stopEncoder(UCAudioEncoder.java:117) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at com.shri.karaokesdk.audiomodule.coreaudio.UCVoiceExporter.release(UCVoiceExporter.kt:92) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at com.shri.karaokesdk.audiomodule.coreaudio.AudioMixer.releaseEncoder(AudioMixer.java:157) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at com.shri.karaokesdk.audiomodule.coreaudio.AudioMixer.checkForEndOfRecording(AudioMixer.java:119) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at com.shri.karaokesdk.audiomodule.coreaudio.AudioMixer.handleStopAudioRecording(AudioMixer.java:114) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at com.shri.karaokesdk.audiomodule.coreaudio.AudioMixer$UCRecorderHandler.handleMessage(AudioMixer.java:287) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at android.os.Looper.loop(Looper.java:236) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at com.shri.karaokesdk.audiomodule.coreaudio.AudioMixer.run(AudioMixer.java:245) 2021-10-29 10:19:25.110 32676-32735/com.shri.androidkaraoke W/System.err: at java.lang.Thread.run(Thread.java:923)
The text was updated successfully, but these errors were encountered: