Skip to content
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

glulx games "running" but not accessible #32

Open
climatebrad opened this issue Apr 15, 2021 · 11 comments
Open

glulx games "running" but not accessible #32

climatebrad opened this issue Apr 15, 2021 · 11 comments
Labels

Comments

@climatebrad
Copy link

on M1 MacBook Air - Big Sur 11.1

When I open Spatterlight some games (looks like only glulx games, e.g. Blue Lacuna / King of Shreds and Patches) show up in the Library and are listed in the Window menu but are inaccessible. I can't delete them from the library because Spatterlight thinks they're running. The Wand (Wand.ulx) works fine.

@angstsmurf
Copy link
Owner

angstsmurf commented Apr 15, 2021

Thanks for reporting this!

Inaccessible as in showing no game window? Do you get an alert when you double click on them in the library?

The games you mention work fine in 0.7.7 here. Did they work in Spatterlight for you at any time before this happened? Did Spatterlight crash?

It sound like it might be a broken saved application state. Does it work if you delete the folder ~/Library/Saved Application State/net.ccxvii.spatterlight.savedState?

If you don't mind deleting you entire library including customised theme settings, you can also try deleting the files in ~/Library/Group Containers/6U7YY3724Y.group.net.ccxvii.spatterlight, and if you don't have any autosaves you want to keep, you can also as a last resort delete ~/Library/Application Support/Spatterlight.

@climatebrad
Copy link
Author

climatebrad commented Apr 18, 2021 via email

@angstsmurf
Copy link
Owner

Glad to hear it worked out.

I'd really like to find a way to reproduce this. Were you upgrading from an older version when this happened? Did you move windows between screens or spaces or enter fullscreen?

@climatebrad
Copy link
Author

climatebrad commented Apr 19, 2021 via email

@angstsmurf
Copy link
Owner

Fair enough. I wonder what a user friendly way to handle this would be. Some kind of force-quit command, perhaps?

@climatebrad
Copy link
Author

climatebrad commented Apr 19, 2021 via email

@angstsmurf
Copy link
Owner

Done. That was surprisingly easy.

@angstsmurf
Copy link
Owner

angstsmurf commented Apr 22, 2021

I'm reopening this as I managed to reproduce it (though only once, I couldn't re-reproduce it.)

This happened when opening a game by double clicking on a gblorb file in Finder, which opened Spatterlight and "started" the game in an invisible window. Deleting the autosave files seemed not to help. After restarting Spatterlight a couple of times, it opened in a tiny window which could be enlarged to make it playable. After that, it worked, and I could no longer find a way to reproduce the bug.

@angstsmurf angstsmurf reopened this Apr 22, 2021
angstsmurf added a commit that referenced this issue Apr 22, 2021
Hopefully this helps with #32, but as I still don't have a way to reproduce it,
it is only a shot in the dark.
angstsmurf added a commit that referenced this issue Apr 22, 2021
Hopefully this helps with #32, but as I still don't have a way to reproduce it,
it is only a shot in the dark.
angstsmurf added a commit that referenced this issue Apr 22, 2021
Hopefully this helps with #32, but as I still don't have a way to reproduce it,
it is only a shot in the dark.
angstsmurf added a commit that referenced this issue Apr 22, 2021
Hopefully this helps with #32, but as I still don't have a way to reproduce it,
it is only a shot in the dark.
@angstsmurf
Copy link
Owner

I have fixed one cause of this, which was that the code that autorestored file streams got confused when a game was saved with the game file on one disk and restored with it on another. But I saw it autorestore to a blank window once during an UI test after the fix, so there might still be other causes of this remaining.

@angstsmurf angstsmurf added the bug label Sep 28, 2021
@angstsmurf
Copy link
Owner

Another potential cause of this fixed: Autosave files were not properly deleted when resetting a game. Closing this now until I see it happening again.

@angstsmurf
Copy link
Owner

A similar problem was reported in the forum.

https://intfiction.org/t/spatterlight-1-1-released/62378/7

@angstsmurf angstsmurf reopened this Nov 14, 2023
angstsmurf added a commit that referenced this issue Dec 8, 2023
Remove the kludge that tries to make the games open on top, in the hope
that it may help #32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants