Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Performance issue on emoji keyboard's recent tab

Open BP602 opened this issue 11 years ago • 14 comments

I'm getting huge lag on this tab, no apps open other than the screen recorder, and I get the same behavior without it : https://pontet.eu/cloud/index.php/s/LuNviRH6mhuLCWT (Too big for a gif) The old emoji keyboard was very responsive, even more than swiftkey's. And my phone responds well to other pretty demanding apps. TS contacts did notice lag but nothing nearly as serious.

Log : https://gist.github.com/anonymous/eb35ed7221ad3754a50d

BP602 avatar May 22 '15 21:05 BP602

Wow, yeah there's definitely something wrong there. Unfortunately, none of my devices have that kind of lag (same OS, different manufacturer). Will look into it. If you have Android studio and are feeling adventurous, in the CPU tab there's a "Start Method Tracing" button. If you can get a method trace from that device, that would go a long way in diagnosing.

mcginty avatar May 22 '15 21:05 mcginty

Sure, I already have the project setup. One thing i noticed tough is that swiftkey doesn't add the just typed emojis to the recent tab, TS does...

BP602 avatar May 22 '15 21:05 BP602

@mcginty Is there a way to do this without uninstalling the app and changing keys?

BP602 avatar May 22 '15 22:05 BP602

If you are rooted, Titanium Backup is your friend. Backup first before testing.

To speed up testing, you can switch between different versions quickly with Appdowngrader (requires root): https://play.google.com/store/apps/details?id=com.pyler.appdowngrader&hl=en

As long as you know what you're doing (don't downgrade to a version wirth a different database structure) this will work well.

johanw666 avatar May 23 '15 06:05 johanw666

Well, there were database changes in the last version : 9c2f14dade14349b31d9c266dc2bba2b574da9b6 But i guess that should be ok if I only go for Master and higher than 2.16. What's the advantage of Titanium Backup over simply exporting messages in TS, does it backup keys?

BP602 avatar May 23 '15 08:05 BP602

Here are the traces : https://pontet.eu/cloud/index.php/s/PmmveQQJNjJJ6mh https://pontet.eu/cloud/index.php/s/1z1H5tmmXP50EHw

BP602 avatar May 23 '15 16:05 BP602

Wow, it looks like Jackson's ObjectMapper and JSON stuff is taking an incredibly long time, which is in turn delaying the FragmentTransaction from completing.

screen shot 2015-05-23 at 2 57 18 pm

mcginty avatar May 23 '15 21:05 mcginty

"What's the advantage of Titanium Backup over simply exporting messages in TS, does it backup keys?"

Yes, it backups everything. The plaintext export only exports messages as SMS - when you read them in they show up in green instead of blue.

johanw666 avatar May 24 '15 17:05 johanw666

@johanw666 Using titanium backup with TextSecure will seriously fuck up your TS install, break communication with all your contacts, and require you to reinstall TS from scratch. I don't recommend it.

moxie0 avatar May 26 '15 00:05 moxie0

@moxie0 AFAIK you should re-initiate secure sessions if you have sent or received encrypted messages since your last backup - since the batch of available session keys has changed by this that is to be expexted. I assume these were the same problems the removed encrypted backup option had, and why it isn't coming back anytime soon.

If you use the setup (mostly) for testing - do your testing, backup, install new version, restore - with no messaging in between - it should work.

BTW, I used TB to get TS working on a tablet: backup old install on phone and store the backup, install on the phone using a temporary simcard, make new backup, transfer new backup to tablet, install TS on tablet (from apk), restore new backup on tablet, restore old backup on phone. All worked perfect, but I did not receive or sent any messages while I was doing this.

johanw666 avatar May 26 '15 05:05 johanw666

I had to factory reset my device to upgrade to android 5.1 and I can't reproduce this issue now.

BP602 avatar May 27 '15 16:05 BP602

thanks for checking back in @5boro. @mcginty this seems like something that won't happen again, I'm thinking close, hbu?

rhodey avatar Jun 05 '15 00:06 rhodey

Eh, let's leave open to async-itize the JSON stuff, but keep it low priority unless others report experiencing it.

mcginty avatar Jun 05 '15 00:06 mcginty

GitHub Issue Cleanup: See #7598 for more information.

automated-signal avatar Apr 02 '18 21:04 automated-signal