Open DJIronic opened 1 year ago
Thanks, opened https://mattermost.atlassian.net/browse/MM-51338.
Same issues on:
Same on iOS, and also web application (e.g. Firefox).
Server-side is mostly idle, no slow SQL queries, plenty of CPU and RAM available.
Firefox profiling info: https://profiler.firefox.com/public/nk7zwdmsewdw65y10v7xhwpaqkfzsv9yf50dhkr/network-chart/?globalTrackOrder=01&thread=2&v=9
Same issue. Android, iOS same. The app is freaking slow, unusable.
I can only concur. The v1 app was better, but had some of the same issues. Since v2 the situation has deteriorated a lot... The Android app is quite unusable most of the time.
Since multi-server support was completed, the application has become terribly slow.
It doesn't all depend on the fact that there are many channels or many messages, even clicking on a link in a message takes 10-20 seconds.
Just sanity check. Are you facing the same kind of issues on the Community server? (https://community.mattermost.com)
I just want to rule out any issue related to the environment (server, connection speed, etc...).
@larkox Added community server. At first it seemed that it is much faster (though way less channels & direct messages are none basically), but now it is even worse that I added multiple servers. The app freezes completely when changing between servers and a force quit is required for it to work again.
Nevertheless, the channels load a little bit faster on Community server and in general it is more fluid than my own server. I don't know if this is because of the way less channels or not...
Would you be willing to share the app logs with me, in case I see anything "out of the ordinary" on them? You can send them to me by direct message on the community server at https://community.mattermost.com/core/messages/@daniel.espino-garcia
Just sanity check. Are you facing the same kind of issues on the Community server? (https://community.mattermost.com)
I just want to rule out any issue related to the environment (server, connection speed, etc...).
I originally meant what I wrote for a self-hosted mattermost server. As a user, I feel that the mobile app is the source of the problem. A couple of examples that seem to be extremely slow for no reason:
Not constantly slow, but very often.
When the mattermost app did not yet support multi servers, it was perfectly fast. I already needed multi server support, and I solved this by installing the mattermost beta app, and mattermost beta suffered from this slowdown even then, so I wrote that I link this slowdown to multi server support.
The app is hanging. Sometimes the app is so unresponsive that the android system offers to close it because it is not responding (ANR).
It’s the same experience on iOS. I would say the app is mostly unusable. I have only one server setup on the device.
Same problem here, mobile app (Android) is completely unusable. For example, editing not working at all, "save" button simply disappears.
Le Max 2 6/128, Android 13.
Same here, sometimes app freezes for minutes, sometimes it freezes for good.
There are many performance issues, not only on Android. For example when I send a hundreds emoticons in one message, it totally kills mattermost desktop client on the target account. Basically a DoS with emoticons.
When i edit a message in Android app, I can write text etc, but there is no "save" button and even the "X" button does not work. After 5-10 minutes, the button appears and app starts working again.
Overall, currently unusable.
Samsung Galaxy A13
For example when I send a hundreds emoticons in one message, it totally kills mattermost desktop client on the target account. Basically a DoS with emoticons.
@gryffus custom emojis with animations or does not really matter if they are custom or built in?
Hi there, I was able to recorda video of the issue I was describring. Here it is: https://photos.app.goo.gl/pvZBDd9XB5uMRbzQ8
Also now, I have a different issues.
1) App just crashes completely when writing a longer message.
2) App is unable to open images in popup, I need to restart the app, click on the image (preview will not load), download the image then view it in gallery.
I reinstalled my phone completely and this new set of issues appear.
i concur as well, with the app running on my flagship android phone. it is not sluggish but freezes a lot. i really advise against installing this mobile app.
Compared to the app, the mobile website is a lot more usable...
@enahum The default, builtin ones
@DJIronic Re: the video
Seems like this doesn't happen always. Have you found any way to reproduce this reliably? Have you checked the logs of the app to see if there is anything out of the ordinary around the time it freezes?
Same issue was closed few days ago #7098
App for iOS is unusable here too. We have 130 users using okay but on latest apps it's impossible to use.
Last server version, last iOS version, last Mattermost App version installed, running on iPhone 13.
Using the desktop app or browser versions is okay, the mobile is impossible.
The thing that I noted is one coworker stills have a 1.X version that runs smoothly, very fast like web use. It started a couple versions ago when the app was redesigned, I remember just after the redesign was still okay, but some time after it started to take 20s to send a message or to open a channel.
Yep, v2.6.0 messed up again. 2.5.1 have some updates that works perfect.
Downgrade to 1.5.2 seems an effective workaround. The current version is preposterously slow on my Xperia 10 2.
The slowness is so egregious I'm struggling to see how this issue has persisted so long without much serious attention: it takes 6s to send a message, or 15 to switch channels. Please can we have some attention dedicated to repairing basic functionality instead of adding random new features?
FWIW 2.6.0 seems to run fine on my Google Nexus 6a
One interesting thing is that some of the failure modes suggest more than simple slowness. Why does the "SAVE" button vanish for about a minute any time you click the edit button? What process does the app have to do between opening the edit UI and making the save button visible that takes so long (why doesn't the same UI update that opens the editor UI also spawn the save button?).
The regular "stack oveflow" popups are presumably some non-performance-related bug? Something something tail recursion failure? :D
Typing a message quickly and clicking "send" will send a truncated version of the message and sometimes not clear the textbox. This suggests there's some issue with UI inputs not being processed in order (surely no amount of bad performance should exhibit this behaviour: it can occur only if there's a race condition between the keyboard inputs and the button press?).
Typing a message quickly and clicking "send" will send a truncated version of the message and sometimes not clear the textbox.
I've seen the same here. Besides performance issues that have become a lot better here though, things like these are really annoying. The app feels unfinished and like it's not really getting the attention it deserves.
Same issue with performance on iOS and iPhone 13 Pro.
Hey, I would like to take up this issue. Would like to try to profile the Performance and also check for memory Leaks. I've been working on React Native for a while now.
@vaishnav-197 go for it
Hey, I would like to take up this issue. Would like to try to profile the Performance and also check for memory Leaks. I've been working on React Native for a while now.
We all really appreciate your effort!
I'm not familiar with mattermost development at all, but I am familiar with git and development in general. Maybe with git bisect it would be quite easy to find the commit or commits that cause the slowdown, at least it might be easier in the first round than starting to profile.
Working on it @amyblais
When profiling the memory as well as the CPU usage, could find the app using around 0.5GB of memory, and CPU usage was found to be normal. The fps was capped around ~55. I've been running both the app and the server locally ( I've multiple server connections running and tested out messaging in channels nad all). Is there anything I should look into particularly?
In my case, it takes an unreasonable amount of time to navigate while viewing a private channel. Tapping on a post to reply to it takes ~6 seconds to begin the transition to the single post view. Navigating back to the channel view takes ~3 seconds. It takes about ~2 seconds to register a long tap on a post to get its menu of options. It takes ~2 seconds to dismiss that options menu. It takes ~3 seconds to navigate away from the channel to the channel list. Attempting to exit the app takes ~6 seconds before I get the "tap back again to exit" message.
Android 13 Samsung Fold 4 Mattermost Android 2.8.0 Mattermost Server 7.5.1
In my case, it takes an unreasonable amount of time to navigate while viewing a private channel. Tapping on a post to reply to it takes ~6 seconds to begin the transition to the single post view. Navigating back to the channel view takes ~3 seconds. It takes about ~2 seconds to register a long tap on a post to get its menu of options. It takes ~2 seconds to dismiss that options menu. It takes ~3 seconds to navigate away from the channel to the channel list. Attempting to exit the app takes ~6 seconds before I get the "tap back again to exit" message.
Android 13 Samsung Fold 4 Mattermost Android 2.8.0 Mattermost Server 7.5.1
I'll look into it. 👍
I'm experiencing the same problem. After 2-4 weeks, the app becomes almost unusable.
I'm using:
Android 13 and 14 Samsung S23+ Mattermost Android 2.9.1 Mattermost server version 8.1.4
My colleagues who use another android devices or iPhones with iOS are also facing the same issue. Reinstalling the app or deleting the data always helps.
Summary
The app si overall slow even on high end device.
It often tooks more then 3 seconds to send a message. I write the message, then clicking to send button is doing nothing, then the message dissappear from the write windows and then after like another 2 seconds it appears as sent.
Often the app also freezes on the channel list screen when switching channels, the only fix is to restart the app.
Also, I am having issue when I send a message, it will send, but also stay in the writing window, so I need to clear it first before writing a new message.
Also uploading media files even on high speed 500/500Mbit connection (server on gbit with only handful of users) will freeze/crash the app or just take ages to even send a photo.
Environment Information
Steps to reproduce
Just use the app, write messages, those issues appear time to time like 5 times a day.
It is more noticible on 4G/5G (so higher ping/slower) connections.
Expected behavior
Not applicable.
Observed behavior (that appears unintentional)
The issue is it does not happen all the time, so its hard for me to record the screen, but when the message duplication shows, I will do my best to screenshot it.
Possible fixes
No idea. Sorry.