owt-client-android icon indicating copy to clipboard operation
owt-client-android copied to clipboard

Null object reference when a stream is updated.

Open jianjunz opened this issue 6 years ago • 0 comments

This issue was originally reported at https://software.intel.com/en-us/forums/intel-collaboration-suite-for-webrtc/topic/804984.

Environment:

  • Ver: ICS 4.1.1
  • ICS-Conferece
  • Do not use mixing.

log cat

2019-02-11 13:45:26.365 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4935, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ] 2019-02-11 13:45:26.367 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4936, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ] 2019-02-11 13:45:41.155 8203-8401/com.saeha.ezview.Dev E/AndroidRuntime: FATAL EXCEPTION: pool-5-thread-2 Process: com.saeha.ezview.Dev, PID: 8203 java.lang.NullPointerException: Attempt to invoke virtual method 'void com.intel.webrtc.conference.Subscription.onStatusUpdated(com.intel.webrtc.base.MediaConstraints$TrackKind, boolean)' on a null object reference at com.intel.webrtc.conference.ConferenceClient.lambda$onStreamUpdated$15(ConferenceClient.java:723) at com.intel.webrtc.conference.-$$Lambda$ConferenceClient$aWl5wjEHeXZzvSUNQcID27_Orgo.run(Unknown Source:6) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 2019-02-11 13:45:41.157 8203-8354/com.saeha.ezview.Dev E/AndroidRuntime: FATAL EXCEPTION: pool-5-thread-1 Process: com.saeha.ezview.Dev, PID: 8203 java.lang.NullPointerException: Attempt to invoke virtual method 'void com.intel.webrtc.conference.Subscription.onStatusUpdated(com.intel.webrtc.base.MediaConstraints$TrackKind, boolean)' on a null object reference at com.intel.webrtc.conference.ConferenceClient.lambda$onStreamUpdated$15(ConferenceClient.java:723) at com.intel.webrtc.conference.-$$Lambda$ConferenceClient$aWl5wjEHeXZzvSUNQcID27_Orgo.run(Unknown Source:6) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 2019-02-11 13:45:41.259 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4942, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] 2019-02-11 13:45:41.275 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ REQUEST id=4941, [ Transports: CELLULAR Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] 2019-02-11 13:45:41.284 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4939, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ] 2019-02-11 13:45:41.288 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4940, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]

Crash Source - ConferenceClient.class

  • line 656: while(!pcChannel.stream.id().equals(id) && !pcChannel.key.equals(id));
  • line 663: pcChannel.subscription.onStatusUpdated(trackKind, active);

It occurs randomly when a new stream is added or removed.

jianjunz avatar Feb 14 '19 01:02 jianjunz