Closed nzkar closed 3 years ago
Hi, I don't know about this. Please attach the symbolized stack trace of the crash & the SDK logs.
This time it took a little longer but eventually happened. https://www.linphone.org:444//tmp/5f634d804b969_df1b60edfac3b8b5625b.gz
Please add the crash stacktrace.
2020-09-17 14:57:05.342 23614-23614/? I/.linphone.debu: Late-enabling -Xcheck:jni
2020-09-17 14:57:05.602 23614-23614/org.linphone.debug I/Perf: Connecting to perf service.
2020-09-17 14:57:05.650 23614-23614/org.linphone.debug I/FirebaseInitProvider: FirebaseApp initialization successful
2020-09-17 14:57:05.729 23614-23614/org.linphone.debug W/.linphone.debu: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
2020-09-17 14:57:05.729 23614-23614/org.linphone.debug W/.linphone.debu: Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
2020-09-17 14:57:05.729 23614-23614/org.linphone.debug W/.linphone.debu: Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
2020-09-17 14:57:05.729 23614-23614/org.linphone.debug W/.linphone.debu: Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
2020-09-17 14:57:05.729 23614-23614/org.linphone.debug W/.linphone.debu: Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
2020-09-17 14:57:05.762 23614-23614/org.linphone.debug W/FactoryImpl: Unable to load optional library ffmpeg-linphone: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.linphone.debug-s_aRsr79_TbXUAnipVxgcg==/base.apk"],nativeLibraryDirectories=[/data/app/org.linphone.debug-s_aRsr79_TbXUAnipVxgcg==/lib/arm64, /data/app/org.linphone.debug-s_aRsr79_TbXUAnipVxgcg==/base.apk!/lib/arm64-v8a, /system/lib64]]] couldn't find "libffmpeg-linphone.so"
2020-09-17 14:57:05.853 23614-23614/org.linphone.debug I/Linphone: ==== Phone information dump ====
2020-09-17 14:57:05.856 23614-23614/org.linphone.debug I/Linphone: DISPLAY NAME=GM 9 Pro
2020-09-17 14:57:05.856 23614-23614/org.linphone.debug I/Linphone: DEVICE=GM9PRO_sprout
2020-09-17 14:57:05.856 23614-23614/org.linphone.debug I/Linphone: MODEL=GM 9 Pro
2020-09-17 14:57:05.856 23614-23614/org.linphone.debug I/Linphone: MANUFACTURER=General Mobile
2020-09-17 14:57:05.856 23614-23614/org.linphone.debug I/Linphone: ANDROID SDK=28
2020-09-17 14:57:05.856 23614-23614/org.linphone.debug I/Linphone: ABIs=arm64-v8a, armeabi-v7a, armeabi
2020-09-17 14:57:05.856 23614-23614/org.linphone.debug I/Linphone: ==== Linphone information dump ====
2020-09-17 14:57:05.856 23614-23614/org.linphone.debug I/Linphone: VERSION NAME=4.4.0
2020-09-17 14:57:05.857 23614-23614/org.linphone.debug I/Linphone: VERSION CODE=4300
2020-09-17 14:57:05.857 23614-23614/org.linphone.debug I/Linphone: PACKAGE=org.linphone.debug
2020-09-17 14:57:05.857 23614-23614/org.linphone.debug I/Linphone: BUILD TYPE=debug
2020-09-17 14:57:05.857 23614-23614/org.linphone.debug I/Linphone: SDK VERSION=4.3.5-pre.2+c55e271
2020-09-17 14:57:05.857 23614-23614/org.linphone.debug I/Linphone: SDK BRANCH=remotes/origin/release/4.3
2020-09-17 14:57:05.857 23614-23614/org.linphone.debug I/Linphone: [Context] Ready
2020-09-17 14:57:05.868 23614-23614/org.linphone.debug I/Linphone: [Manager] Registering phone state listener
2020-09-17 14:57:05.883 23614-23614/org.linphone.debug D/skia: --- Failed to create image decoder with message 'unimplemented'
2020-09-17 14:57:05.890 23614-23614/org.linphone.debug W/Linphone: [Context] Device is in bucket STANDBY_BUCKET_ACTIVE
2020-09-17 14:57:05.891 23614-23614/org.linphone.debug W/Linphone: [Context] Push notifications won't work !
2020-09-17 14:57:05.891 23614-23614/org.linphone.debug I/Linphone: [Context] Starting, push status is false
2020-09-17 14:57:05.891 23614-23614/org.linphone.debug I/Linphone: Using (r/w) config information from /data/user/0/org.linphone.debug/files/.linphonerc
2020-09-17 14:57:05.892 23614-23614/org.linphone.debug I/Linphone: Reading config information from /data/user/0/org.linphone.debug/files/linphonerc
2020-09-17 14:57:05.896 23614-23614/org.linphone.debug I/Linphone: Initializing LinphoneCore 4.3.2-2-gb5f9d3fb8
2020-09-17 14:57:05.896 23614-23614/org.linphone.debug I/Linphone: Sal nat helper [enabled]
2020-09-17 14:57:05.901 23614-23614/org.linphone.debug I/Linphone: [Device] hasLowLatencyFeature: false, hasProFeature: false
2020-09-17 14:57:05.903 23614-23614/org.linphone.debug I/Linphone: [Device] Output frames per buffer: 192, output sample rate: 48000.
2020-09-17 14:57:05.903 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Created, wifi only mode is disabled
2020-09-17 14:57:05.906 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Starting copy from assets to application files directory
2020-09-17 14:57:05.914 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Installing Resource cpim_grammar
2020-09-17 14:57:05.915 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Installing Resource identity_grammar
2020-09-17 14:57:05.916 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Installing Resource vcard_grammar
2020-09-17 14:57:05.919 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Installing Resource rootca.pem
2020-09-17 14:57:05.925 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource dont_wait_too_long.mkv already installed, skipping...
2020-09-17 14:57:05.926 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource hello16000.wav already installed, skipping...
2020-09-17 14:57:05.926 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource hello8000.wav already installed, skipping...
2020-09-17 14:57:05.926 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource incoming_chat.wav already installed, skipping...
2020-09-17 14:57:05.926 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource ringback.wav already installed, skipping...
2020-09-17 14:57:05.928 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource four_hands_together.mkv already installed, skipping...
2020-09-17 14:57:05.928 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource house_keeping.mkv already installed, skipping...
2020-09-17 14:57:05.929 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource its_a_game.mkv already installed, skipping...
2020-09-17 14:57:05.929 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource leaving_dreams.mkv already installed, skipping...
2020-09-17 14:57:05.929 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource notes_of_the_optimistic.mkv already installed, skipping...
2020-09-17 14:57:05.930 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource oldphone-mono.wav already installed, skipping...
2020-09-17 14:57:05.930 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource soft_as_snow.mkv already installed, skipping...
2020-09-17 14:57:05.930 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Resource toy-mono.wav already installed, skipping...
2020-09-17 14:57:05.930 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] Copy from assets done
2020-09-17 14:57:05.932 23614-23614/org.linphone.debug W/Linphone: [Platform Helper] Device is in bucket STANDBY_BUCKET_ACTIVE
2020-09-17 14:57:05.936 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] [Network Manager 26] Found DNS host 195.175.39.59 from active network MOBILE
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] [Network Manager 26] Found DNS host 195.175.39.60 from active network MOBILE
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: [Platform Helper] DNS servers list updated
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: belle_sip_set_jvm(): initialization succeed
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: bellesip_wake_lock_init(): initialization succeed
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: AndroidPlatformHelpers is fully initialised.
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: Mediastreamer2 factory 4.3.0 (git: 4.3.2-3-g74a32975) initialized.
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: CPU count set to 8
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: ms_factory_init() done: platform_tags=linux,android,x86,embedded
2020-09-17 14:57:05.937 23614-23614/org.linphone.debug I/Linphone: srtp init
2020-09-17 14:57:05.940 23614-23614/org.linphone.debug I/Linphone: SDK version [28] detected
2020-09-17 14:57:05.944 23614-23646/org.linphone.debug I/OMXClient: IOmx service obtained
2020-09-17 14:57:05.963 23614-23614/org.linphone.debug I/Linphone: Codec video/avc successfully created.
2020-09-17 14:57:05.978 23614-23654/org.linphone.debug I/OMXClient: IOmx service obtained
2020-09-17 14:57:05.995 23614-23614/org.linphone.debug I/Linphone: Codec video/avc successfully created.
2020-09-17 14:57:06.000 23614-23614/org.linphone.debug I/Linphone: MediaCodec: 'video/avc' format supported
2020-09-17 14:57:06.003 23614-23660/org.linphone.debug I/OMXClient: IOmx service obtained
2020-09-17 14:57:06.012 23614-23614/org.linphone.debug I/Linphone: Codec video/hevc successfully created.
2020-09-17 14:57:06.020 23614-23665/org.linphone.debug I/OMXClient: IOmx service obtained
2020-09-17 14:57:06.032 23614-23614/org.linphone.debug I/Linphone: Codec video/hevc successfully created.
2020-09-17 14:57:06.038 23614-23614/org.linphone.debug I/Linphone: MediaCodec: 'video/hevc' format supported
2020-09-17 14:57:06.038 23614-23614/org.linphone.debug I/Linphone: Registering all soundcard handlers
2020-09-17 14:57:06.038 23614-23614/org.linphone.debug I/Linphone: SDK version [28] detected
2020-09-17 14:57:06.038 23614-23614/org.linphone.debug I/Linphone: Native android sound support not tested on SDK [28], disabled.
2020-09-17 14:57:06.039 23614-23614/org.linphone.debug I/Linphone: [OpenSLES] libOpenSLES correctly loaded, creating OpenSLES MS soundcard
2020-09-17 14:57:06.049 23614-23614/org.linphone.debug I/Linphone: This device (General Mobile/GM 9 Pro/sdm660) declares it has a built-in echo canceller.
2020-09-17 14:57:06.049 23614-23614/org.linphone.debug I/Linphone: No information available for [General Mobile/GM 9 Pro/sdm660],
2020-09-17 14:57:06.049 23614-23614/org.linphone.debug I/Linphone: Using android >= 8 sound device descriptor.
2020-09-17 14:57:06.049 23614-23614/org.linphone.debug I/Linphone: Sound device information for [General Mobile/GM 9 Pro/sdm660] is: builtin=[yes], delay=[0] ms
2020-09-17 14:57:06.055 23614-23614/org.linphone.debug I/Linphone: This device (General Mobile/GM 9 Pro/sdm660) declares it has a built-in echo canceller.
2020-09-17 14:57:06.055 23614-23614/org.linphone.debug I/Linphone: No information available for [General Mobile/GM 9 Pro/sdm660],
2020-09-17 14:57:06.055 23614-23614/org.linphone.debug I/Linphone: Using android >= 8 sound device descriptor.
2020-09-17 14:57:06.055 23614-23614/org.linphone.debug I/Linphone: Sound device information for [General Mobile/GM 9 Pro/sdm660] is: builtin=[yes], delay=[0] ms
2020-09-17 14:57:06.055 23614-23614/org.linphone.debug I/Linphone: [OpenSLES] Using 192 for buffer size value
2020-09-17 14:57:06.055 23614-23614/org.linphone.debug I/Linphone: [OpenSLES] Using 48000 for sample rate value
2020-09-17 14:57:06.056 23614-23614/org.linphone.debug I/Linphone: Card 'openSLES: android sound card' added with capabilities [capture, playback]
2020-09-17 14:57:06.056 23614-23614/org.linphone.debug I/Linphone: SDK version [28] detected
2020-09-17 14:57:06.060 23614-23614/org.linphone.debug I/Linphone: This device (General Mobile/GM 9 Pro/sdm660) declares it has a built-in echo canceller.
2020-09-17 14:57:06.060 23614-23614/org.linphone.debug I/Linphone: No information available for [General Mobile/GM 9 Pro/sdm660],
2020-09-17 14:57:06.060 23614-23614/org.linphone.debug I/Linphone: Using android >= 8 sound device descriptor.
2020-09-17 14:57:06.060 23614-23614/org.linphone.debug I/Linphone: Sound device information for [General Mobile/GM 9 Pro/sdm660] is: builtin=[yes], delay=[0] ms
2020-09-17 14:57:06.060 23614-23614/org.linphone.debug I/Linphone: Card 'ANDROID SND (deprecated): Android Sound card' added with capabilities [capture, playback]
2020-09-17 14:57:06.060 23614-23614/org.linphone.debug I/Linphone: Registering all webcam handlers
2020-09-17 14:57:06.060 23614-23614/org.linphone.debug W/Linphone: [Legacy Capture] Android >= 8.0 detected, disabling legacy capture filter
2020-09-17 14:57:06.060 23614-23614/org.linphone.debug I/Linphone: Webcam StaticImage: Static picture added
2020-09-17 14:57:06.061 23614-23614/org.linphone.debug I/Linphone: MSAndroidDisplay registered.
2020-09-17 14:57:06.061 23614-23614/org.linphone.debug I/Linphone: MSAndroidDisplay (OpenGL ES2) registered (id=80).
2020-09-17 14:57:06.061 23614-23614/org.linphone.debug I/Linphone: ms_factory_init_voip() done
2020-09-17 14:57:06.061 23614-23614/org.linphone.debug I/Linphone: Found Android plugin libmswebrtc.so
2020-09-17 14:57:06.061 23614-23614/org.linphone.debug I/Linphone: Found Android plugin libmsandroidcamera2.so
2020-09-17 14:57:06.061 23614-23614/org.linphone.debug I/Linphone: Loading ms plugins from list
2020-09-17 14:57:06.061 23614-23614/org.linphone.debug I/Linphone: Loading plugin libmswebrtc.so...
2020-09-17 14:57:06.063 23614-23614/org.linphone.debug I/Linphone: libmswebrtc 1.1.1 plugin loaded, iSAC codec version 3.6.0, iLBC codec version 1.1.1
2020-09-17 14:57:06.063 23614-23614/org.linphone.debug I/Linphone: Plugin loaded (libmswebrtc.so)
2020-09-17 14:57:06.063 23614-23614/org.linphone.debug I/Linphone: Loading plugin libmsandroidcamera2.so...
2020-09-17 14:57:06.065 23614-23614/org.linphone.debug I/Linphone: [Camera2 Capture] libmsandroidcamera2 plugin loaded
2020-09-17 14:57:06.065 23614-23614/org.linphone.debug I/Linphone: [Camera2 Capture] Detecting cameras
2020-09-17 14:57:06.067 23614-23614/org.linphone.debug W/Linphone: [Camera2 Capture] No camera detected !
2020-09-17 14:57:06.067 23614-23614/org.linphone.debug I/Linphone: [Legacy Capture] Detecting Android VIDEO cards
2020-09-17 14:57:06.067 23614-23614/org.linphone.debug I/Linphone: [Legacy Capture] getHelperClassGlobalRef (env: 0x77ad6e8460)
2020-09-17 14:57:06.067 23614-23614/org.linphone.debug I/Linphone: [Legacy Capture] Android SDK version found is 28
2020-09-17 14:57:06.055 23614-23614/org.linphone.debug W/.linphone.debug: type=1400 audit(0.0:3716): avc: denied { read } for name="u:object_r:vendor_camera_prop:s0" dev="tmpfs" ino=13590 scontext=u:r:untrusted_app:s0:c108,c256,c512,c768 tcontext=u:object_r:vendor_camera_prop:s0 tclass=file permissive=0
2020-09-17 14:57:06.070 23614-23614/org.linphone.debug E/libc: Access denied finding property "vendor.camera.aux.packagelist"
2020-09-17 14:57:06.070 23614-23614/org.linphone.debug I/chatty: uid=10108(org.linphone.debug) identical 1 line
2020-09-17 14:57:06.071 23614-23614/org.linphone.debug E/libc: Access denied finding property "vendor.camera.aux.packagelist"
2020-09-17 14:57:06.073 23614-23614/org.linphone.debug E/libc: Access denied finding property "vendor.camera.aux.packagelist"
2020-09-17 14:57:06.073 23614-23614/org.linphone.debug E/libc: Access denied finding property "vendor.camera.hal1.packagelist"
2020-09-17 14:57:06.074 23614-23614/org.linphone.debug W/CameraBase: An error occurred while connecting to camera 0: Status(-8): '1: validateClientPermissionsLocked:906: Caller "org.linphone.debug" (PID 10108, UID 23614) cannot open camera "0" without camera permission'
2020-09-17 14:57:06.074 23614-23614/org.linphone.debug E/Linphone: Error: cannot retrieve cameras information (busy ?)java.lang.RuntimeException: Fail to connect to camera service
2020-09-17 14:57:06.075 23614-23614/org.linphone.debug W/System.err: java.lang.RuntimeException: Fail to connect to camera service
2020-09-17 14:57:06.075 23614-23614/org.linphone.debug W/System.err: at android.hardware.Camera.
2020-09-17 14:57:07.827 23614-23614/org.linphone.debug W/Linphone: message [0x779123ef80] has Content-Length [305] and body size [207] which are inconsistent, fixing it.
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: channel [0x779124e440]: found binary data in buffer, will stop logging it now.
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: channel [0x779124e440]: message sent to [UDP://sip.linphone.org:5060], size: [1254] bytes
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: SUBSCRIBE sip:rls@sip.linphone.org SIP/2.0
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Via: SIP/2.0/UDP 176.30.212.43:41559;branch=z9hG4bK.hC-3hIqaA;rport
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: From: sip:305000@90.158.24.66;tag=qvB5d0Lg4
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: To: sip:rls@sip.linphone.org
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: CSeq: 20 SUBSCRIBE
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Call-ID: 7SwMjiDyAH
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Max-Forwards: 70
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Supported: eventlist
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Event: presence
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Expires: 3600
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Content-Type: application/resource-lists+xml
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Content-Length: 207
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Content-Encoding: deflate
2020-09-17 14:57:07.828 23614-23614/org.linphone.debug I/Linphone: Contact: sip:305000@176.30.212.43:41559;app-id=929724111839;pn-type=firebase;pn-timeout=0;pn-tok=c3C6qiLDlOY:APA91bHJx2vyrzdgqN3bCLGY0KG_lLjdQ6DEI2KCIzEnapTsq933StbfJA4n_seVvYtYxBX398XRK8hLKlPLiZALj23PNdrvnwlA7ff66quRzPnXhFdBW8XV-jZA7_1Z0nM-fJd9HuC8;pn-silent=1;transport=udp;+sip.instance="
There is no stacktrace in the logs you attached. To get it use adb logcat on your computer with your device attached. By the way, it seems you didn't granted the CAMERA permission. Maybe it's why it crashes while playing with video settings...
But wouldn't it be a bug? Should I have to give permission before setting it? Maybe then, it should be disabled when the permission is not granted.
I said maybe. Please attach the stacktrace so I can know what is happening.
Sorry it was too long so I attached the file
By the way I tried with the camera permission granted, still crashes.
Yup, that's because it doesn't find the VideoDefinition object matching the size. Which size do you set before it crashes?
it happens with randomly selected sizes. Not a special one.
Can you try with commit cfbfff08637cfc9da0b8de7b12cf86013d315b59 ? It should fix the issue.
In my code I always set it to 720p (you can see I have a log for that "video size changed to: 720p") then I go the video size fragment and select a random size, after this it crashes.
I applied the change you made in setPreferredVideoSize still same. Logs attached. lin_videosize2.txt
Ok thanks, I found the issue. It was in our SDK. Merge request is in progress, will be part of next release.
Hi, when I try to set the video size property outside of the VideoSettingsFragment, the application crashes. However there is no problem in reading the video size property from the same function. Also, when I tried to set the that property by the switch in VideoSettingsFragment it crashes after approximately 10 changes. Do you have any idea about this problem? Is there some other functionality depending on the setPreferredVideoSize method?