Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

I deployed the server on Google Cloud but I can not connect from the Android app #716

Open
ciucaandrei opened this issue Oct 16, 2021 · 2 comments

Comments

@ciucaandrei
Copy link

Hi,

I deployed the server on Google Cloud, collidermain and turnserver are run on my local server.
It works from browsers - I can join a room , stream audio and video
When I try to connect to my server from the Android app I get an error Fatal signal 11 (SIGSEGV), code 1 and the app stops

These are the complete logs from the Android app:
2021-10-16 13:57:03.911 12781-12781/com.example.webrtc.android D/ConnectActivity: Connecting to room 640862 at URL https://myapp.uc.r.appspot.com
2021-10-16 13:57:03.984 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglBase14: SDK version: 26. isEGL14Supported: true
2021-10-16 13:57:03.987 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: pip_video_viewInitializing EglRenderer
2021-10-16 13:57:03.988 12781-12849/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: pip_video_viewEglBase.create shared context
2021-10-16 13:57:03.989 12781-12849/com.example.webrtc.android I/org.webrtc.Logging: EglBase14: SDK version: 26. isEGL14Supported: true
2021-10-16 13:57:03.991 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: fullscreen_video_viewInitializing EglRenderer
2021-10-16 13:57:03.993 12781-12850/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: fullscreen_video_viewEglBase.create shared context
2021-10-16 13:57:03.993 12781-12850/com.example.webrtc.android I/org.webrtc.Logging: EglBase14: SDK version: 26. isEGL14Supported: true
2021-10-16 13:57:03.995 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: CallRTCClient: setSwappedFeeds: true
2021-10-16 13:57:03.995 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: fullscreen_video_viewsetMirror: true
2021-10-16 13:57:03.995 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: pip_video_viewsetMirror: false
2021-10-16 13:57:03.996 12781-12781/com.example.webrtc.android D/CallRTCClient: Room ID: 640862
2021-10-16 13:57:03.997 12781-12781/com.example.webrtc.android D/CallRTCClient: VIDEO_FILE: 'null'
2021-10-16 13:57:04.000 12781-12781/com.example.webrtc.android D/PCRTCClient: Preferred video codec: H264
2021-10-16 13:57:04.000 12781-12781/com.example.webrtc.android D/PCRTCClient: Disable WebRTC AGC field trial.
2021-10-16 13:57:04.001 12781-12853/com.example.webrtc.android D/PCRTCClient: Initialize WebRTC. Field trials: WebRTC-IntelVP8/Enabled/WebRTC-Audio-MinimizeResamplingOnMobile/Enabled/
2021-10-16 13:57:04.001 12781-12781/com.example.webrtc.android D/CallRTCClient: Connecting to: https://myapp.uc.r.appspot.com
2021-10-16 13:57:04.001 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: NativeLibrary: Loading native library: jingle_peerconnection_so
2021-10-16 13:57:04.001 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: NativeLibrary: Loading library: jingle_peerconnection_so
2021-10-16 13:57:04.006 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: PeerConnectionFactory: PeerConnectionFactory was initialized without an injected Loggable. Any existing Loggable will be deleted.
2021-10-16 13:57:04.009 12781-12853/com.example.webrtc.android W/PCRTCClient: External OpenSLES ADM not implemented yet.
2021-10-16 13:57:04.011 12781-12851/com.example.webrtc.android D/WSRTCClient: Connect to room: https://myapp.uc.r.appspot.com/join/640862
2021-10-16 13:57:04.011 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: ctor
2021-10-16 13:57:04.011 12781-12781/com.example.webrtc.android D/AppRTCBluetoothManager: create@[name=main, id=2]
2021-10-16 13:57:04.011 12781-12781/com.example.webrtc.android D/AppRTCBluetoothManager: ctor
2021-10-16 13:57:04.011 12781-12851/com.example.webrtc.android D/RoomRTCClient: Connecting to room: https://myapp.uc.r.appspot.com/join/640862
2021-10-16 13:57:04.013 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: useSpeakerphone: auto
2021-10-16 13:57:04.014 12781-12781/com.example.webrtc.android D/AppRTCProximitySensor: AppRTCProximitySensor@[name=main, id=2]
2021-10-16 13:57:04.017 12781-12854/com.example.webrtc.android D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2021-10-16 13:57:04.022 12781-12854/com.example.webrtc.android I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
2021-10-16 13:57:04.022 12781-12854/com.example.webrtc.android I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
2021-10-16 13:57:04.024 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: defaultAudioDevice: SPEAKER_PHONE
2021-10-16 13:57:04.025 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: Android SDK: 26, Release: 8.0.0, Brand: samsung, Device: hero2lte, Id: R16NW, Hardware: samsungexynos8890, Manufacturer: samsung, Model: SM-G935F, Product: hero2ltexx
2021-10-16 13:57:04.025 12781-12781/com.example.webrtc.android D/CallRTCClient: Starting the audio manager...
2021-10-16 13:57:04.025 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: start
2021-10-16 13:57:04.025 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: AudioManager starts...
2021-10-16 13:57:04.035 12781-12781/com.example.webrtc.android W/AudioManager: Use of stream types is deprecated for operations other than volume control
2021-10-16 13:57:04.035 12781-12781/com.example.webrtc.android W/AudioManager: See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2021-10-16 13:57:04.035 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: WebRtcAudioManagerExternal: Sample rate is set to 48000 Hz
2021-10-16 13:57:04.036 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: JavaAudioDeviceModule: createAudioDeviceModule
2021-10-16 13:57:04.036 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: JavaAudioDeviceModule: Overriding default behavior; now using WebRTC NS!
2021-10-16 13:57:04.036 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: JavaAudioDeviceModule: HW NS will not be used.
2021-10-16 13:57:04.036 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: JavaAudioDeviceModule: Overriding default behavior; now using WebRTC AEC!
2021-10-16 13:57:04.036 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: JavaAudioDeviceModule: HW AEC will not be used.
2021-10-16 13:57:04.036 12781-12781/com.example.webrtc.android D/AudioManager: requestAudioFocus status : 1
2021-10-16 13:57:04.036 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: Audio focus request granted for VOICE_CALL streams
2021-10-16 13:57:04.036 12781-12853/com.example.webrtc.android I/org.webrtc.Logging: WebRtcAudioEffectsExternal: ctor@[name=pool-1-thread-1, id=2420]
2021-10-16 13:57:04.036 12781-12853/com.example.webrtc.android D/PCRTCClient: Factory networkIgnoreMask option: 0
2021-10-16 13:57:04.038 12781-12781/com.example.webrtc.android D/AppRTCBluetoothManager: start
2021-10-16 13:57:04.042 12781-12781/com.example.webrtc.android D/AppRTCBluetoothManager: BluetoothAdapter: enabled=false, state=OFF, name=Samsung Galaxy S7 edge, address=02:00:00:00:00:00
2021-10-16 13:57:04.043 12781-12781/com.example.webrtc.android D/BluetoothHeadset: BTStateChangeCB is registed (12781 @ com.example.webrtc.android)
2021-10-16 13:57:04.044 12781-12857/com.example.webrtc.android I/org.webrtc.Logging: PeerConnectionFactory: onNetworkThreadReady
2021-10-16 13:57:04.044 12781-12858/com.example.webrtc.android I/org.webrtc.Logging: PeerConnectionFactory: onWorkerThreadReady
2021-10-16 13:57:04.045 12781-12781/com.example.webrtc.android D/AppRTCBluetoothManager: HEADSET profile state: DISCONNECTED
2021-10-16 13:57:04.045 12781-12781/com.example.webrtc.android D/AppRTCBluetoothManager: Bluetooth proxy for headset profile has started
2021-10-16 13:57:04.045 12781-12781/com.example.webrtc.android D/AppRTCBluetoothManager: start done: BT state=HEADSET_UNAVAILABLE
2021-10-16 13:57:04.045 12781-12859/com.example.webrtc.android I/org.webrtc.Logging: PeerConnectionFactory: onSignalingThreadReady
2021-10-16 13:57:04.045 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: --- updateAudioDeviceState: wired headset=false, BT state=HEADSET_UNAVAILABLE
2021-10-16 13:57:04.045 12781-12853/com.example.webrtc.android D/PCRTCClient: Peer connection factory created.
2021-10-16 13:57:04.045 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: Device status: available=[], selected=NONE, user selected=NONE
2021-10-16 13:57:04.046 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: setAudioDeviceInternal(device=SPEAKER_PHONE)
2021-10-16 13:57:04.046 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: New device status: available=[SPEAKER_PHONE, EARPIECE], selected=SPEAKER_PHONE
2021-10-16 13:57:04.046 12781-12781/com.example.webrtc.android D/CallRTCClient: onAudioManagerDevicesChanged: [SPEAKER_PHONE, EARPIECE], selected: SPEAKER_PHONE
2021-10-16 13:57:04.046 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: --- updateAudioDeviceState done
2021-10-16 13:57:04.047 12781-12781/com.example.webrtc.android D/AppRTCAudioManager: AudioManager started
2021-10-16 13:57:04.087 12781-12788/com.example.webrtc.android I/zygote64: Do full code cache collection, code=119KB, data=114KB
2021-10-16 13:57:04.088 12781-12788/com.example.webrtc.android I/zygote64: After code cache collection, code=119KB, data=84KB
2021-10-16 13:57:04.093 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: setView = DecorView@ecad65b[CallActivity] TM=true MM=false
2021-10-16 13:57:04.095 12781-12781/com.example.webrtc.android D/ViewRootImpl@216672e[ConnectActivity]: MSG_WINDOW_FOCUS_CHANGED 0
2021-10-16 13:57:04.104 12781-12781/com.example.webrtc.android D/ViewRootImpl@c478a36[Toast]: setView = android.widget.LinearLayout{2567d37 V.E...... ......I. 0,0-0,0} TM=true MM=false
2021-10-16 13:57:04.104 12781-12781/com.example.webrtc.android V/Toast: Text: Donn in android.widget.Toast$TN@88442a4
2021-10-16 13:57:04.110 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: dispatchAttachedToWindow
2021-10-16 13:57:04.111 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: SurfaceViewRenderer: fullscreen_video_view: onMeasure(). New size: 1080x1848
2021-10-16 13:57:04.111 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: SurfaceViewRenderer: pip_video_view: onMeasure(). New size: 984x432
2021-10-16 13:57:04.127 12781-12781/com.example.webrtc.android V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
2021-10-16 13:57:04.127 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1920] result=0x7 surface={valid=true 520979275776} changed=true
2021-10-16 13:57:04.137 12781-12809/com.example.webrtc.android D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1920]-format:1
2021-10-16 13:57:04.137 12781-12809/com.example.webrtc.android D/OpenGLRenderer: eglCreateWindowSurface = 0x79662173f0
2021-10-16 13:57:04.138 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: SurfaceViewRenderer: fullscreen_video_view: onMeasure(). New size: 1080x1920
2021-10-16 13:57:04.138 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: SurfaceViewRenderer: pip_video_view: onMeasure(). New size: 984x432
2021-10-16 13:57:04.144 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: fullscreen_video_viewsetLayoutAspectRatio: 0.5625
2021-10-16 13:57:04.144 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: pip_video_viewsetLayoutAspectRatio: 2.2777777
2021-10-16 13:57:04.147 12781-12788/com.example.webrtc.android I/zygote64: Do partial code cache collection, code=119KB, data=92KB
2021-10-16 13:57:04.147 12781-12788/com.example.webrtc.android I/zygote64: After code cache collection, code=119KB, data=92KB
2021-10-16 13:57:04.147 12781-12788/com.example.webrtc.android I/zygote64: Increasing code cache capacity to 512KB
2021-10-16 13:57:04.153 12781-12781/com.example.webrtc.android D/SurfaceView: BG show() Surface(name=Background for - SurfaceView - com.example.webrtc.android/com.example.webrtc.android.CallActivity@c14e510@0) org.webrtc.SurfaceViewRenderer{c14e510 VFE...C.. ......ID 0,0-1080,1920 #7f080047 app:id/fullscreen_video_view}
2021-10-16 13:57:04.168 12781-12781/com.example.webrtc.android V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
2021-10-16 13:57:04.168 12781-12781/com.example.webrtc.android D/SurfaceView: surfaceCreated 2 org.webrtc.SurfaceViewRenderer{c14e510 VFE...C.. ......ID 0,0-1080,1920 #7f080047 app:id/fullscreen_video_view}
2021-10-16 13:57:04.168 12781-12781/com.example.webrtc.android D/SurfaceView: surfaceChanged (1080,1920) 2 org.webrtc.SurfaceViewRenderer{c14e510 VFE...C.. ......ID 0,0-1080,1920 #7f080047 app:id/fullscreen_video_view}
2021-10-16 13:57:04.168 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: SurfaceEglRenderer: fullscreen_video_view: surfaceChanged: format: 4 size: 1080x1920
2021-10-16 13:57:04.169 12781-12850/com.example.webrtc.android D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1920]-format:2
2021-10-16 13:57:04.171 12781-12781/com.example.webrtc.android D/SurfaceView: BG show() Surface(name=Background for - SurfaceView - com.example.webrtc.android/com.example.webrtc.android.CallActivity@fcb423c@0) org.webrtc.SurfaceViewRenderer{fcb423c VFE...C.. ......ID 48,1440-1032,1872 #7f080065 app:id/pip_video_view}
2021-10-16 13:57:04.184 12781-12781/com.example.webrtc.android V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
2021-10-16 13:57:04.185 12781-12781/com.example.webrtc.android D/SurfaceView: surfaceCreated 2 org.webrtc.SurfaceViewRenderer{fcb423c VFE...C.. ......ID 48,1440-1032,1872 #7f080065 app:id/pip_video_view}
2021-10-16 13:57:04.185 12781-12781/com.example.webrtc.android D/SurfaceView: surfaceChanged (984,432) 2 org.webrtc.SurfaceViewRenderer{fcb423c VFE...C.. ......ID 48,1440-1032,1872 #7f080065 app:id/pip_video_view}
2021-10-16 13:57:04.185 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: SurfaceEglRenderer: pip_video_view: surfaceChanged: format: 4 size: 984x432
2021-10-16 13:57:04.185 12781-12849/com.example.webrtc.android D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [984x432]-format:2
2021-10-16 13:57:04.187 12781-12781/com.example.webrtc.android D/ViewRootImpl@c478a36[Toast]: dispatchAttachedToWindow
2021-10-16 13:57:04.206 12781-12781/com.example.webrtc.android V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
2021-10-16 13:57:04.206 12781-12781/com.example.webrtc.android D/ViewRootImpl@c478a36[Toast]: Relayout returned: old=[0,0][0,0] new=[86,667][993,855] result=0x27 surface={valid=true 520979288064} changed=true
2021-10-16 13:57:04.210 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
2021-10-16 13:57:04.210 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: MSG_WINDOW_FOCUS_CHANGED 1
2021-10-16 13:57:04.212 12781-12781/com.example.webrtc.android V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@30d8958 nm : com.example.webrtc.android ic=null
2021-10-16 13:57:04.212 12781-12781/com.example.webrtc.android I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2021-10-16 13:57:04.221 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x3 surface={valid=true 520979275776} changed=false
2021-10-16 13:57:04.253 12781-12781/com.example.webrtc.android D/ViewRootImpl@c478a36[Toast]: MSG_RESIZED_REPORT: frame=Rect(86, 667 - 993, 855) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
2021-10-16 13:57:04.257 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 873) or=1
2021-10-16 13:57:04.258 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
2021-10-16 13:57:04.274 12781-12809/com.example.webrtc.android D/OpenGLRenderer: eglDestroySurface = 0x7966215af0
2021-10-16 13:57:04.278 12781-12781/com.example.webrtc.android D/ViewRootImpl@216672e[ConnectActivity]: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x5 surface={valid=false 0} changed=true
2021-10-16 13:57:04.279 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: SurfaceViewRenderer: fullscreen_video_view: onMeasure(). New size: 1080x1920
2021-10-16 13:57:04.280 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: SurfaceViewRenderer: pip_video_view: onMeasure(). New size: 984x432
2021-10-16 13:57:04.288 12781-12781/com.example.webrtc.android D/ViewRootImpl@706c16a[CallActivity]: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x1 surface={valid=true 520979275776} changed=false
2021-10-16 13:57:04.289 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: fullscreen_video_viewsetLayoutAspectRatio: 0.5625
2021-10-16 13:57:04.290 12781-12781/com.example.webrtc.android I/org.webrtc.Logging: EglRenderer: pip_video_viewsetLayoutAspectRatio: 2.2777777
2021-10-16 13:57:04.588 12781-12854/com.example.webrtc.android D/RoomRTCClient: Room response: {"params": {"is_initiator": "true", "room_link": "https://myapp.uc.r.appspot.com/r/640862", "version_info": "{"gitHash": "e5f7d3663738ba49eb91aea028b5cf3559c25051", "branch": "master", "time": "Tue Jun 22 14:25:03 2021 +0000"}", "messages": [], "error_messages": [], "client_id": "64841532", "ice_server_transports": "", "bypass_join_confirmation": "false", "wss_url": "wss://mydomain.com:8089/ws", "media_constraints": "{"audio": true, "video": true}", "include_loopback_js": "", "header_message": "", "is_loopback": "false", "offer_options": "{}", "pc_constraints": "{"optional": []}", "pc_config": "{"rtcpMuxPolicy": "require", "bundlePolicy": "max-bundle", "iceServers": [{"username": "flyer", "credential": "bnupl123456", "urls": ["turn:my.ip:3478?transport=udp", "turn:my.ip:3478?transport=tcp"]}, {"urls": ["stun:my.ip:3478"]}]}", "wss_post_url": "https://mydomain.com:8089", "ice_server_url": "https://myapp.uc.r.appspot.com/v1alpha/iceconfig?key=", "warning_messages": [], "room_id": "640862"}, "result": "SUCCESS"}
2021-10-16 13:57:04.594 12781-12854/com.example.webrtc.android D/RoomRTCClient: RoomId: 640862. ClientId: 64841532
2021-10-16 13:57:04.594 12781-12854/com.example.webrtc.android D/RoomRTCClient: Initiator: true
2021-10-16 13:57:04.594 12781-12854/com.example.webrtc.android D/RoomRTCClient: WSS url: wss://mydomain.com:8089/ws
2021-10-16 13:57:04.594 12781-12854/com.example.webrtc.android D/RoomRTCClient: WSS POST url: https://mydomain.com:8089
2021-10-16 13:57:04.596 12781-12854/com.example.webrtc.android D/RoomRTCClient: IceServer: [["turn:my.ip:3478?transport=udp","turn:my.ip:3478?transport=tcp"]] [:bnupl123456] [TLS_CERT_POLICY_SECURE] [] [null] [null]
2021-10-16 13:57:04.596 12781-12854/com.example.webrtc.android D/RoomRTCClient: IceServer: [["stun:my.ip:3478"]] [:] [TLS_CERT_POLICY_SECURE] [] [null] [null]
2021-10-16 13:57:04.596 12781-12854/com.example.webrtc.android D/RoomRTCClient: Request TURN from: https://myapp.uc.r.appspot.com/v1alpha/iceconfig?key=
2021-10-16 13:57:04.599 12781-12854/com.example.webrtc.android I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
2021-10-16 13:57:04.599 12781-12854/com.example.webrtc.android I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
2021-10-16 13:57:04.764 12781-12854/com.example.webrtc.android D/RoomRTCClient: TURN response: {"iceServers": [{"username": "flyer", "credential": "bnupl123456", "urls": ["turn:my.ip:3478?transport=udp", "turn:my.ip:3478?transport=tcp"]}, {"urls": ["stun:my.ip:3478"]}]}
2021-10-16 13:57:04.765 12781-12854/com.example.webrtc.android D/RoomRTCClient: TurnServer: [turn:my.ip:3478?transport=udp] [flyer:bnupl123456] [TLS_CERT_POLICY_SECURE] [] [null] [null]
2021-10-16 13:57:04.765 12781-12854/com.example.webrtc.android D/RoomRTCClient: TurnServer: [turn:my.ip:3478?transport=tcp] [flyer:bnupl123456] [TLS_CERT_POLICY_SECURE] [] [null] [null]
2021-10-16 13:57:04.765 12781-12854/com.example.webrtc.android D/RoomRTCClient: TurnServer: [stun:my.ip:3478] [:] [TLS_CERT_POLICY_SECURE] [] [null] [null]
2021-10-16 13:57:04.766 12781-12851/com.example.webrtc.android D/WSRTCClient: Room connection completed.
2021-10-16 13:57:04.766 12781-12851/com.example.webrtc.android D/WSRTCClient: Message URL: https://myapp.uc.r.appspot.com/message/640862/64841532
2021-10-16 13:57:04.766 12781-12851/com.example.webrtc.android D/WSRTCClient: Leave URL: https://myapp.uc.r.appspot.com/leave/640862/64841532
2021-10-16 13:57:04.766 12781-12851/com.example.webrtc.android D/WSChannelRTCClient: Connecting WebSocket to: wss://mydomain.com:8089/ws. Post URL: https://mydomain.com:8089
2021-10-16 13:57:04.766 12781-12781/com.example.webrtc.android D/CallRTCClient: Creating peer connection, delay=765ms
2021-10-16 13:57:04.767 12781-12851/com.example.webrtc.android D/de.tavendo.autobahn.WebSocketConnection: WebSocket connection created.
2021-10-16 13:57:04.775 12781-12781/com.example.webrtc.android D/CallRTCClient: Creating OFFER...
2021-10-16 13:57:04.775 12781-12853/com.example.webrtc.android D/PCRTCClient: Disabling audio processing
2021-10-16 13:57:04.775 12781-12853/com.example.webrtc.android D/PCRTCClient: Create peer connection.
2021-10-16 13:57:04.782 12781-12853/com.example.webrtc.android A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 12853 (pool-1-thread-1)
2021-10-16 13:57:04.785 12781-12781/com.example.webrtc.android D/ViewRootImpl@c478a36[Toast]: dispatchDetachedFromWindow
2021-10-16 13:57:04.798 12781-12781/com.example.webrtc.android D/InputEventReceiver: channel 'ce3ece2 Toast (client)' ~ Disposing input event receiver.
2021-10-16 13:57:04.798 12781-12781/com.example.webrtc.android D/InputEventReceiver: channel 'ce3ece2 Toast (client)' ~NativeInputEventReceiver.
2021-10-16 13:57:04.821 12781-12781/com.example.webrtc.android V/Toast: Text: Drea in android.widget.Toast$TN@30192df
2021-10-16 13:57:04.822 12781-12781/com.example.webrtc.android D/ViewRootImpl@d16e339[Toast]: dispatchAttachedToWindow

What do you think it could be the problem?

Thanks

@ciucaandrei
Copy link
Author

app is executing peerConnection = factory.createPeerConnection(rtcConfig, pcObserver);
but fails at dataChannel = peerConnection.createDataChannel("ApprtcDemo data", init);

@ciucaandrei
Copy link
Author

ciucaandrei commented Oct 16, 2021

it seems to be a problem with the ice uri:
2021-10-16 18:47:49.341 32549-32605/com.example.webrtc.android W/ice_server_parsing.cc: (line 182): Invalid transport parameter in ICE URI: ["turn:mydomain.com:3478"]
I have tried also with ?transport=udp and ?transport=tcp and it does not work

For browsers it works but it does not work for the android app.

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