Skip to content

[Android] crash on dispose,aaudio :Pure virtual function called #376

Description

@xfans

在调用dispose 的时候,有概率会出现崩溃的问题,看日志是aaudio提示:Pure virtual function called。
还有就是播放的时候会提示:
07-02 20:02:23.537 12509 12509 D AAudio : AAudioStream_requestStart(s#1) returned -895 ---------
07-02 20:02:23.537 12509 12509 D AAudio : AAudioStream_requestFlush(s#1) called
07-02 20:02:23.537 12509 12509 E AAudio : can only flush stream when PAUSED, OPEN or STOPPED, state = AAUDIO_STREAM_STATE_STARTED

日志
07-02 20:02:23.479 12675 14693 D NativeMonitorConfig: start to update config:nativeMonitorOpened:0|switchFlag:0|soWhiteList:null|androidVersionBlackList:null|timeLimited:1000000|countLimited:1000|memoryLimited:5242880|processBlackList:null|tmChance:0|openBacktrace64:0|soLoadReportRate:10|soLoadDDReportRate:1|soLoadIllegalReportRate:1|isBanIllegalSoLoad:0|soMonitorBlacklist:[]|needCleanSoRegexList:[]|allSoLoadReportRate:0
07-02 20:02:23.480 12675 14693 D NativeTrafficMonitorHelper: init from OpenNativeTrafficMonitor
07-02 20:02:23.481 973 2045 D AF::Track: interceptBuffer: took 6857us to intercept 1 tracks
07-02 20:02:23.484 12675 14693 D NativeTrafficMonitorHelper: stepUpNativeTrafficMonitor
07-02 20:02:23.494 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.499 973 2045 I chatty : uid=1041(audioserver) AudioOut_D identical 1 line
07-02 20:02:23.502 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.505 973 2045 D AF::Track: interceptBuffer: took 10268us to intercept 1 tracks
07-02 20:02:23.506 12509 12509 I FvpPlugin: onMethodCall: ReleaseRT texId: 0, surfaces: 0 textures: 0
07-02 20:02:23.515 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.517 973 2045 I chatty : uid=1041(audioserver) AudioOut_D identical 1 line
07-02 20:02:23.519 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.521 12675 14693 I MSF.D.NetworkProvider: refresh activeNetInfo currentAPN:. received networkInfo: CONNECTED :NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: true. ExtraNetInfo:
07-02 20:02:23.521 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.523 12675 14815 V MSF.C.MSFCore[@ps]: [Event] MSFPacketStatistics.cpp(300)::DoCheckRequestTimeout->current rtts:0.000
07-02 20:02:23.524 973 2045 D AF::Track: interceptBuffer: took 8837us to intercept 1 tracks
07-02 20:02:23.524 12509 12509 D AAudio : AAudioStream_requestFlush(s#1) called
07-02 20:02:23.524 12509 12509 E AAudio : can only flush stream when PAUSED, OPEN or STOPPED, state = AAUDIO_STREAM_STATE_STARTED
07-02 20:02:23.526 12675 14693 D MSF.D.NetworkProvider: netchange NONE to WiFi, change:2, netSupport:true, vpnEnable:false
07-02 20:02:23.527 12675 14693 D MSF.D.NetworkProvider: setActiveNetInfoType: 2
07-02 20:02:23.527 12675 14693 D MSF.D.AppNetInfoNewImpl: registerNetInfoHandler 40cc2a9
07-02 20:02:23.528 12675 14693 D NativeTrafficMonitorHelper: startToInitNativeTrafficMonitorWithConfig isPublicVersion[true]
07-02 20:02:23.531 12675 14865 D MSF.D.NetworkProvider: setActiveNetIpFamily: 1
07-02 20:02:23.532 12675 14865 D MSF.D.NetworkProvider: notifyNetChanged newChanged:2, preActiveNetInfoType:0, curActiveNetInfoType:2
07-02 20:02:23.533 12675 14693 D NativeTrafficMonitorCon: {"isInitNativeTrafficMonitor":true,"isEnableMonitor":true,"isEnableGlobalMonitor":true,"mobileLogThreshold":10000000,"nextMobileLogTimes":2,"wifiLogThreshold":10000000,"nextWifiLogTimes":2,"mobileReportThreshold":200000000,"wifiReportThreshold":200000000,"globalThreadInfoThreshold":50000000,"globalMonitorTime":600,"globalMobileLogThreshold":50000000,"nextGlobalMobileLogTimes":2,"globalWifiLogThreshold":50000000,"nextGlobalWifiLogTimes":2,"globalMobileReportThreshold":500000000,"globalWifiReportThreshold":500000000,"blackList":["halley.downloader","com.tencent.oskplayer","com.tencent.gamecenter.wadl.sdk"]}
07-02 20:02:23.535 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.536 12509 12509 D AAudio : AAudioStream_requestStart(s#1) called --------------
07-02 20:02:23.536 12509 12509 D AudioTrack: start(178): prior state:STATE_ACTIVE output 13 stream 3 session 401
07-02 20:02:23.536 12509 12509 D voice_scence_discern: add name:sample_rate, value:44100
07-02 20:02:23.536 12509 12509 V voice_scence_discern: add name:sample_rate value:44100 list:0x6efaac4cc0
07-02 20:02:23.536 12509 12509 D voice_scence_discern: add name:channels, value:2
07-02 20:02:23.536 12509 12509 V voice_scence_discern: add name:channels value:2 list:0x6efaac4cc0
07-02 20:02:23.536 12509 12509 D voice_scence_discern: get scence process pid:12509, name:com.xyz.in
07-02 20:02:23.536 12509 12509 V voice_scence_discern: this process not in init apk. apk_list:0x6cf6f78700
07-02 20:02:23.536 12509 12509 D AAudio : AAudioStream_requestStart(s#1) returned -895 ---------
07-02 20:02:23.537 12509 12509 D AAudio : AAudioStream_requestFlush(s#1) called
07-02 20:02:23.537 12509 12509 E AAudio : can only flush stream when PAUSED, OPEN or STOPPED, state = AAUDIO_STREAM_STATE_STARTED
07-02 20:02:23.537 12509 12509 D AAudio : AAudioStream_requestStart(s#1) called --------------
07-02 20:02:23.537 12509 12509 D AudioTrack: start(178): prior state:STATE_ACTIVE output 13 stream 3 session 401
07-02 20:02:23.537 12509 12509 D voice_scence_discern: add name:sample_rate, value:44100
07-02 20:02:23.537 12509 12509 V voice_scence_discern: add name:sample_rate value:44100 list:0x6efaac4920
07-02 20:02:23.537 12509 12509 D voice_scence_discern: add name:channels, value:2
07-02 20:02:23.537 12509 12509 V voice_scence_discern: add name:channels value:2 list:0x6efaac4920
07-02 20:02:23.537 12509 12509 D voice_scence_discern: get scence process pid:12509, name:com.xyz.in
07-02 20:02:23.537 12509 12509 V voice_scence_discern: this process not in init apk. apk_list:0x6cf6f78700
07-02 20:02:23.537 12509 12509 D AAudio : AAudioStream_requestStart(s#1) returned -895 ---------
07-02 20:02:23.537 12509 12509 D AAudio : AAudioStream_requestFlush(s#1) called
07-02 20:02:23.537 12509 12509 E AAudio : can only flush stream when PAUSED, OPEN or STOPPED, state = AAUDIO_STREAM_STATE_STARTED
07-02 20:02:23.537 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.540 973 2045 I chatty : uid=1041(audioserver) AudioOut_D identical 1 line
07-02 20:02:23.542 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.542 12509 12509 D AAudio : AAudioStream_close(s#1) called ---------------
07-02 20:02:23.543 12509 12509 D AudioTrack: ~AudioTrack, releasing mStatus =0 session id 401 from 12509 on behalf of 12509
07-02 20:02:23.543 12675 14693 D NativeTrafficMonitorCon: onParsed
07-02 20:02:23.544 12675 14693 D NativeTrafficMonitorHelper: realInitNativeTrafficMonitorWithConfig start, NativeTrafficMonitorConfig{isInitNativeTrafficMonitor=true, isEnableMonitor=true, isEnableGlobalMonitor=true, mobileReportThreshold=200000000, nextMobileLogTimes=2, wifiReportThreshold=200000000, nextWifiLogTimes=2, mobileLogThreshold=10000000, wifiLogThreshold=10000000, globalThreadInfoThreshold=50000000, globalMonitorTime=600, globalMobileReportThreshold=500000000, nextGlobalMobileLogTimes=2, globalWifiReportThreshold=500000000, nextGlobalWifiLogTimes=2, globalMobileLogThreshold=50000000, globalWifiLogThreshold=50000000, blackList=[halley.downloader, com.tencent.oskplayer, com.tencent.gamecenter.wadl.sdk]}
07-02 20:02:23.544 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.546 973 2045 D AF::Track: interceptBuffer: took 11467us to intercept 1 tracks
07-02 20:02:23.547 12509 12509 D AudioTrack: stop(178): called with 1122099 frames delivered
07-02 20:02:23.551 12509 14447 E libc++abi: Pure virtual function called!
07-02 20:02:23.553 12675 14693 D NativeTrafficMonitorHelper: [realInitNativeTrafficMonitorWithConfig] registerResult: true
07-02 20:02:23.555 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.559 973 2045 I chatty : uid=1041(audioserver) AudioOut_D identical 1 line
07-02 20:02:23.562 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.563 870 870 D ThermalHAL-TARGET: Entering get_temperatures
07-02 20:02:23.564 973 2045 W AF::Track: writeFrames PathRecord getNextBuffer failed with error -11: Try again
07-02 20:02:23.564 870 870 D ThermalHAL-TARGET: Entering get_temperatures
07-02 20:02:23.564 870 870 D ThermalHAL-UTIL: Entering get_temperature_for_all
07-02 20:02:23.564 870 870 D ThermalHAL-UTIL: Entering read_temperature
07-02 20:02:23.565 870 870 D ThermalHAL-UTIL: Entering read_temperature
07-02 20:02:23.567 973 2045 D AF::Track: interceptBuffer: took 12535us to intercept 1 tracks
07-02 20:02:23.571 870 870 D ThermalHAL-UTIL: Entering read_temperature
07-02 20:02:23.581 870 870 I chatty : uid=1000(system) thermal@1.0-ser identical 7 lines
07-02 20:02:23.581 870 870 D ThermalHAL-UTIL: Entering read_temperature
07-02 20:02:23.598 870 870 D ThermalHAL-TARGET: Entering get_temperatures
07-02 20:02:23.598 870 870 D ThermalHAL-TARGET: Entering get_temperatures
07-02 20:02:23.598 870 870 D ThermalHAL-UTIL: Entering get_temperature_for_all
07-02 20:02:23.598 870 870 D ThermalHAL-UTIL: Entering read_temperature
07-02 20:02:23.599 870 870 I chatty : uid=1000(system) thermal@1.0-ser identical 9 lines
07-02 20:02:23.599 870 870 D ThermalHAL-UTIL: Entering read_temperature
07-02 20:02:23.615 870 870 D ThermalHAL-TARGET: Entering get_temperatures
07-02 20:02:23.615 870 870 D ThermalHAL-TARGET: Entering get_temperatures
07-02 20:02:23.615 870 870 D ThermalHAL-UTIL: Entering get_temperature_for_all
07-02 20:02:23.615 870 870 D ThermalHAL-UTIL: Entering read_temperature
07-02 20:02:23.623 870 870 I chatty : uid=1000(system) thermal@1.0-ser identical 9 lines

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions