[SRU] telegram-desktop's window never shows up (differently from Debian's sid)

Bug #1680943 reported by Rogério Theodoro de Brito
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
telegram-desktop (Debian)
Fix Released
Unknown
telegram-desktop (Ubuntu)
Fix Released
Undecided
Unassigned
Zesty
Fix Released
High
Unassigned

Bug Description

[Impact]
People having that environment variable defined can't start telegram

[Test Case]
try to start after exporting "QT_QPA_PLATFORMTHEME"

[Regression Potential]
none, telegram is not using it, and then undefining it is the safer and best option (this is already part of telegram in artful release

[Other Info]
When I start telegram-desktop, the window never shows up, differently from the same package in my Debian testing/sid computer.

In both computers I am using MATE as the desktop, but the versions differ (Debian is using 1.16, IIRC, while ubuntu is using 1.18).

I can provide any extra information that is deemed necessary.

Thanks,

Rogério.

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: telegram-desktop 1.0.14-1ubuntu1
ProcVersionSignature: Ubuntu 4.10.0-15.17-generic 4.10.5
Uname: Linux 4.10.0-15-generic x86_64
ApportVersion: 2.20.4-0ubuntu3
Architecture: amd64
CurrentDesktop: MATE
Date: Fri Apr 7 16:30:39 2017
InstallationDate: Installed on 2016-12-11 (117 days ago)
InstallationMedia: Ubuntu-MATE 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
SourcePackage: telegram-desktop
UpgradeStatus: Upgraded to zesty on 2017-01-31 (66 days ago)

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote :
Revision history for this message
Graham Inggs (ginggs) wrote :

Please run telegram-desktop from a terminal and paste any error messages.

This could be related to https://bugs.debian.org/859172

Is libappindicator3-1 installed? Please paste the output of:
$ apt-cache policy libappindicator3-1

If it is not installed, try installing it:
$ sudo apt install libappindicator3-1
...and run telegram-desktop again.

Revision history for this message
Graham Inggs (ginggs) wrote :

Also, please paste the output of:
$ apt-cache policy libappindicator1

Another thing to try is:
$ QT_QPA_PLATFORMTHEME= telegram-desktop

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote : Re: [Bug 1680943] Re: telegram-desktop's window never shows up (differently from Debian's sid)

Dear Graham,

On Fri, Apr 7, 2017 at 6:33 PM, Graham Inggs <email address hidden> wrote:
> Please run telegram-desktop from a terminal and paste any error
> messages.
>
> This could be related to https://bugs.debian.org/859172
>
> Is libappindicator3-1 installed? Please paste the output of:
> $ apt-cache policy libappindicator3-1

It is installed:

- - - - - - - - - - - - - - -
$ apt-cache policy libappindicator3-1
libappindicator3-1:
  Installed: 12.10.1+17.04.20170215-0ubuntu1
  Candidate: 12.10.1+17.04.20170215-0ubuntu1
  Version table:
 *** 12.10.1+17.04.20170215-0ubuntu1 500
        500 http://br.archive.ubuntu.com/ubuntu zesty/main amd64 Packages
        100 /var/lib/dpkg/status
- - - - - - - - - - - - - - -

Regarding the messages that it shows on the console, here they are:

- - - - - - - - - - - - - - -
$ telegram-desktop
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "atk-bridge"

(telegram-desktop:9478): GLib-GObject-WARNING **: cannot register
existing type 'GdkDisplayManager'

(telegram-desktop:9478): GLib-CRITICAL **: g_once_init_leave:
assertion 'result != 0' failed

(telegram-desktop:9478): GLib-GObject-CRITICAL **: g_object_new:
assertion 'G_TYPE_IS_OBJECT (object_type)' failed
- - - - - - - - - - - - - - -

And sits there. Nothing else is shown.

On the other hand, when I try to override the choice of environment
with QT's variable, then it works with the splash screen, with the
tray icon and everything else it is supposed to do, like in Debian.

Thanks,

Rogério.

--
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote : Re: telegram-desktop's window never shows up (differently from Debian's sid)

Dear Graham,

On Fri, Apr 7, 2017 at 6:33 PM, Graham Inggs <email address hidden> wrote:
> Please run telegram-desktop from a terminal and paste any error
> messages.
>
> This could be related to https://bugs.debian.org/859172
>
> Is libappindicator3-1 installed? Please paste the output of:
> $ apt-cache policy libappindicator3-1

It is installed:

- - - - - - - - - - - - - - -
$ apt-cache policy libappindicator3-1
libappindicator3-1:
  Installed: 12.10.1+17.04.20170215-0ubuntu1
  Candidate: 12.10.1+17.04.20170215-0ubuntu1
  Version table:
 *** 12.10.1+17.04.20170215-0ubuntu1 500
        500 http://br.archive.ubuntu.com/ubuntu zesty/main amd64 Packages
        100 /var/lib/dpkg/status
- - - - - - - - - - - - - - -

Regarding the messages that it shows on the console, here they are:

- - - - - - - - - - - - - - -
$ telegram-desktop
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "atk-bridge"

(telegram-desktop:9478): GLib-GObject-WARNING **: cannot register
existing type 'GdkDisplayManager'

(telegram-desktop:9478): GLib-CRITICAL **: g_once_init_leave:
assertion 'result != 0' failed

(telegram-desktop:9478): GLib-GObject-CRITICAL **: g_object_new:
assertion 'G_TYPE_IS_OBJECT (object_type)' failed
- - - - - - - - - - - - - - -

And sits there. Nothing else is shown.

On the other hand, when I try to override the choice of environment
with QT's variable, then it works with the splash screen, with the
tray icon and everything else it is supposed to do, like in Debian.

Thanks,

Rogério.

--
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Revision history for this message
Graham Inggs (ginggs) wrote :

Confirming I see the same on one amd64 machine running 17.04 but not on another.
(I don't see the "atk-bridge" message)

(telegram-desktop:9478): GLib-GObject-WARNING **: cannot register
existing type 'GdkDisplayManager'

(telegram-desktop:9478): GLib-CRITICAL **: g_once_init_leave:
assertion 'result != 0' failed

(telegram-desktop:9478): GLib-GObject-CRITICAL **: g_object_new:
assertion 'G_TYPE_IS_OBJECT (object_type)' failed

worksaround:
$ QT_QPA_PLATFORMTHEME= telegram-desktop

Changed in telegram-desktop (Ubuntu):
status: New → Confirmed
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Can you please try version 1.0.29 (upcoming into zesty in an hour or two)

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

it works in my zesty amd64 vm

Revision history for this message
Graham Inggs (ginggs) wrote :

Do you have appmenu-qt5 installed?
I've just removed it and telegram-desktop started working.

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote : Re: [Bug 1680943] Re: telegram-desktop's window never shows up (differently from Debian's sid)

Dear Graham,

On Wed, Apr 12, 2017 at 9:31 AM, Graham Inggs <email address hidden> wrote:
> Do you have appmenu-qt5 installed?
> I've just removed it and telegram-desktop started working.

No, I don't have it.

BTW, regarding the assistive technologies messages, I removed the
corresponding packages. I may install them a bit later to test if they
make any difference.

BTW, I am not using any indicator applet at the moment. I may also
test with them, just for test purposes (but I'm not using them on
Debian also).

Thanks,

--
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Revision history for this message
Graham Inggs (ginggs) wrote : Re: telegram-desktop's window never shows up (differently from Debian's sid)

Just to be clear, you say this works for you?
QT_QPA_PLATFORMTHEME= telegram-desktop

What is the output of:
echo $QT_QPA_PLATFORMTHEME

?

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote : Re: [Bug 1680943] Re: telegram-desktop's window never shows up (differently from Debian's sid)

Hi, Graham.

On Wed, Apr 12, 2017 at 10:35 AM, Graham Inggs <email address hidden> wrote:
> Just to be clear, you say this works for you?
> QT_QPA_PLATFORMTHEME= telegram-desktop

Yes, this works.

> What is the output of:
> echo $QT_QPA_PLATFORMTHEME
>
> ?

It contains the string "gtk2" (without the quotes).

Thanks,

--
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Revision history for this message
Graham Inggs (ginggs) wrote : Re: telegram-desktop's window never shows up (differently from Debian's sid)

> It contains the string "gtk2" (without the quotes).

Do you know where this is being set?

The appmenu-qt5 package shipped /etc/profile.d/appmenu-qt5.sh with the contents:
export QT_QPA_PLATFORMTHEME=appmenu-qt5

Please try:
grep -r 'QT_QPA_PLATFORMTHEME' /etc/profile.d/

Revision history for this message
Graham Inggs (ginggs) wrote :

Package ubuntu-mate-default-settings ships /etc/X11/Xsession.d/99mate-environment which contains (among other things):

# QT apps to use GTK styling
export QT_QPA_PLATFORMTHEME=gtk2

Revision history for this message
Graham Inggs (ginggs) wrote :

Hi Rogério

Please try telegram-desktop from my PPA:
https://launchpad.net/~ginggs/+archive/ubuntu/testing/

Regards
Graham

Changed in telegram-desktop (Debian):
status: Unknown → New
Revision history for this message
Unit 193 (unit193) wrote :

Since Rogério hasn't responded, I tested that about a week ago on Xubuntu (we ship /etc/X11/Xsession.d/56xubuntu-session which sets the same value) and system installed telegram launched as expected.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package telegram-desktop - 1.1.0-1

---------------
telegram-desktop (1.1.0-1) unstable; urgency=medium

  * New upstream release
    - Telegram Calls in desktop application and other improvements
  * Refresh patches
    - Fixed hung on startup in Unity or MATE environment (LP: #1680943)
    - Changed optimization level from -Ofast to -O2

 -- Nicholas Guriev <email address hidden> Mon, 15 May 2017 13:38:09 +0300

Changed in telegram-desktop (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote :

Can this be uploaded to zesty, please?

Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote :

For one reason or another, I did not receive LocutusOfBorg's messages... Strange... I only found out about them coming here to the bug log.

Anyway, I grabbed telegram-desktop and the voip library from the next release and it works fine on my system.

Having it uploaded to zesty would make this work for the potentially large fraction of telegram users that install from the official repositories.

As a use case, I can easily install that on both of my parents computers.

Thanks,

Rogério.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :
Changed in telegram-desktop (Ubuntu Zesty):
importance: Undecided → High
Revision history for this message
Graham Inggs (ginggs) wrote :

Weird, I didn't receive Locutus' recent message (#20) either.

Changed in telegram-desktop (Debian):
status: New → Fix Released
Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote :

LocutusOfBorg, it works perfectly and as expected.

Thanks,

Rogério.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Ok, sponsored in zesty unapproved queue

description: updated
summary: - telegram-desktop's window never shows up (differently from Debian's sid)
+ [SRU] telegram-desktop's window never shows up (differently from
+ Debian's sid)
Changed in telegram-desktop (Ubuntu Zesty):
status: New → Fix Committed
Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote :

Super thanks!

Revision history for this message
Andy Whitcroft (apw) wrote : Please test proposed package

Hello Rogério, or anyone else affected,

Accepted telegram-desktop into zesty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/telegram-desktop/1.0.29-1ubuntu1.17.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-zesty to verification-done-zesty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-zesty. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed verification-needed-zesty
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

works for me!

tags: added: verification-done-zesty
removed: verification-needed-zesty
Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote : Re: [Bug 1680943] Re: [SRU] telegram-desktop's window never shows up (differently from Debian's sid)

Dear Andy,

On Tue, Jul 4, 2017 at 4:35 AM, Andy Whitcroft <email address hidden> wrote:
> Hello Rogério, or anyone else affected,
(...)

The telegram-desktop package works 100% as expected and fixes all the
problems that I have experienced so far.

Thank you so much to everybody that has helped with this issue.

Rogério Brito.

--
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package telegram-desktop - 1.0.29-1ubuntu1.17.04.1

---------------
telegram-desktop (1.0.29-1ubuntu1.17.04.1) zesty; urgency=medium

  * Fix crash on startup when QT_QPA_PLATFORMTHEME is defined
    (LP: #1680943)

 -- Gianfranco Costamagna <email address hidden> Tue, 23 May 2017 11:21:39 +0200

Changed in telegram-desktop (Ubuntu Zesty):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for telegram-desktop has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.