Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app crashes when opening any channel/DM #5211

Closed
a-0-dev opened this issue Sep 15, 2023 · 11 comments
Closed

Android app crashes when opening any channel/DM #5211

a-0-dev opened this issue Sep 15, 2023 · 11 comments

Comments

@a-0-dev
Copy link

a-0-dev commented Sep 15, 2023

Description:

Since updating to the latest RocketChat version available in FDroid, opening any direct message or channel crashes the app. Reinstallation, deleting cache and storage and force-closing the app did not help.

Environment Information:

  • Rocket.Chat Server Version: 6.3
  • Rocket.Chat App Version: 4.40.0.47251
  • Device Name: Shift Phone 6mq
  • OS Version: Android 13 / CalyxOS 4.12.0

Steps to reproduce:

  1. Update the app from FDroid
  2. Open RocketChat
  3. Try to open a channel/DM and see that the app closes

Expected behavior:

Correctly open the channel/DM

Actual behavior:

App closes immediately, user sees the home screen of the phone

@diegolmello
Copy link
Member

Can you take and share with us a bug report? https://developer.android.com/studio/debug/bug-report
Since it's F-Droid, we don't track anything. Not even bugs.
Thanks!

@a-0-dev
Copy link
Author

a-0-dev commented Sep 15, 2023

I took a bug report, but since it contains a LOT of data and I'm not quite sure where personal info may appear, I'm reluctant to share it all. I found the following in the bugreport<...>.txt which may be the most interesting to you:

09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: Process: chat.rocket.android, PID: 5210
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: com.facebook.react.common.JavascriptException: TypeError: Cannot read property 'Type' of undefined, js engine: hermes, stack:
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: anonymous@1:4399226
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: loadModuleImplementation@1:129350
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: guardedLoadModule@1:128898
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: metroRequire@1:128526
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: anonymous@1:4397013
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: loadModuleImplementation@1:129350
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: guardedLoadModule@1:128855
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: metroRequire@1:128526
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: useVideoConf@1:4386278
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: HeaderCallButton@1:4737781
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: renderWithHooks@1:200082
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: beginWork$1@1:239681
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: performUnitOfWork@1:225815
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: workLoopSync@1:225672
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: renderRootSync@1:225556
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: performSyncWorkOnRoot@1:222914
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: flushSyncCallbacks@1:190306
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: batchedUpdatesImpl@1:240076
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: batchedUpdates@1:183100
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: _receiveRootNodeIDEvent@1:183378
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: receiveEvent@1:233998
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: __callFunction@1:167235
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: anonymous@1:165719
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: __guard@1:166679
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: callFunctionReturnFlushedQueue@1:165677
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime: 
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:72)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at java.lang.reflect.Method.invoke(Native Method)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at android.os.Handler.handleCallback(Handler.java:942)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at android.os.Handler.dispatchMessage(Handler.java:99)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at android.os.Looper.loopOnce(Looper.java:201)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at android.os.Looper.loop(Looper.java:288)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
09-15 10:04:02.408 10178  5210  5293 E AndroidRuntime:  at java.lang.Thread.run(Thread.java:1012)

If there's anything else you need let me know, I won't delete the files for now :) Thanks!

@Me4Linux
Copy link

Me4Linux commented Sep 18, 2023

I'm experienceing exactly the same behaviour of the client. The only difference in my setup is that I'm using a Google Pixel 6a with GrapheneOS 2023090600 (Android 13).

Edit: also happens with the client installed from F-Droid on LineageOS 19.1 (Android 12).

@Me4Linux
Copy link

Here's what I get:

type: crash
osVersion: google/bluejay/bluejay:13/TQ3A.230805.001/2023090600:user/release-keys
package: chat.rocket.android:47251
process: chat.rocket.android
processUptime: 3223 + 192 ms
installer: com.android.packageinstaller

com.facebook.react.common.JavascriptException: TypeError: Cannot read property 'Type' of undefined, js engine: hermes, stack:
anonymous@1:4399226
loadModuleImplementation@1:129350
guardedLoadModule@1:128898
metroRequire@1:128526
anonymous@1:4397013
loadModuleImplementation@1:129350
guardedLoadModule@1:128855
metroRequire@1:128526
useVideoConf@1:4386278
HeaderCallButton@1:4737781
renderWithHooks@1:200082
beginWork$1@1:239681
performUnitOfWork@1:225815
workLoopSync@1:225672
renderRootSync@1:225556
performSyncWorkOnRoot@1:222914
flushSyncCallbacks@1:190306
batchedUpdatesImpl@1:240076
batchedUpdates@1:183100
_receiveRootNodeIDEvent@1:183378
receiveEvent@1:233998
__callFunction@1:167235
anonymous@1:165719
__guard@1:166679
callFunctionReturnFlushedQueue@1:165677

	at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:72)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
	at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
	at java.lang.Thread.run(Thread.java:1012)

@GleidsonDaniel
Copy link
Contributor

@Me4Linux @a-0-dev
Did you have the video calling functionality activated?

@a-0-dev
Copy link
Author

a-0-dev commented Sep 18, 2023

@GleidsonDaniel it's deactivated server-side for me

@shilin-da
Copy link

Same issue for me on client 4.40 and server 3.8.8. Downgraded client to 4.38.

Did you have the video calling functionality activated?

Yes, we do have https://meet.jit.si/ enabled on server side

@GleidsonDaniel
Copy link
Contributor

GleidsonDaniel commented Sep 18, 2023

Guys the error only occurs in the Fdroid build available in stores, the official build of the app it works normally, and running the foss variant built locally works normally too (The variant that the Fdroid team use to build the app), probably It's the same error that happened a while ago, Fdroid team has a script to remove parts of the code, perhaps an update to the code broke this script, so it's necessary Fdroid team update the script.

In the error report that @Me4Linux sent we can see the source of the error useVideoConf, but as I said, without the code removal that occurs, the app works normally.

@GleidsonDaniel
Copy link
Contributor

@linsui do you know what needs to be updated for the build to work?
Or who can I talk to so that the build can be corrected?

@shilin-da
Copy link

Thanks, @GleidsonDaniel, it looks like there is already an open issue in their tracker: https://gitlab.com/fdroid/fdroiddata/-/issues/3076

@GleidsonDaniel
Copy link
Contributor

I looked at the issue and it is exactly the same problem that occurred previously.
As they already have an issue open and are tracking the error, I will close the issue here, given that the problem is not in our app but in the F-droid build script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants