tchapgouv / tchap-android

A matrix client for Android.
https://play.google.com/store/apps/details?id=fr.gouv.tchap.a
Apache License 2.0
21 stars 7 forks source link

Android 5.1.1 users cannot use Tchap 2.4.2 #734

Closed JDixmier closed 1 year ago

JDixmier commented 2 years ago

User message:

[tchap] arrêt dès le lancement crash call stack --------------------------------- Element Build : 40204021 Element Version : 2.4.2 [40204021] (G-dc462ebb-2022-08-29 15:54:43 +0200) SDK Version : 1.4.27 (dc462ebb) Phone : SM-J320FN (J320FNXXU0AQE3 5.1.1 REL) Memory statuses usedSize 29 MB freeSize 2 MB totalSize 31 MB Thread: main, Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.gouv.tchap.a/im.vector.app.features.home.room.detail.RoomDetailActivity}: java.lang.reflect.InvocationTargetException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3150) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3260) at android.app.ActivityThread.access$1000(ActivityThread.java:218) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1734) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6934) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.airbnb.mvrx.MavericksFactory.create(MavericksFactory.kt:12) at com.airbnb.mvrx.MavericksViewModelProvider.get$default(MavericksViewModelProvider.kt:34) at im.vector.app.features.home.room.detail.TimelineFragment$special$$inlined$fragmentViewModel$default$3.invoke(MavericksExtensions.kt:10) at im.vector.app.features.home.room.detail.TimelineFragment$special$$inlined$fragmentViewModel$default$3.invoke(MavericksExtensions.kt:1) at com.airbnb.mvrx.DefaultViewModelDelegateFactory$createLazyViewModel$1.invoke(ViewModelDelegateProvider.kt:2) at com.airbnb.mvrx.DefaultViewModelDelegateFactory$createLazyViewModel$1.invoke(ViewModelDelegateProvider.kt:1) at com.airbnb.mvrx.lifecycleAwareLazy.getValue(lifecycleAwareLazy.kt:5) at com.airbnb.mvrx.lifecycleAwareLazy$initializeWhenCreated$1.onCreate(lifecycleAwareLazy.kt:1) at androidx.lifecycle.FullLifecycleObserverAdapter.onStateChanged(FullLifecycleObserverAdapter.java:8) at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:3) at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:45) at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:5) at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:2) at androidx.fragment.app.Fragment.performCreate(Fragment.java:9) at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:5) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:28) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:122) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:9) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:14) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:10) at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:12) at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:1) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1264) at android.app.Activity.performStart(Activity.java:6647) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3113) ... 10 more Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "opus_projection_encoder_ctl" referenced by "libopusenc.so"... at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System.loadLibrary(System.java:988) at im.vector.opusencoder.OggOpusEncoder.(OggOpusEncoder.kt:1) at im.vector.app.features.voice.VoiceRecorderL.(VoiceRecorderL.kt:4) at im.vector.app.features.voice.VoiceRecorderProvider.provideVoiceRecorder(VoiceRecorderProvider.kt:5) at im.vector.app.features.home.room.detail.composer.AudioMessageHelper.(AudioMessageHelper.kt:4) at im.vector.app.DaggerVectorApplication_HiltComponents_SingletonC$MavericksViewModelCImpl$SwitchingProvider$88.create(DaggerVectorApplication_HiltComponents_SingletonC.java:5) at im.vector.app.core.di.HiltMavericksViewModelFactory.create(HiltMavericksViewModelFactory.kt:6) at im.vector.app.features.home.room.detail.composer.MessageComposerViewModel$Companion.create(MessageComposerViewModel.kt) at im.vector.app.features.home.room.detail.composer.MessageComposerViewModel$Companion.create(MessageComposerViewModel.kt:1) ... 37 more

User-Agent: "Tchap/2.4.2 (Linux; U; Android 5.1.1; SM-J320FN Build/LMY47; Flavour GooglePlay; MatrixAndroidSdk2 1.4.27)" Version: "2.4.2 [40204021] (G-dc462ebb-2022-08-29 15:54:43 +0200)" app_language: "fr_FR" branch_name: "main" can_contact: "false" default_app_language: "fr_FR" device: "SM-J320FN" locale: "fr_FR" matrix_sdk_version: "1.4.27 (dc462ebb)" multi_window: "OFF" olm_version: "3.2.12 - olm version (3.2.11) - 92769ce-2022-05-30 13:55:34 -0400" os: "5.1.1 (API 22) J320FNXXU0AQE3-REL" server_version: "undefined" theme: "light" verbose_log: "OFF"


User message:

[tchap] Depuis cet apres-midi l'application se lance mais plante dès que je selectionne une conversation crash call stack --------------------------------- Element Build : 40204021 Element Version : 2.4.2 [40204021] (G-dc462ebb-2022-08-29 15:54:43 +0200) SDK Version : 1.4.27 (dc462ebb) Phone : SM-J320F (J320FXXU0AQL1 5.1.1 REL) Memory statuses usedSize 34 MB freeSize 10 MB totalSize 45 MB Thread: main, Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.gouv.tchap.a/im.vector.app.features.home.room.detail.RoomDetailActivity}: java.lang.reflect.InvocationTargetException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3160) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3275) at android.app.ActivityThread.access$1000(ActivityThread.java:218) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1744) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:7007) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.airbnb.mvrx.MavericksFactory.create(MavericksFactory.kt:12) at com.airbnb.mvrx.MavericksViewModelProvider.get$default(MavericksViewModelProvider.kt:34) at im.vector.app.features.home.room.detail.TimelineFragment$special$$inlined$fragmentViewModel$default$3.invoke(MavericksExtensions.kt:10) at im.vector.app.features.home.room.detail.TimelineFragment$special$$inlined$fragmentViewModel$default$3.invoke(MavericksExtensions.kt:1) at com.airbnb.mvrx.DefaultViewModelDelegateFactory$createLazyViewModel$1.invoke(ViewModelDelegateProvider.kt:2) at com.airbnb.mvrx.DefaultViewModelDelegateFactory$createLazyViewModel$1.invoke(ViewModelDelegateProvider.kt:1) at com.airbnb.mvrx.lifecycleAwareLazy.getValue(lifecycleAwareLazy.kt:5) at com.airbnb.mvrx.lifecycleAwareLazy$initializeWhenCreated$1.onCreate(lifecycleAwareLazy.kt:1) at androidx.lifecycle.FullLifecycleObserverAdapter.onStateChanged(FullLifecycleObserverAdapter.java:8) at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:3) at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:45) at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:5) at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:2) at androidx.fragment.app.Fragment.performCreate(Fragment.java:9) at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:5) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:28) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:122) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:9) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:14) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:10) at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:12) at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:1) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1264) at android.app.Activity.performStart(Activity.java:6647) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3123) ... 10 more Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "opus_projection_encoder_ctl" referenced by "libopusenc.so"... at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System.loadLibrary(System.java:988) at im.vector.opusencoder.OggOpusEncoder.(OggOpusEncoder.kt:1) at im.vector.app.features.voice.VoiceRecorderL.(VoiceRecorderL.kt:4) at im.vector.app.features.voice.VoiceRecorderProvider.provideVoiceRecorder(VoiceRecorderProvider.kt:5) at im.vector.app.features.home.room.detail.composer.AudioMessageHelper.(AudioMessageHelper.kt:4) at im.vector.app.DaggerVectorApplication_HiltComponents_SingletonC$MavericksViewModelCImpl$SwitchingProvider$88.create(DaggerVectorApplication_HiltComponents_SingletonC.java:5) at im.vector.app.core.di.HiltMavericksViewModelFactory.create(HiltMavericksViewModelFactory.kt:6) at im.vector.app.features.home.room.detail.composer.MessageComposerViewModel$Companion.create(MessageComposerViewModel.kt) at im.vector.app.features.home.room.detail.composer.MessageComposerViewModel$Companion.create(MessageComposerViewModel.kt:1) ... 37 more

User-Agent: "Tchap/2.4.2 (Linux; U; Android 5.1.1; SM-J320F Build/LMY47; Flavour GooglePlay; MatrixAndroidSdk2 1.4.27)" Version: "2.4.2 [40204021] (G-dc462ebb-2022-08-29 15:54:43 +0200)" app_language: "fr_FR" branch_name: "main" can_contact: "false" default_app_language: "fr_FR" device: "SM-J320F" locale: "fr_FR" matrix_sdk_version: "1.4.27 (dc462ebb)" multi_window: "OFF" olm_version: "3.2.12 - olm version (3.2.11) - 92769ce-2022-05-30 13:55:34 -0400" os: "5.1.1 (API 22) J320FXXU0AQL1-REL" server_version: "undefined" theme: "system" verbose_log: "OFF"

JDixmier commented 2 years ago

Pb également constaté sur Android 5.0.2

User message:

[tchap] app crashing when trying to open a message crash call stack --------------------------------- Element Build : 40204021 Element Version : 2.4.2 [40204021] (G-dc462ebb-2022-08-29 15:54:43 +0200) SDK Version : 1.4.27 (dc462ebb) Phone : SM-G850F (G850FXXU2COE7 5.0.2 REL) Memory statuses usedSize 39 MB freeSize 11 MB totalSize 50 MB Thread: main, Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.gouv.tchap.a/im.vector.app.features.home.room.detail.RoomDetailActivity}: java.lang.reflect.InvocationTargetException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2790) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2855) at android.app.ActivityThread.access$900(ActivityThread.java:181) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1474) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6117) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.airbnb.mvrx.MavericksFactory.create(MavericksFactory.kt:12) at com.airbnb.mvrx.MavericksViewModelProvider.get$default(MavericksViewModelProvider.kt:34) at im.vector.app.features.home.room.detail.TimelineFragment$special$$inlined$fragmentViewModel$default$3.invoke(MavericksExtensions.kt:10) at im.vector.app.features.home.room.detail.TimelineFragment$special$$inlined$fragmentViewModel$default$3.invoke(MavericksExtensions.kt:1) at com.airbnb.mvrx.DefaultViewModelDelegateFactory$createLazyViewModel$1.invoke(ViewModelDelegateProvider.kt:2) at com.airbnb.mvrx.DefaultViewModelDelegateFactory$createLazyViewModel$1.invoke(ViewModelDelegateProvider.kt:1) at com.airbnb.mvrx.lifecycleAwareLazy.getValue(lifecycleAwareLazy.kt:5) at com.airbnb.mvrx.lifecycleAwareLazy$initializeWhenCreated$1.onCreate(lifecycleAwareLazy.kt:1) at androidx.lifecycle.FullLifecycleObserverAdapter.onStateChanged(FullLifecycleObserverAdapter.java:8) at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:3) at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:45) at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:5) at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:2) at androidx.fragment.app.Fragment.performCreate(Fragment.java:9) at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:5) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:28) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:122) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:9) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:14) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:10) at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:12) at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:1) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1234) at android.app.Activity.performStart(Activity.java:6412) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2753) ... 10 more Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libopusenc.so" needed by "libopuscodec.so"; caused by cannot locate symbol "opus_projection_encoder_ctl" referenced by "libopusenc.so"... at java.lang.Runtime.loadLibrary(Runtime.java:371) at java.lang.System.loadLibrary(System.java:989) at im.vector.opusencoder.OggOpusEncoder.(OggOpusEncoder.kt:1) at im.vector.app.features.voice.VoiceRecorderL.(VoiceRecorderL.kt:4) at im.vector.app.features.voice.VoiceRecorderProvider.provideVoiceRecorder(VoiceRecorderProvider.kt:5) at im.vector.app.features.home.room.detail.composer.AudioMessageHelper.(AudioMessageHelper.kt:4) at im.vector.app.DaggerVectorApplication_HiltComponents_SingletonC$MavericksViewModelCImpl$SwitchingProvider$88.create(DaggerVectorApplication_HiltComponents_SingletonC.java:5) at im.vector.app.core.di.HiltMavericksViewModelFactory.create(HiltMavericksViewModelFactory.kt:6) at im.vector.app.features.home.room.detail.composer.MessageComposerViewModel$Companion.create(MessageComposerViewModel.kt) at im.vector.app.features.home.room.detail.composer.MessageComposerViewModel$Companion.create(MessageComposerViewModel.kt:1) ... 37 more

User-Agent: "Tchap/2.4.2 (Linux; U; Android 5.0.2; SM-G850F Build/LRX22; Flavour GooglePlay; MatrixAndroidSdk2 1.4.27)" Version: "2.4.2 [40204021] (G-dc462ebb-2022-08-29 15:54:43 +0200)" app_language: "en_IE" branch_name: "main" can_contact: "false" default_app_language: "en_IE" device: "SM-G850F" locale: "en_IE" matrix_sdk_version: "1.4.27 (dc462ebb)" multi_window: "OFF" olm_version: "3.2.12 - olm version (3.2.11) - 92769ce-2022-05-30 13:55:34 -0400" os: "5.0.2 (API 21) G850FXXU2COE7-REL" server_version: "undefined" theme: "system" verbose_log: "OFF"

giomfo commented 2 years ago

@Florian14 can you provide here in which version of Element-Android this issue should be fixed

Florian14 commented 2 years ago

@Florian14 can you provide here in which version of Element-Android this issue should be fixed

This commit in Element-Android-v1.4.36

Try to detect devices that lack Opus encoder support, use bundled libopus library for those. (https://github.com/vector-im/element-android/issues/7010)

giomfo commented 2 years ago

Should be fixed by https://github.com/tchapgouv/tchap-android/issues/753