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

Switching audio input/output device #4

Open
Termina1 opened this issue Feb 25, 2021 · 9 comments
Open

Switching audio input/output device #4

Termina1 opened this issue Feb 25, 2021 · 9 comments

Comments

@Termina1
Copy link

Hi, I'm trying to understand how to switch input and output device using python sdk

agora = agorartc.createRtcEngineBridge()
audioDeviceManager = agora.createAudioRecordingDeviceManager()[0]

I can get audioDeviceManager, but I don't understand how to set, i.e. input device using setDevice.

@YiqingJackieHuang
Copy link
Contributor

Since there is no API reference for Python at this point, please refer to Audio Device Manager and Video Device Manager which is similar. Besides, VideoDeviceManager, AudioPlaybackDeviceManager and AudioRecordingDeviceManager are defined in agorartc.py from line 8086 to 8222.

Here is a naive example:

>>> import agorartc
>>> rtc = agorartc.createRtcEngineBridge()
>>> eventHandler = agorartc.RtcEngineEventHandlerBase()
>>> rtc.initEventHandler(eventHandler)
0 (Success)
>>> rtc.initialize("your-appID", None, agorartc.AREA_CODE_GLOB & 0xFFFFFFFF)  # If you do not have an App ID, see Appendix (https://github.com/AgoraIO-Community/Agora-Python-SDK#appendix).
0 (Success)
>>> audio_recording_device_manager, err = rtc.createAudioRecordingDeviceManager()
>>> err
0 (Success)
>>> audio_recording_device_manager.getCount()  # Obtain the number of microphones.
2 (There are 2 microphones)
>>> audio_recording_device_manager.getDevice(0, '', '')  # Obtain device information of the 1st microphone.
[0, 'default (MacBook Pro Microphone)', '83'] ([ERROR_CODE, device_name, device_id])
>>> audio_recording_device_manager.getDevice(1, '', '')  # Obtain device information of the 2nd microphone.
[0, 'HD Pro Webcam C920', '88'] ([ERROR_CODE, device_name, device_id])
>>> audio_recording_device_manager.setDevice('88')  # Set the 2nd microphone as the recording device.
[0, '88'] ([ERROR_CODE, device_id])
>>> rtc.release()

@Termina1
Copy link
Author

Termina1 commented Mar 3, 2021

Thanks!

@Termina1 Termina1 closed this as completed Mar 3, 2021
@shayanb
Copy link

shayanb commented Mar 23, 2021

@YiqingJackieHuang

Following this pattern, after calling audio_recording_device_manager.setDevice it aborts the process, any ideas what I'm doing wrong?

import agorartc
    RTC = agorartc.createRtcEngineBridge()
    eventHandler = agorartc.RtcEngineEventHandlerBase()
    RTC.initEventHandler(eventHandler)
    RTC.initialize(Clubhouse.AGORA_KEY, None, agorartc.AREA_CODE_GLOB & 0xFFFFFFFE)
    audio_recording_device_manager, err = RTC.createAudioRecordingDeviceManager()
    audio_count = audio_recording_device_manager.getCount()
    for i in range(0, audio_count):
        if "VB-Cable" in audio_recording_device_manager.getDevice(i, '', ''):
            print("Set Audio input to: {}".format(audio_recording_device_manager.getDevice(i, '', '')) )
            print(audio_recording_device_manager.setDevice(audio_recording_device_manager.getDevice(i, '', '')[2]))

The second part of the code simply uses the number from the test device as the input for setDevice.

@YiqingJackieHuang
Copy link
Contributor

@shayanb
I have no idea at this point. Can it cause the same problem when try running the code block you provided independently aside from your project?

By the way, a typo in your code: 0xFFFFFFFE should be 0xFFFFFFFF.

@shayanb
Copy link

shayanb commented Mar 27, 2021

Thanks @YiqingJackieHuang .

yes, as soon as it gets to the setDevice line it aborts. I restarted the PRAM as I've read that might help with permissions, but didn't work. It doesn't seem to give any errors and just aborts.

error? 0
Set Audio input to: [0, 'VB-Cable', '60']
[1]    10854 abort      sudo python main.py

@YiqingJackieHuang
Copy link
Contributor

YiqingJackieHuang commented Mar 29, 2021

Hi, @shayanb. Please provide me with the crash report to find out the possible cause. The crash report can be found in Console app on macOS.

Screen Shot 2021-03-04 at 11 12 30

@shayanb
Copy link

shayanb commented Mar 29, 2021

@YiqingJackieHuang

Here you go:

Process:               python3.9 [16965]
Path:                  /Users/USER/*/python
Identifier:            python3.9
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        zsh [2932]
Responsible:           iTerm2 [725]

Date/Time:             2021-03-28 21:38:58.223 -0600
OS Version:            Mac OS X 10.15.7 

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
stack buffer overflow

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff6ced033a __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff6cf8ce60 pthread_kill + 430
2   libsystem_c.dylib             	0x00007fff6ce578a2 __abort + 139
3   libsystem_c.dylib             	0x00007fff6ce31d7b __stack_chk_fail + 100
4   _agorartc.cpython-39-darwin.so	0x00000001099025b1 _wrap_AudioRecordingDeviceManager_setDevice(_object*, _object*) + 497
5   python                        	0x0000000103d32a02 cfunction_call + 130
6   python                        	0x0000000103cf18b7 _PyObject_MakeTpCall + 375
7   python                        	0x0000000103dd9220 call_function + 624
8   python                        	0x0000000103dd61d6 _PyEval_EvalFrameDefault + 27654
9   python                        	0x0000000103cf2125 function_code_fastcall + 229
10  python                        	0x0000000103dd914b call_function + 411
11  python                        	0x0000000103dd61b9 _PyEval_EvalFrameDefault + 27625
12  python                        	0x0000000103dda014 _PyEval_EvalCode + 2852
13  python                        	0x0000000103dcf500 PyEval_EvalCode + 64
14  python                        	0x0000000103e1e3df PyRun_FileExFlags + 351
15  python                        	0x0000000103e1d70f PyRun_SimpleFileExFlags + 271
16  python                        	0x0000000103e3c7c3 Py_RunMain + 2067
17  python                        	0x0000000103e3ccf3 pymain_main + 403
18  python                        	0x0000000103e3cd4b Py_BytesMain + 43
19  libdyld.dylib                 	0x00007fff6cd88cc9 start + 1

Thread 1:
0   libsystem_pthread.dylib       	0x00007fff6cf88b68 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	0x00007fff6cf88b68 start_wqthread + 0

Thread 3:: AMCP Logging Spool
0   libsystem_kernel.dylib        	0x00007fff6cec9e36 semaphore_wait_trap + 10
1   com.apple.audio.caulk         	0x00007fff6695cb16 caulk::mach::semaphore::wait() + 16
2   com.apple.audio.caulk         	0x00007fff6695c9b2 caulk::semaphore::timed_wait(double) + 106
3   com.apple.audio.caulk         	0x00007fff6695c7c4 caulk::concurrent::details::worker_thread::run() + 30
4   com.apple.audio.caulk         	0x00007fff6695c1e4 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 45
5   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
6   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff6cec9e36 semaphore_wait_trap + 10
1   com.apple.audio.caulk         	0x00007fff6695cb16 caulk::mach::semaphore::wait() + 16
2   com.apple.audio.caulk         	0x00007fff6695c9b2 caulk::semaphore::timed_wait(double) + 106
3   com.apple.audio.caulk         	0x00007fff6695c7c4 caulk::concurrent::details::worker_thread::run() + 30
4   com.apple.audio.caulk         	0x00007fff6695c1e4 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 45
5   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
6   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 5:
0   libsystem_kernel.dylib        	0x00007fff6cec9e4e semaphore_timedwait_trap + 10
1   libdispatch.dylib             	0x00007fff6cd2fb6b _dispatch_sema4_timedwait + 76
2   libdispatch.dylib             	0x00007fff6cd2ff97 _dispatch_semaphore_wait_slow + 58
3   libdispatch.dylib             	0x00007fff6cd3d795 _dispatch_worker_thread + 284
4   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
5   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 6:: ahpl_main
0   libsystem_kernel.dylib        	0x00007fff6cec9dfa mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff6ceca170 mach_msg + 60
2   com.apple.audio.CoreAudio     	0x00007fff325b7b74 HALC_Object_GetPropertyData_DI32 + 135
3   com.apple.audio.CoreAudio     	0x00007fff32423cf2 HALC_ProxyObject::GetPropertyData(AudioObjectPropertyAddress const&, unsigned int, void const*, unsigned int, unsigned int&, void*) const + 314
4   com.apple.audio.CoreAudio     	0x00007fff32247695 HALDefaultDeviceProperty::GetData(AudioObjectPropertyAddress const&, unsigned int, void const*, unsigned int&, void*) const + 413
5   com.apple.audio.CoreAudio     	0x00007fff321b3d48 AudioObjectGetPropertyData + 277
6   io.agora.AgoraRtcKit          	0x0000000109dbfeb5 0x109a1a000 + 3825333
7   io.agora.AgoraRtcKit          	0x0000000109db77f0 0x109a1a000 + 3790832
8   io.agora.AgoraRtcKit          	0x0000000109d4224c 0x109a1a000 + 3310156
9   io.agora.AgoraRtcKit          	0x0000000109d56ab8 0x109a1a000 + 3394232
10  io.agora.AgoraRtcKit          	0x0000000109d482ab 0x109a1a000 + 3334827
11  io.agora.AgoraRtcKit          	0x0000000109ad85b1 0x109a1a000 + 779697
12  io.agora.AgoraRtcKit          	0x0000000109ad8529 0x109a1a000 + 779561
13  io.agora.AgoraRtcKit          	0x0000000109ad5a31 0x109a1a000 + 768561
14  io.agora.AgoraRtcKit          	0x0000000109ad5893 0x109a1a000 + 768147
15  io.agora.AgoraRtcKit          	0x0000000109a80893 0x109a1a000 + 419987
16  io.agora.AgoraRtcKit          	0x0000000109a76997 0x109a1a000 + 379287
17  io.agora.AgoraRtcKit          	0x0000000109a40c1a 0x109a1a000 + 158746
18  io.agora.AgoraRtcKit          	0x0000000109a79528 0x109a1a000 + 390440
19  io.agora.AgoraRtcKit          	0x000000010a2a6c1b 0x109a1a000 + 8965147
20  io.agora.AgoraRtcKit          	0x000000010a2a6ecb 0x109a1a000 + 8965835
21  io.agora.AgoraRtcKit          	0x000000010a29fe96 0x109a1a000 + 8937110
22  io.agora.AgoraRtcKit          	0x000000010a2a1812 0x109a1a000 + 8943634
23  io.agora.AgoraRtcKit          	0x000000010a2a0f4a 0x109a1a000 + 8941386
24  io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
25  io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
26  libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
27  libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 7:: Trace
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 8:: AgoraEvent
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 9:: LTWP.0
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 10:: LTWP.1
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 11:: LTWP.2
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 12:: LTWP.3
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 13:: LTWP.4
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 14:: LTWP.5
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 15:: LTWP.6
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 16:: LTWP.7
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 17:: LTWP.8
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 18:: LTWP.9
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 19:: LTWP.10
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 20:: LTWP.11
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 21:: LTWP.12
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 22:: LTWP.13
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 23:: LTWP.14
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 24:: LTWP.15
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 25:: AudioDeviceAsync
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 26:: AudioFileDecoder
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 27:: ModuleQ
0   libsystem_kernel.dylib        	0x00007fff6ced2b96 kevent64 + 10
1   io.agora.AgoraRtcKit          	0x000000010a29ce49 0x109a1a000 + 8924745
2   io.agora.AgoraRtcKit          	0x000000010a29f8e7 0x109a1a000 + 8935655
3   io.agora.AgoraRtcKit          	0x000000010a2a0f33 0x109a1a000 + 8941363
4   io.agora.AgoraRtcKit          	0x000000010a2a01a7 0x109a1a000 + 8937895
5   io.agora.AgoraRtcKit          	0x000000010a2a729c 0x109a1a000 + 8966812
6   libsystem_pthread.dylib       	0x00007fff6cf8d109 _pthread_start + 148
7   libsystem_pthread.dylib       	0x00007fff6cf88b8b thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000110ef3dc0  rcx: 0x00007ffeebf538b8  rdx: 0x0000000000000000
  rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007ffeebf538e0  rsp: 0x00007ffeebf538b8
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000110ef3dc0  r11: 0x0000000000000246
  r12: 0x0000000000000307  r13: 0x0000000000000000  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007fff6ced033a  rfl: 0x0000000000000246  cr2: 0x000000010a758000
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133

@YiqingJackieHuang
Copy link
Contributor

Hi, @shayanb. I find out that Python 3.9 causes the problem while it runs properly on Python 3.8. Would you mind using py38 instead? I am going to dig deeper into the problem. As soon as I find it out, I will notify you.

@shayanb
Copy link

shayanb commented Mar 29, 2021

Thanks @YiqingJackieHuang , it seems to be working on Python 3.8.6 now.

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