Skip to content

Version 2.50 game can be launched multiple times and run in background (Steam Deck) #2115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mwhesotech opened this issue Dec 1, 2022 · 11 comments
Labels
bug:confirmed Something isn't working. medium-priority

Comments

@mwhesotech
Copy link

Describe the bug

In Game Mode with Steam Deck:

When I start a game (tested with Witcher 3 from gog.com) from the HeroicGamesLauncher start screen with the Y key,
nothing seems to happen (for about 30 seconds) until the game starts.

If I press the Y key several times, the game also starts several times.
And at some point a message appears saying xx is already started.

You cannot see that the game is already started, because is runs behind the HeroicGamesLauncher.
(I have selected the minimize after start option in the HGL settings)

Workaround:
When I click the game, open the details page and start the game from there with a touch click, everything works as expected.

In Version 2.4.X all this worked without problems. And the start was a lot faster ca. 10 sec. to about 30-40 sec. in Version 2.5.

Add logs

no logs

Steps to reproduce

  1. Start HeroicGamesLauncher from Steam (Steam Deck Game Mode)
  2. Select the game with the builtin gamepad buttons (Witcher 3 in my case)
  3. Press Y to start the game

Expected behavior

  • The game is only started once.
  • HGL shows that the game is launched and doesn't allow a second lauch.
  • HGL is minimized / hidden after I click start as in Version 2.4.X

Screenshots

No response

System Information

  • SteamOS on Steam Deck in Game Mode
  • Heroic Version 2.50

Additional information

No response

@flavioislima
Copy link
Member

Tested here and thats true, although for me the launch of the witcher 3 took only 4 seconds (it is installed on the SSD). But in the meantime, it is possible to launch the game again so we should disable the input after launching.

@flavioislima flavioislima added bug:confirmed Something isn't working. medium-priority labels Dec 1, 2022
@flavioislima
Copy link
Member

@arielj @wbrtm maybe something for you guys to take a look at when you have the time.

@wbrtm
Copy link
Contributor

wbrtm commented Dec 1, 2022

As I am unable to reproduce: can someone test if clicking the play button in desktop mode library view (not game page) does have the same bug/results? Alternatively right click -> play should do the same.

@mwhesotech
Copy link
Author

In desktop mode it is the same.

@arielj
Copy link
Collaborator

arielj commented Dec 2, 2022

This started with this change https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2045/files#diff-438ee3761ea4339bf45ec2b1f10f5581dd13538338f97f9472ef681c198543fcR484

There are 2 issues:

  • that code is only checking if the game supports cloud saves and it's triggered even if the user disables cloud saves
  • since the first command is syncing the cloud saves, the actual command to launch the game takes some time to start, so in the mean time the game is not playing but it's also in a state that can't be canceled (because it's not yet playing to kill the process)

I'm making a workaround PR for now, but I think we'll have to have a new state for a game that is syncing cloud saves, so we can display that properly in the UI.

@arielj
Copy link
Collaborator

arielj commented Dec 8, 2022

@mwhesotech can you confirm if this got fixed in Heroic 2.5.1?

@mwhesotech
Copy link
Author

@arielj yes the mutiple lunch problem is fixed in 2.5.1. But the second problem: "cloud sync even if disabled" is not fixed.

@arielj
Copy link
Collaborator

arielj commented Dec 8, 2022

Can you share both heroic logs and the game logs?

@mwhesotech
Copy link
Author

I tested it again and it seems to be working.
game.log
gogdl-2022-12-08T06_11_48.959Z.log
heroic-2022-12-08T06_11_48.959Z.log

@arielj
Copy link
Collaborator

arielj commented Dec 8, 2022

on those logs I can't see anything about it trying to do sync saves, are you sure that cloud sync even if disabled is a problem? I mean, how did you notice that is not fixed before?

or maybe I misunderstood the last message and you are saying that now it's working correctly (ie: not syncing the saved), in that case I think we can close this issue?

@mwhesotech
Copy link
Author

It's working now correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:confirmed Something isn't working. medium-priority
Projects
None yet
Development

No branches or pull requests

4 participants