app crash on android when call Expo.Audio.Sound loadAsync

hi, my app run fine on android simulator and expo client, but when I build: android and run it on device. the app crashed on the following(loadAsync):
this.soundObject = new Expo.Audio.Sound()
try {
this.soundObject.setOnPlaybackStatusUpdate(this.onPlaybackStatusUpdate)
//console.log(‘loadAsync uri’,uri)
await this.soundObject.loadAsync({uri: uri})
//await this.soundObject.loadAsync(require(‘…/…/assets/tts.mp3’))

      if (this.props.autoPlay) {
        //console.log('playAsync')
        await this.soundObject.playAsync()
      }else {
          this.setState({
              ...this.state,
              playing: STATUS_PAUSED
          })
      }

even loadAsync({uri:uri} or loadAsync(require(‘…/…/assets/tts.mp3’)),the app crashed

the device is version 6.0 and api23
“dependencies”: {
“expo”: “^30.0.1”,
“isomorphic-fetch”: “^2.2.1”,
“react”: “16.3.1”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz”,
“react-native-elements”: “^0.19.1”,

}

could you help ?

Hey @kevinfan,

Can you provide the error that is causing the crash? Also, looking into the device logs with adb always helps debug these types of crashes.

Cheers,

Adam

I can’t catch any exception, the app just crash, when I use logcat :F to track, the log info is:
--------- beginning of crash
11-01 10:59:12.707 3641 3721 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x3859e7bc in tid 3721 (mqt_native_modu)
11-01 10:59:12.708 319 319 D AEE/AED : $===AEE===AEE===AEE===$
11-01 10:59:12.708 319 319 D AEE/AED : p 0 poll events 1 revents 0
11-01 10:59:12.708 319 319 D AEE/AED : not know revents:0
11-01 10:59:12.708 319 319 D AEE/AED : p 1 poll events 1 revents 0
11-01 10:59:12.708 319 319 D AEE/AED : not know revents:0
11-01 10:59:12.708 319 319 D AEE/AED : p 2 poll events 1 revents 1
11-01 10:59:12.708 319 319 D AEE/AED : aed_main_fork_worker: generator 0xb6fc51b8, worker 0xbea10848, recv_fd 0
11-01 10:59:12.709 3771 3771 I AEE/AED : handle_request(0)
11-01 10:59:12.709 3771 3771 I AEE/AED : check process 3641 name:wflischool.dqvb
11-01 10:59:12.709 3771 3771 I AEE/AED : tid 3721 abort msg address is:0x00000000, si_code is:0 (request from 1:3641)
11-01 10:59:12.709 319 319 D AEE/AED : aee handle:-1, cpu cores:4, online:4
11-01 10:59:12.709 319 319 D AEE/AED : p 3 poll events 1 revents 0
11-01 10:59:12.710 319 319 D AEE/AED : not know revents:0
11-01 10:59:12.710 3771 3771 I AEE/AED : BOOM: pid=3641 uid=10121 gid=10121 tid=3721
11-01 10:59:12.710 319 319 D AEE/AED : p 4 poll events 1 revents 0
11-01 10:59:12.710 319 319 D AEE/AED : not know revents:0
11-01 10:59:12.710 319 319 D AEE/AED : p 5 poll events 0 revents 0
11-01 10:59:12.710 319 319 D AEE/AED : not know revents:0
11-01 10:59:12.711 3771 3771 I AEE/AED : [OnPurpose Redunant in void preset_info(aed_report_record
, int, int)] pid: 3641, tid: 3721, name: mqt_native_modu >>> cn.wflischool.dqvb <<<
11-01 10:59:12.724 3641 3769 W AudioCapabilities: Unsupported mime audio/mpeg-L2
11-01 10:59:12.726 3641 3769 W AudioCapabilities: Unsupported mime audio/x-adpcm-ms
11-01 10:59:12.727 3641 3769 W AudioCapabilities: Unsupported mime audio/x-adpcm-dvi-ima
11-01 10:59:12.734 3641 3769 W AudioCapabilities: Unsupported mime audio/ape
11-01 10:59:12.735 3641 3769 W AudioCapabilities: Unsupported mime audio/alac
11-01 10:59:12.738 3641 3769 W AudioCapabilities: Unsupported mime audio/x-adpcm-ms
11-01 10:59:12.739 3641 3769 W AudioCapabilities: Unsupported mime audio/x-adpcm-dvi-ima
11-01 10:59:12.739 1416 2129 D PerfServiceManager: [PerfService] MESSAGE_TIMEOUT:105
11-01 10:59:12.739 1416 2129 I libPerfService: 5: set: 1
11-01 10:59:12.740 1416 2129 I libPerfService: 5: set freq: 0
11-01 10:59:12.740 1416 2129 I libPerfService: 5: set vcore level: 0
11-01 10:59:12.740 1416 2129 D PerfServiceManager: [PerfService] set utilization:0.8
11-01 10:59:12.746 3641 3769 W VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
11-01 10:59:12.757 322 3748 D LensDrv : main lens uninit() [fdMCU_main] -1 -
11-01 10:59:12.757 322 3748 I IspDrv : [uninit] +,mInitCount(10)
11-01 10:59:12.757 322 3748 I IspDrv : [ProfilingPrint] [Event_IspDrv_Uninit] atomic_dec:(0-th) ===> [start–>now: 0.047000 ms]
11-01 10:59:12.757 322 3748 I IspDrv : [uninit] -,ret(1),mInitCount(9)
11-01 10:59:12.757 322 3748 I IspDrv : [ProfilingPrint] [Event_IspDrv_Uninit] Exit:(1-th) ===> [start–>now: 0.131000 ms] [last–>now: 0.084000 ms]
11-01 10:59:12.757 322 3748 D af_mgr : [uninit] - m_Users: 0
11-01 10:59:12.758 322 3748 D flash_mgr_m.cpp: flash_mgr_m.cpp uninitt 1
11-01 10:59:12.758 322 3748 D flicker_hal.cpp: func=enable ln=983
11-01 10:59:12.758 322 3748 D flicker_hal.cpp: enableFlickerDetection() bEnableFlicker= 0
11-01 10:59:12.758 322 3748 D flicker_hal.cpp: FFLK func=setFlickerDrv line=489 flicker_en=0
11-01 10:59:12.758 3641 3769 W VideoCapabilities: Unsupported mime video/x-ms-wmv
11-01 10:59:12.758 322 3748 D flicker_hal.cpp: FFLK func=setFlickerDrv line=541
11-01 10:59:12.758 322 3748 D flicker_hal.cpp: uninit line=465 mUsers=1
11-01 10:59:12.758 322 3748 D flicker_hal.cpp: enableFlickerDetection() bEnableFlicker= 0
11-01 10:59:12.758 322 3748 D flicker_hal.cpp: flicker enable state is ame, not set to hardware
11-01 10:59:12.759 322 3748 D aaa_state: [StateCommon::transitState] StateCameraPreview → StateInit
11-01 10:59:12.759 322 3748 D aaa_hal/3Athread: rCmd(1)-
11-01 10:59:12.761 3641 3769 W VideoCapabilities: Unsupported mime video/divx
11-01 10:59:12.763 3771 3771 I AEE/AED : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-01 10:59:12.763 3771 3771 I AEE/AED : Build fingerprint: ‘Newman/teksun/teksun:6.0/MRA58K/1512726016:user/test-keys’
11-01 10:59:12.763 3771 3771 I AEE/AED : Revision: ‘0’
11-01 10:59:12.763 3771 3771 I AEE/AED : ABI: ‘arm’
11-01 10:59:12.764 3771 3771 I AEE/AED : pid: 3641, tid: 3721, name: mqt_native_modu >>> cn.wflischool.dqvb <<<
11-01 10:59:12.764 3771 3771 I AEE/AED : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3859e7bc
11-01 10:59:12.766 322 3759 I iio/ifunc: [_disable] wait 1 VD till DMA stop tgStatus(0x1)
11-01 10:59:12.766 322 3759 I iio/ifunc: [_disable] - P1 stop VF(0x1000),TG_IN(0x9c9c0102),STX(0x0)
11-01 10:59:12.766 322 3759 I iio/ifunc: [_disable] rtBufCtrl.ctrl(5)/id(4)/ptr(0xb0612580)
11-01 10:59:12.766 322 3759 I iio/ifunc: [_disable] rtBufCtrl.ctrl(5)/id(5)/ptr(0xb0612580)
11-01 10:59:12.768 322 3759 I iio/ifunc: [_disable] P1 start(0x0)

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.