tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Resizing crashes Telegram when AquaSnap and/or TidyTabs is installed

Open Qwerty-Space opened this issue 7 years ago • 38 comments

Steps to reproduce

  1. Hover over the border of the window until the resize cursor appears
  2. Click
  3. Crashes

Expected behaviour

Telegram should resize

Actual behaviour

Telegram freezes, and crashes

Configuration

Operating system: Windows 10 Pro 64 bit

Version of Telegram Desktop: 1.1.23

Used theme: Custom

Qwerty-Space avatar Nov 18 '17 17:11 Qwerty-Space

Video of the bug: https://a.doko.moe/lnutbd.mp4

Links to AquaSnap and TidyTabs

Qwerty-Space avatar Nov 18 '17 17:11 Qwerty-Space

Surprisingly, this is still a problem, and still hasn't been addressed.

gdude2002 avatar May 28 '18 18:05 gdude2002

@gdude2002 Can you try the latest alpha version from https://desktop.telegram.org/changelog#alpha-version? It should offer you to send a crash report when you relaunch it after a crash. Please send it and copy "Your Report Tag" from the crash reporting window here. Thanks.

john-preston avatar May 28 '18 19:05 john-preston

@john-preston It does not offer to send a crash report I'm afraid.

gdude2002 avatar May 28 '18 19:05 gdude2002

@gdude2002 Does it show a "Telegram Desktop was not closed properly" window on restart?

I'm afraid I won't be able to fix this, if those software products (TidyTabs / AquaSnap) crash this app in such a hard way that it even can't generate a crash report =(

john-preston avatar May 28 '18 19:05 john-preston

It doesn't - the entire app just freezes up, and I have to kill it myself using the task manager or Windows' crashed process detection thing.

It seems odd that this would affect specifically Telegram, though - I have tons and tons of stuff that works great with both AquaSnap and TidyTabs.

gdude2002 avatar May 28 '18 19:05 gdude2002

@gdude2002 Freezing is not crashing. If it freezes this is another issue. Perhaps there is some sort of deadlock when one of those apps try to resize the window in some way that it tries to avoid ¯_(ツ)_/¯ I'm not sure.

john-preston avatar May 28 '18 19:05 john-preston

Very tricky.

How should I go about debugging this?

gdude2002 avatar May 28 '18 19:05 gdude2002

@gdude2002 When you experience the freeze you can open task explorer, right click the frozen Telegram.exe and press Create dump file.

I guess the dump will be huge, but I don't know what else you can do. I guess it will contain some sensitive data too. Then you can archive it (I hope the size will be reduced greatly) and send it me at https://t.me/preston, at least I'll be able to see the stack trace at the freeze moment.

john-preston avatar May 28 '18 19:05 john-preston

Interestingly, during the time it took to grab the dump file, it unfroze and resized.

I do have the dump file, but it's over 200MiB and my upload speed in this building is 0.5Mbit/s. I'm a developer myself though; is there anything I can locate in it for you?

EDIT: After my third resize, it appears that it's not going unfreeze anytime soon. Hrm.

gdude2002 avatar May 28 '18 19:05 gdude2002

As an addendum, I don't get this issue with just AquaSnap. The issue lies squarely with TidyTabs.

gdude2002 avatar May 28 '18 19:05 gdude2002

@gdude2002 To watch into it you need the debug symbols for that build, so unfortunately I need it on my workstation to see the backtraces.

The fact that it does unfreeze after that makes finding something useful in the dump even less likely, because it clearly isn't a deadlock then.

If you compress (rar, zip) this dump, how much is it?

john-preston avatar May 28 '18 19:05 john-preston

7-zip gives me a much more manageable 55MiB file.

I'll see if I can figure out a way to upload this for you without taking the rest of the network down.

gdude2002 avatar May 28 '18 20:05 gdude2002

@gdude2002 I'm not sure it'll help anything to be honest. Perhaps I need to reproduce your config and try to see what slows it down (if it unfreezes then its just some huge lag), but currently I don't have time for this =(

john-preston avatar May 28 '18 20:05 john-preston

It probably won't surprise you to hear that it's still uploading. :P

I guess there just aren't too many of us using this combination of apps. But I can live without TidyTabs for now.

gdude2002 avatar May 28 '18 21:05 gdude2002

@gdude2002 I just never move Telegram lol.

I do find that AutoHotkey can move it without it crashing.

Qwerty-Space avatar May 29 '18 22:05 Qwerty-Space

@Qwerty-Space Yeah, I can actually move mine, but resizing breaks it. But yeah, I also have mine in a single spot :P

gdude2002 avatar May 30 '18 09:05 gdude2002

I can move mine too. Sorry, I meant that AHK can resize it without it crashing.

Qwerty-Space avatar May 30 '18 19:05 Qwerty-Space

I am facing this issue as well. A workaround which seems to be working for me is to exclude Telegram from TinyTabs.

bigjay517 avatar Jan 28 '19 14:01 bigjay517

I've been having the exact same issue! I run both TidyTabs and Aquasnap, and was wondering why Telegram seems so darned buggy.

Per @bigjay517 , I added Telegram to my TidyTabs exclusion list, and the problem seems to be solved.

jacobslewis avatar Feb 10 '19 16:02 jacobslewis

this bug is still valid?

Aokromes avatar Jan 25 '20 14:01 Aokromes

Definitely still valid. I can create yet another dump file if you want?

Qwerty-Space avatar Jan 25 '20 19:01 Qwerty-Space

this bug still exists :(

HarryGoatleaf avatar May 20 '20 12:05 HarryGoatleaf

This still exists. Can confirm on two of our machines.

dylanroscover avatar Aug 24 '20 20:08 dylanroscover

Came here to confirm that resizing the telegram window either results in a really long freeze most of the time, regardless of any other desktop management software. I have Windows 10 Pro (64-bit) - even on a brand new clean install with nothing else on it, if you click and resize, the whole thing hangs. Sometimes it correctly resizes and resumes, but most times, it will just hang forever "not responding in taskman" and only killing it and reloading it solves the issue. truly bizarre bug.

shayaknyc avatar Oct 12 '20 17:10 shayaknyc

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Apr 12 '21 12:04 stale[bot]

Years later this still happens... I don't dare to resize my screen because it WILL crash my Telegram.

AbelLykens avatar May 13 '21 07:05 AbelLykens

Since the stale bot has closed this, you should probably open a new issue - just remember to point out that this one was closed pre-emptively.

I really hate these stale bots honestly, projects add them with the assumption that the only reason an issue would go stale is that the reporter doesn't follow up - but more often than not it's the project's fault that it goes stale.

gdude2002 avatar May 13 '21 11:05 gdude2002

Since the stale bot has closed this, you should probably open a new issue - just remember to point out that this one was closed pre-emptively.

I really hate these stale bots honestly, projects add them with the assumption that the only reason an issue would go stale is that the reporter doesn't follow up - but more often than not it's the project's fault that it goes stale.

slate bot helps to find already fixed issues still opened, sometimes lack of answer of OP makes ticket to be closed incorrectly, and even less times closed even with answer.

Aokromes avatar May 13 '21 12:05 Aokromes