haiyangwu / mediasoup-demo-android

mediasoup android demo https://demo.mediasoup.org
96 stars 65 forks source link

App crash when enter the room after exit room #3

Closed luoyurain716 closed 4 years ago

luoyurain716 commented 4 years ago

您好,我在app进入房间后再退出房间再进入房间会报这个错误,请问有办法解决吗?不是100%出现 02-25 13:22:51.026 10929-11025/org.roomclient.demo E/AndroidRuntime: JUNK_FATAL_EXCEP: FATAL EXCEPTION: AudioRecordJavaThread,Process: org.roomclient.demo, PID: 10929 02-25 13:22:51.027 10929-11025/org.roomclient.demo E/AndroidRuntime: FATAL EXCEPTION: AudioRecordJavaThread Process: org.roomclient.demo, PID: 10929 java.lang.UnsatisfiedLinkError: No implementation found for void org.webrtc.voiceengine.WebRtcAudioRecord.nativeDataIsRecorded(int, long) (tried Java_org_webrtc_voiceengine_WebRtcAudioRecord_nativeDataIsRecorded and Java_org_webrtc_voiceengine_WebRtcAudioRecord_nativeDataIsRecorded__IJ) at org.webrtc.voiceengine.WebRtcAudioRecord.nativeDataIsRecorded(Native Method) at org.webrtc.voiceengine.WebRtcAudioRecord.access$600(WebRtcAudioRecord.java:26) at org.webrtc.voiceengine.WebRtcAudioRecord$AudioRecordThread.run(WebRtcAudioRecord.java:166)

haiyangwu commented 4 years ago

It seems like a bug. After invoking the Peer#close some 'process' still holds the audio device and result in the crash next time. I've noticed this crash when developing and did some effort to avoid it, but not fix in all scenery.

luoyurain716 commented 4 years ago

Thank you for your reply. Do you think this is a bug of webrtc?

haiyangwu commented 4 years ago

No, it's a bug of my implementation. 🤔

On Thu, Feb 27, 2020 at 10:04 PM luoyurain716 notifications@github.com wrote:

Thank you for your reply. Do you think this is a bug of webrtc?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/haiyangwu/mediasoup-demo-android/issues/3?email_source=notifications&email_token=AAOBOGXMQ24A4KFEDDVPJYLRE7B7PA5CNFSM4K4W76U2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENEQHZI#issuecomment-591987685, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOBOGTUDP63FHK2AJ5FS3LRE7B7PANCNFSM4K4W76UQ .

-- Haiyang Wu wuhaiyang1213@gmail.com

gongwj1119 commented 4 years ago

I had the same problem

haiyangwu commented 4 years ago

duplicate with https://github.com/haiyangwu/mediasoup-client-android/issues/12