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

Null pointer on stop recording #1

Open
anirudh-softprodigy opened this issue Oct 29, 2021 · 7 comments
Open

Null pointer on stop recording #1

anirudh-softprodigy opened this issue Oct 29, 2021 · 7 comments

Comments

@anirudh-softprodigy
Copy link

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)

@unicorncoderforever
Copy link
Owner

Hi,

Thanks for reporting, needed more inputs on the bug, does it happen all the time ?

@anirudh-softprodigy
Copy link
Author

yes, it does happen all the time. Will this work with mp3 files ?

@unicorncoderforever
Copy link
Owner

actually it is working on my phone, your OS looks like 11

@unicorncoderforever
Copy link
Owner

I haven't implemented the newest writing external storage way, so that might be the reason, but I will look into again

@unicorncoderforever
Copy link
Owner

it might take quite sometime for me to implement can check in lower android versions to cross check whether that is the issue

@unicorncoderforever
Copy link
Owner

pushed the temporary change, let me know whether its working

@manikandan-artium
Copy link

not working, I am also facing the same issues

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

No branches or pull requests

3 participants