mattermost / mattermost-mobile

Next generation iOS and Android apps for Mattermost in React Native
https://about.mattermost.com/
Apache License 2.0
2.25k stars 1.37k forks source link

Mattermost on iOS: `TaskQueue: Error with task: View` #6070

Closed harmeling closed 2 years ago

harmeling commented 2 years ago

Summary

Starting Mattermost on iOS very shortly shows normal view of the team then shows error message "Unexpected error occurred". I am posting here on mattermost-server, since the origin of the TaskQueue might be server?

Steps to reproduce

mattermost server: 6.4.2 iOS: 15.3.1 (iPhone 13) is not working. Mattermost on macOS (11.6.4) is working fine and I can post and view messages as usual.

Expected behavior

Mattermost app on iPhone should just work.

Observed behavior (that appears unintentional)

On iOS mattermost is not working. Instead after starting it shows the correct view for a split second and then "Unexpected error occurred" with Relaunch button. The detailed error message can be seen on the attached PNG and goes like this:

TaskQueue: Error with task: View
config getter callback for component
`span` must be a function (received 
`undefined`). Make sure to start 
component names with a capital letter.

@32.js:1:290
@126.js:1:690
[...twenty more lines like this, see PNG]

Pushing "Relaunch" button just turns the screen white and the app is stuck.

Possible fixes

No idea!

Bildschirmfoto 2022-03-18 um 19 09 47

amyblais commented 2 years ago

@harmeling Are you on Mattermost mobile app v1.50? @enahum Does this look related to https://github.com/mattermost/mattermost-mobile/pull/6064?

enahum commented 2 years ago

Yes, looks like that channel has. Message with latex thus the issue

harmeling commented 2 years ago

Thank you for looking into this! Yes, we do have Latex in our posts (just started a week ago). Yes, Mattermost mobile app v1.50.0. On the serverside we use nginx and mysql (but that might be irrelevant ;). By the way, opening mattermost in Safari on iOS works.

harmeling commented 2 years ago

Also after switching off latex rendering in the Mattermost system prefs, the error still appears.

Hawkeye1909 commented 2 years ago

Same here on Android with v1.50.0. I installed the beta from #6064 and the error is gone.

amyblais commented 2 years ago

Fix will be available in app stores soon.