Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

In some cases APP does not respond 。When I call startMicAndRecognition(); #77

Open
shaohui93 opened this issue Apr 3, 2018 · 0 comments

Comments

@shaohui93
Copy link

04-03 15:49:47.402 4345-4345/com.iol8.te D/ViewRootImpl: hardware acceleration is enabled, this = ViewRoot{36974be com.iol8.te/com.iol8.te.business.im.microsoftview.MicrosoftIMActivity,ident = 5}
04-03 15:49:47.409 4345-4345/com.iol8.te D/Dialog: show
04-03 15:49:47.413 4345-4345/com.iol8.te I/NLPLAT: originating error 0x80070057
04-03 15:49:47.428 4345-4345/com.iol8.te I/NLPLAT: Application Name: com.iol8.te/6.1.2
04-03 15:49:47.465 4345-4345/com.iol8.te I/NLPLAT: STS: https://api.cognitive.microsoft.com/sts/v1.0/issueToken
04-03 15:49:47.465 4345-4345/com.iol8.te I/NLPLAT: Refreshing token S
04-03 15:49:47.466 4345-4602/com.iol8.te D/libc-netbsd: [getaddrinfo]: hostname=api.cognitive.microsoft.com; servname=(null); cache_mode=(null), netid=0; mark=0
04-03 15:49:47.466 4345-4602/com.iol8.te D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=0; ai_family=2
04-03 15:49:47.468 4345-4602/com.iol8.te D/libc-netbsd: getaddrinfo: api.cognitive.microsoft.com get result from proxy >>
04-03 15:49:47.469 4345-4345/com.iol8.te I/NLPLAT: Initializing Audio Services
04-03 15:49:47.471 4345-4345/com.iol8.te W/libOpenSLES: class OutputMix interface 0 requested but unavailable MPH=43
04-03 15:49:47.472 4345-4345/com.iol8.te V/AudioTrack: set(): streamType 3, sampleRate 16000, format 0x1, channelMask 0x3, frameCount 0, flags #4, notificationFrames 0, sessionId 115, transferType 0
04-03 15:49:47.472 4345-4345/com.iol8.te V/AudioTrack: set() streamType 3 frameCount 0 flags 0004
04-03 15:49:47.472 4345-4345/com.iol8.te D/AudioTrack: audiotrack 0x99c07580 set Type 3, rate 16000, fmt 1, chn 3, fcnt 0, flags 0004
04-03 15:49:47.472 4345-4345/com.iol8.te D/AudioTrack: mChannelMask 0x3
04-03 15:49:47.472 4345-4345/com.iol8.te W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client
04-03 15:49:47.472 4345-4345/com.iol8.te V/AudioTrack: createTrack_l() output 2 afLatency 69
04-03 15:49:47.472 4345-4345/com.iol8.te V/AudioTrack: afFrameCount=1024, minBufCount=3, afSampleRate=44100, afLatency=69
04-03 15:49:47.472 4345-4345/com.iol8.te V/AudioTrack: minFrameCount: 1114, afFrameCount=1024, minBufCount=3, sampleRate=16000, afSampleRate=44100, afLatency=69
04-03 15:49:47.474 4345-4345/com.iol8.te D/AudioTrackCenter: addTrack, trackId:0x99404040, frameCount:1114, sampleRate:16000, trackPtr:0x99c07580
04-03 15:49:47.474 4345-4345/com.iol8.te D/AudioTrackCenter: mAfSampleRate 44100, sampleRate 16000, AfFrameCount 1024 , mAfSampleRate 44100, frameCount 1114
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: Initializing Speech Services
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: No application id provided to controller
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: GetIdentityPropertyValue 3
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: Useragent Value Android Assistant (Android; 5.1;Mobile;ProcessName/AppName=com.iol8.te/6.1.2;DeviceType=Near;SpeechClient=1.0.161216)
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: Url: 'https://websockets.platform.bing.com/ws/speech/recognize/continuous'
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: Locale: 'en-US'
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: Application Id: ''
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: Version: 4.0.150429
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: UserAuthorizationToken:
04-03 15:49:47.474 4345-4345/com.iol8.te I/NLPLAT: ServerLoggingLevel: 1
04-03 15:49:47.475 4345-4345/com.iol8.te I/NLPLAT: Initiating websocket connection. m_connection=0x0 host=websockets.platform.bing.com port=443
04-03 15:49:47.475 4345-4606/com.iol8.te D/libc-netbsd: [getaddrinfo]: hostname=websockets.platform.bing.com; servname=(null); cache_mode=(null), netid=0; mark=0
04-03 15:49:47.475 4345-4606/com.iol8.te D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=0; ai_family=2
04-03 15:49:47.477 4345-4606/com.iol8.te D/libc-netbsd: getaddrinfo: websockets.platform.bing.com get result from proxy >>
04-03 15:49:58.502 4345-4444/com.iol8.te I/ViewRootImpl: ANR Key Analyze: No Key event currently.
04-03 15:49:58.502 4345-4444/com.iol8.te I/ViewRootImpl: ANR Key Analyze: Previeous Event null,finish at 1970-01-01 08:00:00.000
04-03 15:49:58.503 4345-4444/com.iol8.te I/ViewRootImpl: Dispatch MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=90.104126, y[0]=101.05664, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=131595749, downTime=131595749, deviceId=6, source=0x1002 } status is 10: View Post IME stage,start at 2018-04-03 15:49:47.393, spent 11109ms.
04-03 15:49:58.503 4345-4444/com.iol8.te V/ViewRootImpl: Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@1e6cc91f at 2018-04-03 15:49:47.394
04-03 15:49:58.503 4345-4444/com.iol8.te V/ViewRootImpl: Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@693446c at 2018-04-03 15:49:47.394
04-03 15:49:58.503 4345-4444/com.iol8.te V/ViewRootImpl: Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@3153a35 at 2018-04-03 15:49:47.394
04-03 15:49:58.574 4345-4365/com.iol8.te D/ANRAppManager: !!! It is not under singleton mode, U can't use it. !!!
04-03 15:49:58.575 4345-4365/com.iol8.te W/Binder: Caught a RuntimeException from the binder stub implementation.
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.mediatek.anrappmanager.IFrameworks.serviceManagerGetService(java.lang.String)' on a null object reference
at com.mediatek.anrappmanager.ANRManagerNative$1.b(SourceFile:77)
at com.mediatek.anrappmanager.ANRManagerNative$1.c(SourceFile:75)
at com.mediatek.anrappmanager.ANRManagerNative$a.get(SourceFile:97)
at com.mediatek.anrappmanager.ANRManagerNative.getDefault(SourceFile:35)
at com.mediatek.anrappmanager.ANRAppManager.dumpMessageHistory(SourceFile:59)
at android.app.ActivityThread$ApplicationThread.dumpMessageHistory(ActivityThread.java:1331)
at android.app.ApplicationThreadNative.onTransact(ApplicationThreadNative.java:687)
at android.os.Binder.execTransact(Binder.java:454)
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.mediatek.anrappmanager.IFrameworks.serviceManagerGetService(java.lang.String)' on a null object reference
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: at com.mediatek.anrappmanager.ANRManagerNative$1.b(SourceFile:77)
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: at com.mediatek.anrappmanager.ANRManagerNative$1.c(SourceFile:75)
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: at com.mediatek.anrappmanager.ANRManagerNative$a.get(SourceFile:97)
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: at com.mediatek.anrappmanager.ANRManagerNative.getDefault(SourceFile:35)
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: at com.mediatek.anrappmanager.ANRAppManager.dumpMessageHistory(SourceFile:59)
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: at android.app.ActivityThread$ApplicationThread.dumpMessageHistory(ActivityThread.java:1331)
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: at android.app.ApplicationThreadNative.onTransact(ApplicationThreadNative.java:687)
04-03 15:49:58.575 4345-4365/com.iol8.te W/System.err: at android.os.Binder.execTransact(Binder.java:454)
04-03 15:49:58.637 4345-4358/com.iol8.te I/art: Thread[9,tid=4358,WaitingInMainSignalCatcherLoop,Thread*=0xb42c9000,peer=0x12c00100,"Signal Catcher"]: reacting to signal 3
04-03 15:49:58.813 4345-4358/com.iol8.te I/art: Wrote stack traces to '/data/anr/traces.txt'
04-03 15:50:02.475 4345-4345/com.iol8.te I/NLPLAT: originating error 0x80070057
04-03 15:50:02.475 4345-4345/com.iol8.te I/NLPLAT: Authorization token hr 80070057 'S'
04-03 15:50:07.481 4345-4602/com.iol8.te I/NLPLAT: originating error 0x8000ffff
04-03 15:50:07.481 4345-4602/com.iol8.te I/NLPLAT: originating error 0x8e200003
04-03 15:50:07.482 4345-4345/com.iol8.te I/NLPLAT: Refreshing token S
04-03 15:50:07.482 4345-4345/com.iol8.te I/NLPLAT: Successfully initialized client connection
04-03 15:50:07.482 4345-4345/com.iol8.te I/NLPLAT: Create ImpressionId: fad44aee6e2c92156453dfabcb243fb1
04-03 15:50:07.482 4345-4345/com.iol8.te I/NLPLAT: GetIdentityPropertyValue 3
04-03 15:50:07.483 4345-4345/com.iol8.te I/NLPLAT: originating error 0x80070057
04-03 15:50:07.483 4345-4345/com.iol8.te I/NLPLAT: originating error 0x80070057
04-03 15:50:07.483 4345-4345/com.iol8.te W/art: Attempt to remove local handle scope entry from IRT, ignoring
04-03 15:50:07.483 4345-4345/com.iol8.te I/NLPLAT: Create ImpressionId: eda499cade91baae6615c0a73367ddb7
04-03 15:50:07.491 4345-4345/com.iol8.te W/art: Attempt to remove local handle scope entry from IRT, ignoring
04-03 15:50:07.492 4345-4623/com.iol8.te D/libc-netbsd: [getaddrinfo]: hostname=api.cognitive.microsoft.com; servname=(null); cache_mode=(null), netid=0; mark=0
04-03 15:50:07.492 4345-4623/com.iol8.te D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=0; ai_family=2
04-03 15:50:07.493 4345-4345/com.iol8.te I/NLPLAT: ImpressionId: S
04-03 15:50:07.495 4345-4345/com.iol8.te W/art: Attempt to remove local handle scope entry from IRT, ignoring
04-03 15:50:07.496 4345-4345/com.iol8.te I/NLPLAT: Adding requestId: 'S' for 'b'
04-03 15:50:07.497 4345-4345/com.iol8.te I/NLPLAT: Subscribing request [S]
04-03 15:50:07.497 4345-4345/com.iol8.te I/NLPLAT: Waiting for connection/send completion.
04-03 15:50:07.497 4345-4345/com.iol8.te I/NLPLAT: Audio stream created
04-03 15:50:07.498 4345-4345/com.iol8.te I/NLPLAT: Adding requestId: 'S' for 'f'
04-03 15:50:07.500 4345-4345/com.iol8.te I/NLPLAT: Subscribing request [S]
04-03 15:50:07.500 4345-4345/com.iol8.te I/NLPLAT: Audio Stream Created
04-03 15:50:07.500 4345-4345/com.iol8.te I/NLPLAT: Creating transcoder 2
04-03 15:50:07.502 4345-4345/com.iol8.te I/NLPLAT: Waiting for connection/send completion.
04-03 15:50:07.503 4345-4345/com.iol8.te I/NLPLAT: Sent first chunk of audio stream, requestId='f4041dda-9bb9-bc7b-285f-49f3a68184f6'
04-03 15:50:07.504 4345-4345/com.iol8.te D/AudioRecord: openRecord_l
04-03 15:50:07.505 4345-4345/com.iol8.te W/AudioRecord: AUDIO_INPUT_FLAG_FAST denied by client
04-03 15:50:07.512 4345-4623/com.iol8.te D/libc-netbsd: getaddrinfo: api.cognitive.microsoft.com get result from proxy >>
04-03 15:50:07.523 4345-4345/com.iol8.te D/AudioRecord: return status 0
04-03 15:50:07.524 4345-4345/com.iol8.te D/iol8.test: Please start speaking.
04-03 15:50:07.524 4345-4345/com.iol8.te D/iol8.test: ********* Microphone status: true *********
04-03 15:50:07.524 4345-4345/com.iol8.te D/XXXXXXXXXX: 按钮按下。。。。。
04-03 15:50:07.524 4345-4345/com.iol8.te V/ViewRootImpl: [ANR Warning]Input routeing takes more than 6000ms since 2018-04-03 15:49:47.393, this = ViewRoot{98e6ab com.iol8.te/com.iol8.te.business.im.microsoftview.MicrosoftIMActivity,ident = 3}
04-03 15:50:07.525 4345-4345/com.iol8.te V/ViewRootImpl: Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@1c42c2a0 at 2018-04-03 15:50:07.524
04-03 15:50:07.529 4345-4345/com.iol8.te I/Choreographer: Skipped 1193 frames! The application may be doing too much work on its main thread.
04-03 15:50:07.611 4345-4466/com.iol8.te D/Surface: Surface::connect(this=0x9e3d8a00,api=1)
04-03 15:50:07.615 4345-4466/com.iol8.te D/IMGSRV: gralloc_register_buffer:1386: hnd=0x99c84d60 ID=98722 fd=138 ref=1
04-03 15:50:07.615 4345-4466/com.iol8.te D/GraphicBuffer: register, handle(0x99c84d60) (w:330 h:330 s:352 f:0x1 u:0x000b00)
04-03 15:50:07.615 4345-4466/com.iol8.te D/Surface: Surface::allocateBuffers(this=0x9e3d8a00)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant