Bug 319883 - Messages are sometimes not displayed if multiple contacts send messages before text-ui is opened
Summary: Messages are sometimes not displayed if multiple contacts send messages befor...
Status: CONFIRMED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: text-ui (show other bugs)
Version: git-latest
Platform: Other Linux
: NOR normal
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-15 21:30 UTC by Sven Brauch
Modified: 2021-03-09 07:26 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Brauch 2013-05-15 21:30:28 UTC
I found this issue because I misunderstood 318549.

To reproduce:
Have one contact in telepathy, and two other contacts in another IM. Close text-ui in telepathy. Send a message to the telepathy contact from *both* the other contacts, and only then open text-ui. Sometimes both opened tabs will be empty, sometimes only the second one will be empty, instead of displaying the messages.

The problem can be reproduced on my setup (telepathy from git or 0.6 packages, arch linux x86-64, SSD hard drive*) every time, but on another system (chakra linux, telepathy from packages) I couldn't ever reproduce it.

Changing the theme view to use a QWebPage instead of a KWebPage resolves the problem (see commit dd8ea96d3 in text-ui) but breaks proxy settings, so that doesn't work as a fix.

The issue is caused by the javascript initializing the text view failing to execute, presumably because the web page is for some reason not fully loaded when it gets run or something similar. The error message is:
TypeError: 'undefined' is not an object (evaluating 'coalescedHTML.shouldScroll')

___________
* I'm mentioning this because the bug could be related to race conditions while loading the text web page, which could be related to the loading speed, which could be related to the SSD drive.

Reproducible: Sometimes
Comment 1 Martin Klapetek 2014-04-13 20:00:46 UTC
Confirming, still happens in 0.8.
Comment 2 Miguel Tadeu 2015-01-21 19:29:53 UTC
Also in 0.9
Comment 3 Justin Zobel 2021-03-09 07:26:11 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.