Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Win32 App shows 'black screen' when focused after being out of focus for a few minutes

Open Instinct64 opened this issue 10 years ago • 21 comments

Your Rocket.Chat version: 1.2.0 (win32)

Summary: When the rocket chat desktop app is left minimised or out of focus connection to the server is lost. If re-focused within a minute or so you see the status message at the top of the client "Connection failed, retrying in X seconds". If left minimised long enough the web area is just black and never recovers.

This issue has been witnessed on two seperate PC's running Windows 10.

Reproduction Steps:

  1. Launch Rocket Chat on Win32 & Connect to a Server
  2. Minimise the Rocket Chat Client to taskbar
  3. Maximise the Rocket Chat Client from the taskbar after 10 minutes.
  4. Observe the issue.

rc-connect-1 rc-connect-2 rc-connect-3

Instinct64 avatar Apr 21 '16 11:04 Instinct64

I have also notice this issue on one PC. The PC is a Win 10 64bit.

The PC has dual graphic cards
GTX 960 and a onboardIntel graphic card.

lunitic avatar Apr 21 '16 11:04 lunitic

This has been observed on Windows 10 64-bit and on machines with both just on-board (Intel), and on-board as well as discrete (Nvidia GTX960M) graphics.

Instinct64 avatar Apr 21 '16 12:04 Instinct64

Reported on the repo for the app itself:

https://github.com/RocketChat/Rocket.Chat.Electron/issues/150

We have been eagerly waiting for a fix.

stevenhfotofix avatar Apr 21 '16 15:04 stevenhfotofix

This has been posted multiple times on the Electron project (Over two weeks ago), for some reason the development on that has stagnated a bit.

I actually spent the time to build a release for 1.3.1 myself and this issue went away for me and all the people in our company, I followed the docs for how to build a release. I'm not entirely sure why the issue went away but maybe it will work for you guys as well :)

twhiting avatar Apr 21 '16 17:04 twhiting

If you or your company is experiencing this problem, and have not made a comment yet - but waiting for its resolution. Please add a comment !

Open source projects like Electron and Rocket.Chat depends on community feedback to gauge priority of work.

Sing-Li avatar Apr 21 '16 17:04 Sing-Li

I have the same issue, but it also happens during active use. There is no real pattern to this. Sometimes I can use it for 10 minutes, sometimes it doesn't even survive 1 minute after the application reload. I did not try the new version, just the current release.

ImperatorAD avatar Apr 21 '16 17:04 ImperatorAD

Our company is staying on 1.1.0 - since that one has no problems at this time. The problem was introduced in 1.2.0, and continues in 1.3.0 and 1.3.1

stevenhfotofix avatar Apr 21 '16 17:04 stevenhfotofix

Main ticket on this issue is RocketChat/Rocket.Chat.Electron#173 and MANY OTHER similar tickets on the Rocket.Chat.Electron project repository.

Sing-Li avatar Apr 21 '16 19:04 Sing-Li

It happens to me on two different machines and some colleagues as well, all on Windows 10 64 bit. I can't reproduce it as it seems to happen randomly.

danielcandea avatar Apr 22 '16 08:04 danielcandea

We have the same issue (posting because if Sing-Li's comment) - and I've almost convinced everyone to drop that Sl*ck thing... :( I'm trying to use twhiting's approach in following the "build your own" instructions as to appease the relevant people where I work - possibly with killing the spellcheck libraries off (if i figure out how to do that)

MrDragon avatar Apr 25 '16 14:04 MrDragon

@MrDragon I didn't disable spellcheck, just built my own build and its working great for us. Still wish we could get an official fix though its been weeks since the last release

twhiting avatar Apr 25 '16 15:04 twhiting

Sorry, the spellcheck idea was from a different ticket. But yes, I did manage to fumble my way through creating my own installer and, well, if I continue the sentence I'll jinx it. But so far I'd say I owe you a beverage for your tip ;)

MrDragon avatar Apr 25 '16 17:04 MrDragon

@MrDragon so removing the spellcheck stuff seems to have helped?

The other ticket might have been this one: https://github.com/RocketChat/Rocket.Chat.Electron/issues/173

geekgonecrazy avatar Apr 25 '16 17:04 geekgonecrazy

Very likely to be a problem of Chromium compositor GPU optimization.

Can we please report some information on the Video Card hardware and Video driver version on the system(s) that have this problem. Thanks.

Sing-Li avatar Apr 25 '16 17:04 Sing-Li

Nvidia Quadro K620 - Driver version: 10.18.13.5382

stevenhfotofix avatar Apr 25 '16 17:04 stevenhfotofix

@geekgonecrazy Don't have to disable spellcheck. Seems building a build myself fixed the issue, looks like it worked for @MrDragon as well

twhiting avatar Apr 26 '16 04:04 twhiting

Good news. Please help test this version with GPU optimization disabled.

Please uninstall existing version, install this one, and run it for a few days on problematic system(s).

Please let us know if it solves the problem on those systems.

installer for test solution to black squares problem

Sing-Li avatar Apr 27 '16 14:04 Sing-Li

@twhiting I think which ever computer was used to build our official build had the spellcheck module left over from a previous npm install. Because I noticed building my self I also didn't have this problem.

geekgonecrazy avatar Apr 28 '16 17:04 geekgonecrazy

@geekgonecrazy glad we found a fix :+1:

twhiting avatar Apr 28 '16 18:04 twhiting

Going to close this issue in favor of: https://github.com/RocketChat/Rocket.Chat.Electron/issues/150 I think this is resolved, but lets consolidate so we can update one issue.

Thanks!

geekgonecrazy avatar Apr 28 '16 19:04 geekgonecrazy