Fatal error in ../../webrtc/base/event_tracer.cc, line 261. Check failed: old_logger

1,288 views
Skip to first unread message

Neernay Khairkar

unread,
Mar 22, 2016, 7:02:52 AM3/22/16
to discuss-webrtc
Hi,
 The below crash is observed when I try to stop the internal tracing capture and shut down the internal tracer in the PeerConnection constructor.
This to making sure that everything is cleaned up and ready to make new call. Attached is the tombstone generated.
Please let me know if there is a workaround for this!


03-22 16:25:30.281  3379  3379 I org.webrtc.Logging: EglBase14: SDK version: 22. isEGL14Supported: true
03-22 16:25:30.281  3379  3379 W ResourceType: No known package when getting name for resource number 0xffffffff
03-22 16:25:30.281  3379  3379 I org.webrtc.Logging: SurfaceViewRenderer: Initializing.
03-22 16:25:30.281  3379  3379 I org.webrtc.Logging: EglBase14: SDK version: 22. isEGL14Supported: true
03-22 16:25:30.291  3379  3379 W ResourceType: No known package when getting name for resource number 0xffffffff
03-22 16:25:30.291  3379  3379 I org.webrtc.Logging: SurfaceViewRenderer: Initializing.
03-22 16:25:30.291  3379  3379 I org.webrtc.Logging: EglBase14: SDK version: 22. isEGL14Supported: true
03-22 16:25:30.291  3379  3379 E rtc     :
03-22 16:25:30.291  3379  3379 E rtc     :
03-22 16:25:30.291  3379  3379 E rtc     : #
03-22 16:25:30.291  3379  3379 E rtc     : # Fatal error in ../../webrtc/base/event_tracer.cc, line 261
03-22 16:25:30.291  3379  3379 E rtc     : # Check failed: old_logger
03-22 16:25:30.291  3379  3379 E rtc     : #
03-22 16:25:30.291  3379  3379 E rtc     : #
03-22 16:25:30.291  3379  3379 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 3379 (m.sample.mingle)
03-22 16:25:30.351  2282  2282 I DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-22 16:25:30.351  2282  2282 I DEBUG   : Build fingerprint: 'samsung/j7eltexx/j7elte:5.1.1/LMY48B/J700FXXU2APC4:user/release-keys'
03-22 16:25:30.351  2282  2282 I DEBUG   : Revision: '0'
03-22 16:25:30.351  2282  2282 I DEBUG   : ABI: 'arm'
03-22 16:25:30.351  2282  2282 I DEBUG   : pid: 3379, tid: 3379, name: m.sample.mingle  >>> com.sample.mingle <<<
03-22 16:25:30.351  2282  2282 I DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-22 16:25:30.381  2282  2282 I DEBUG   :     r0 00000000  r1 00000d33  r2 00000006  r3 00000000
03-22 16:25:30.381  2282  2282 I DEBUG   :     r4 f75ffe38  r5 00000006  r6 00000058  r7 0000010c
03-22 16:25:30.381  2282  2282 I DEBUG   :     r8 0000000a  r9 f4c27800  sl 0000ea60  fp 00000000
03-22 16:25:30.381  2282  2282 I DEBUG   :     ip 00000d33  sp ff894b40  lr f7458c65  pc f747cb70  cpsr 60070010
03-22 16:25:30.381  2282  2282 I DEBUG   :
03-22 16:25:30.381  2282  2282 I DEBUG   : backtrace:
03-22 16:25:30.381  2282  2282 I DEBUG   :     #00 pc 0003bb70  /system/lib/libc.so (tgkill+12)
03-22 16:25:30.381  2282  2282 I DEBUG   :     #01 pc 00017c61  /system/lib/libc.so (pthread_kill+52)
03-22 16:25:30.381  2282  2282 I DEBUG   :     #02 pc 00018873  /system/lib/libc.so (raise+10)
03-22 16:25:30.381  2282  2282 I DEBUG   :     #03 pc 00015125  /system/lib/libc.so (__libc_android_abort+36)
03-22 16:25:30.381  2282  2282 I DEBUG   :     #04 pc 00012f6c  /system/lib/libc.so (abort+4)
03-22 16:25:30.381  2282  2282 I DEBUG   :     #05 pc 000ca69f  /data/app/com.sample.mingle-2/lib/arm/libjingle_peerconnection_so.so
03-22 16:25:30.381  2282  2282 I DEBUG   :     #06 pc 000cbb15  /data/app/com.sample.mingle-2/lib/arm/libjingle_peerconnection_so.so
03-22 16:25:30.381  2282  2282 I DEBUG   :     #07 pc 0011824d  /data/dalvik-cache/arm/data@app@com.sampl...@base.apk@classes.dex
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: stopOutput() output 4, stream 1, session 526
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: changeRefCount() stream 1, count 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: setOutputDevice() setting same device 0000 or null device for output 4
03-22 16:25:30.901  2893  5711 I am_crash: [2893,0,com.sample.mingle,13155910,Native crash,Aborted,unknown,0]: system_server
03-22 16:25:30.901  2282  2282 I DEBUG   :
03-22 16:25:30.901  2282  2282 I DEBUG   : Tombstone written to: /data/tombstones/tombstone_06

Peter Boström

unread,
Mar 22, 2016, 7:17:23 AM3/22/16
to discuss-webrtc
Sounds like you're calling ShutdownInternalTracer() without a corresponding call to SetupInternalTracer(). These should generally only be called once in your app (once at startup and once and teardown), which is something we might be doing incorrectly in example code (I don't recall). Start/StopInternalCapture should be enough to reset the state for capturing.

If you're not interested in this debug tracing you can omit these calls completely.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/553306d9-a655-43c5-9270-01039344172a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Neernay Khairkar

unread,
Mar 22, 2016, 7:43:28 AM3/22/16
to discuss-webrtc
Thanks!
What about this one:

03-21 17:11:50.021 25816 30399 D LooperExecutor: Looper thread started.
03-21 17:11:50.021 25816 25816 D PCRTCClient: PeerConnection Params: videoCallEnabled:false, tracing:false, videoWidth:0, videoHeight:0, videoFps:0, videoStartBitrate:0, videoCodec:VP8, videoCodecHwAcceleration:true, captureToTexture:false, audioStartBitrate:0, audioCodec:OPUS, noAudioProcessing:false, aecDump:false, useOpenSLES:false
03-21 17:11:50.021 25816 25816 D AndroidRuntime: Shutting down VM
03-21 17:11:50.031 25816 30399 E rtc     :
03-21 17:11:50.031 25816 30399 E rtc     :
03-21 17:11:50.031 25816 30399 E rtc     : #
03-21 17:11:50.031 25816 30399 E rtc     : # Fatal error in ../../webrtc/base/event_tracer.cc, line 234
03-21 17:11:50.031 25816 30399 E rtc     : # Check failed: rtc::AtomicOps::CompareAndSwapPtr( &g_event_logger, static_cast<EventLogger*>(nullptr), new EventLogger()) == nullptr
03-21 17:11:50.031 25816 30399 E rtc     : #
03-21 17:11:50.031 25816 30399 E rtc     : #
03-21 17:11:50.031 25816 30399 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 30399 (Thread-2564)

03-21 17:11:50.081  2883  2912 W Resources: Preloaded color resource #0x10600e0 (android:color/bright_foreground_disabled_material_light) that varies with configuration!!
03-21 17:11:50.081  2883  2912 W Resources: Preloaded color resource #0x10600f2 (android:color/material_deep_teal_500) that varies with configuration!!
03-21 17:11:50.081  2883  2912 D InputDispatcher: Focus entered window: 2883
03-21 17:11:50.091  2282  2282 I DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-21 17:11:50.091  2282  2282 I DEBUG   : Build fingerprint: 'samsung/j7eltexx/j7elte:5.1.1/LMY48B/J700FXXU1AOL2:user/release-keys'
03-21 17:11:50.091  2282  2282 I DEBUG   : Revision: '0'
03-21 17:11:50.091  2282  2282 I DEBUG   : ABI: 'arm'
03-21 17:11:50.091  2282  2282 I DEBUG   : pid: 25816, tid: 30399, name: Thread-2564  >>> com.sample.mingle <<<
03-21 17:11:50.091  2282  2282 I DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-21 17:11:50.101  2883  2912 D PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
03-21 17:11:50.101  2883  2912 D PhoneWindow: *FMB* isFloatingMenuEnabled return false
03-21 17:11:50.101  2273  2273 I SurfaceFlinger: id=476 createSurf (97x97),1 flag=4, ningle: /system/bin/surfaceflinger
03-21 17:11:50.121  2883  3006 I OpenGLRenderer: Initialized EGL, version 1.4
03-21 17:11:50.121  2282  2282 I DEBUG   :     r0 00000000  r1 000076bf  r2 00000006  r3 00000000
03-21 17:11:50.121  2282  2282 I DEBUG   :     r4 dd575db8  r5 00000006  r6 00000058  r7 0000010c
03-21 17:11:50.121  2282  2282 I DEBUG   :     r8 0000000a  r9 de62e400  sl 00000a04  fp 12c02670
03-21 17:11:50.121  2282  2282 I DEBUG   :     ip 000076bf  sp dd5758c8  lr f7614c65  pc f7638544  cpsr 60070010
03-21 17:11:50.121  2282  2282 I DEBUG   :
03-21 17:11:50.121  2282  2282 I DEBUG   : backtrace:
03-21 17:11:50.121  2282  2282 I DEBUG   :     #00 pc 0003b544  /system/lib/libc.so (tgkill+12)
03-21 17:11:50.121  2282  2282 I DEBUG   :     #01 pc 00017c61  /system/lib/libc.so (pthread_kill+52)
03-21 17:11:50.121  2282  2282 I DEBUG   :     #02 pc 00018873  /system/lib/libc.so (raise+10)
03-21 17:11:50.121  2282  2282 I DEBUG   :     #03 pc 00015125  /system/lib/libc.so (__libc_android_abort+36)
03-21 17:11:50.121  2282  2282 I DEBUG   :     #04 pc 00012f6c  /system/lib/libc.so (abort+4)
03-21 17:11:50.121  2282  2282 I DEBUG   :     #05 pc 000ca69f  /data/app/com.sample.mingle-2/lib/arm/libjingle_peerconnection_so.so
03-21 17:11:50.121  2282  2282 I DEBUG   :     #06 pc 000cb607  /data/app/com.sample.mingle-2/lib/arm/libjingle_peerconnection_so.so
03-21 17:11:50.121  2282  2282 I DEBUG   :     #07 pc 001186c5  /data/dalvik-cache/arm/data@app@com.sampl...@base.apk@classes.dex
03-21 17:11:50.121  2883  3006 D mali_winsys: new_window_surface returns 0x3000,  [764x444]-format:1
03-21 17:11:50.121  4995 30405 E SQLiteLog: (284) automatic index on crash_info_summary(package_name_touched)
03-21 17:11:50.471  3034  3034 D STATUSBAR-WifiQuickSettingButton: onWifiSignalChanged enabled=true enabledDesc:"Sprint": com.android.systemui
03-21 17:11:50.551  2883  2912 D DisplayManager: addAllDisplaysLocked()
03-21 17:11:50.551  2883  2912 I am_resume_activity: [0,415206211,365,com.sample.mingle/.activity.SDKFeaturesActivity]
03-21 17:11:50.861  2273 17593 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(0): /system/bin/surfaceflinger
03-21 17:11:50.911  2883 30421 I am_crash: [2883,0,com.sample.mingle,13155910,Native crash,Aborted,unknown,0]
03-21 17:11:50.911  2282  2282 I DEBUG   :
03-21 17:11:50.911  2282  2282 I DEBUG   : Tombstone written to: /data/tombstones/tombstone_01
03-21 17:11:50.911  2282  2282 E         : ro.product_ship = true
03-21 17:11:50.911  2282  2282 E         : ro.debug_level = 0x4f4c
03-21 17:11:50.911  2883 30421 I am_process_crashed_too_much: [0,com.sample.mingle,10347]
03-21 17:11:50.921  4050  4050 E audit   : type=1701 msg=audit(1458560510.911:204): auid=4294967295 uid=10347 gid=10347 ses=4294967295 subj=u:r:untrusted_app:s0 pid=30399 comm="Thread-2564" reason="memory violation" sig=6: /system/bin/auditd
03-21 17:11:50.941  2883 30421 I am_destroy_activity: [0,797576487,365,com.sample.mingle/.activity.AudioVideoCallScreen,finish-imm]
03-21 17:11:50.951  2883 30421 I am_destroy_activity: [0,462767923,365,com.sample.mingle/.activity.CallingActivity,finish-imm]
03-21 17:11:50.951  2883 30421 E JavaBinder: !!! FAILED BINDER TRANSACTION !!!
03-21 17:11:50.951  2883 30421 I am_destroy_activity: [0,415206211,365,com.sample.mingle/.activity.SDKFeaturesActivity,finish-imm]
03-21 17:11:50.951  2883 30421 E JavaBinder: !!! FAILED BINDER TRANSACTION !!!
03-21 17:11:50.951  2883 30421 D InputDispatcher: Focused application released
03-21 17:11:50.951  2883 30421 I am_home_stack_moved: [0,1,0,0,finish-imm hadNoApp]
03-21 17:11:50.951  2883 30421 I wm_task_moved: [350,1,1]
03-21 17:11:50.961  2883 30421 E JavaBinder: !!! FAILED BINDER TRANSACTION !!!
03-21 17:11:50.961  2269  2269 E lowmemorykiller: Error writing /proc/25816/oom_score_adj; errno=22: /system/bin/lmkd
03-21 17:11:50.961  2883 30421 E JavaBinder: !!! FAILED BINDER TRANSACTION !!!

Is it also having the same cause?
03-22 16:25:30.381  2282  2282 I DEBUG   :     #07 pc 0011824d  /data/dalvik-cache/arm/data@a...@com.sample.mingle-2@base.a...@classes.dex

03-22 16:25:30.441  2286  2568 I AudioPolicyManager: stopOutput() output 4, stream 1, session 526
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: changeRefCount() stream 1, count 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: setOutputDevice() setting same device 0000 or null device for output 4
03-22 16:25:30.901  2893  5711 I am_crash: [2893,0,com.sample.mingle,13155910,Native crash,Aborted,unknown,0]: system_server
03-22 16:25:30.901  2282  2282 I DEBUG   :
03-22 16:25:30.901  2282  2282 I DEBUG   : Tombstone written to: /data/tombstones/tombstone_06

Peter Boström

unread,
Mar 22, 2016, 9:46:03 AM3/22/16
to discuss-webrtc
Looks like you're calling SetupInternalTracer() twice.

03-22 16:25:30.381  2282  2282 I DEBUG   :     #07 pc 0011824d  /data/dalvik-cache/arm/data@app@com.sampl...@base.apk@classes.dex

03-22 16:25:30.441  2286  2568 I AudioPolicyManager: stopOutput() output 4, stream 1, session 526
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: changeRefCount() stream 1, count 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: setOutputDevice() setting same device 0000 or null device for output 4
03-22 16:25:30.901  2893  5711 I am_crash: [2893,0,com.sample.mingle,13155910,Native crash,Aborted,unknown,0]: system_server
03-22 16:25:30.901  2282  2282 I DEBUG   :
03-22 16:25:30.901  2282  2282 I DEBUG   : Tombstone written to: /data/tombstones/tombstone_06

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Neernay Khairkar

unread,
Mar 22, 2016, 9:57:33 AM3/22/16
to discuss-webrtc
During call upgrade to video call, if I get PeerConnection error (events.onPeerConnectionError(errorMessage)), we don't end the call till User ends the call. After user ends the call, I start the clean up as follows:

peerConnection.dispose();
videoSource.dispose();
factory.dispose();

and then do:

PeerConnectionFactory.stopInternalTracingCapture();
PeerConnectionFactory.shutdownInternalTracer();

Now in this scenario, the factory.dispose() is not invoked.
Now when I try to place a new call, the crash occurs!
03-21 17:11:50.121  2282  2282 I DEBUG   :     #07 pc 001186c5  /data/dalvik-cache/arm/data@a...@com.sample.mingle-2@base.a...@classes.dex
03-22 16:25:30.381  2282  2282 I DEBUG   :     #07 pc 0011824d  /data/dalvik-cache/arm/data@a...@com.sample.mingle-2@base.a...@classes.dex

03-22 16:25:30.441  2286  2568 I AudioPolicyManager: stopOutput() output 4, stream 1, session 526
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: changeRefCount() stream 1, count 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: setOutputDevice() setting same device 0000 or null device for output 4
03-22 16:25:30.901  2893  5711 I am_crash: [2893,0,com.sample.mingle,13155910,Native crash,Aborted,unknown,0]: system_server
03-22 16:25:30.901  2282  2282 I DEBUG   :
03-22 16:25:30.901  2282  2282 I DEBUG   : Tombstone written to: /data/tombstones/tombstone_06

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.

Peter Boström

unread,
Mar 22, 2016, 10:21:27 AM3/22/16
to discuss-webrtc
Are you intentionally running tracing? This will add a ton of performance data on their devices and fill up storage cards quickly. It's really not to be used in production. You can remove all traces of Tracing/Tracer if you're not sure why you're using it. I'm unaware of the dispose things/what they do. :)

03-21 17:11:50.121  2282  2282 I DEBUG   :     #07 pc 001186c5  /data/dalvik-cache/arm/data@app@com.sampl...@base.apk@classes.dex
03-22 16:25:30.381  2282  2282 I DEBUG   :     #07 pc 0011824d  /data/dalvik-cache/arm/data@app@com.sampl...@base.apk@classes.dex

03-22 16:25:30.441  2286  2568 I AudioPolicyManager: stopOutput() output 4, stream 1, session 526
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: changeRefCount() stream 1, count 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 D AudioPolicyManager: getDeviceForStrategy mLastPolicySelection device = 0
03-22 16:25:30.441  2286  2568 I AudioPolicyManager: setOutputDevice() setting same device 0000 or null device for output 4
03-22 16:25:30.901  2893  5711 I am_crash: [2893,0,com.sample.mingle,13155910,Native crash,Aborted,unknown,0]: system_server
03-22 16:25:30.901  2282  2282 I DEBUG   :
03-22 16:25:30.901  2282  2282 I DEBUG   : Tombstone written to: /data/tombstones/tombstone_06

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Neernay Khairkar

unread,
Mar 22, 2016, 10:27:45 AM3/22/16
to discuss-webrtc
yes, I removed the tracer now! The crash is no more now. Let me see if it occurs.
Thanks!!
03-21 17:11:50.121  2282  2282 I DEBUG   :     #07 pc 001186c5  /data/dalvik-cache/arm/data@a...@com.sample.mingle-2@base.a...@classes.dex
03-22 16:25:30.381  2282  2282 I DEBUG   :     #07 pc 0011824d  /data/dalvik-cache/arm/data@a...@com.sample.mingle-2@base.a...@classes.dex

Neuron apps

unread,
Apr 29, 2016, 3:21:46 AM4/29/16
to discuss-webrtc

 # Fatal error in ../../webrtc/base/event_tracer.cc, line 238
    # Check failed: rtc::AtomicOps::CompareAndSwapPtr( &g_event_logger, static_cast<EventLogger*>(nullptr), new EventLogger()) == nullptr
    #
    #
Why I am Getting this, i am android Developer, don't know libjingle_peerconnection_so.so, code,what writter inside it, I am doing confrencing work 

Peter Boström

unread,
Apr 29, 2016, 11:29:34 AM4/29/16
to discuss-webrtc
I'd guess that you have two PeerConnectionFactories based on the AppRTCDemo code and then call close on both of them.

We shouldn't initialize tracing here, I filed a bug for moving it. You can remove PeerConnectionFactory.{initializeInternalTracer, shutdownInternalTracer, stopInternalTracingCapture,startInternalTracingCapture} from your code in the meantime.


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Neuron apps

unread,
May 16, 2016, 10:31:58 AM5/16/16
to discuss...@googlegroups.com
now i am getting ,

Error during deletingGlobalRef in Jnihelper

--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/dy1l4hoclUY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAGFX3sGeQj0yS7pCJTOmX%2BZSwgRYUcfLcYF4kFdvaeCPAt_0Ww%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages