Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Bug]: Per-bottle dedicated sandboxing causes osu! to freeze upon drag & drop of .osz file

Open JamiKettunen opened this issue 1 year ago • 5 comments

Describe the bug

Per-bottle dedicated sandboxing active, in osu! dragging a .osz beatmap from e.g. https://osu.ppy.sh/beatmapsets inside the game window causes it to freeze as soon as left click is released; I think it gets stuck trying to read the file that wasn't sent over but that's just a wild guess, I didn't do any further debugging other than realized disabling per-bottle sandboxing made the issue disappear.

To Reproduce

  1. Install the game in a bottle, https://osu.ppy.sh/community/forums/topics/1576494 has some form of steps on getting it up and running
  2. Enable per-bottle sanboxing for the osu! bottle and restart the game
  3. Download any song from https://osu.ppy.sh/beatmapsets, this requires an account unfortunately :(
  4. Drag & drop the downloaded .osz file into the game window
  5. The window freezes as soon as left click is released

Package

Flatpak from Flathub

Distribution

Void Linux

Troubleshooting Logs

Version: 2022.8.28-brescia-2
Display:
    X.org: true
    X.org (port): :0
    Wayland: false
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 5.19.7_1
Distro:
    Name: GNOME
    Version: '"42 (Flatpak runtime)"'
Disk:
    Total: 16792690688
    Free: 16792543232
RAM:
    MemTotal: 31.3GiB
    MemAvailable: 20.0GiB
Bottles_envs: null

Display Protocol

X11

Display Backend used by Bottles

X11

Additional context

Interestingly instead of attempting to import a .osz song, importing any .osk skin file from e.g. https://osuskins.net/ doesn't freeze the game and shows a Unable to import skin "..." message in the UI and it continues to work seemingly fine, still fails to import the skin though which I'd expect to be possible (or have drag & drop / clipboard integration at least toggleable in the per-bottle sandboxing settings if possible?)

JamiKettunen avatar Sep 12 '22 19:09 JamiKettunen

Hi, please provide some kind of log

mirkobrombin avatar Sep 12 '22 21:09 mirkobrombin

Hey, flatpak run com.usebottles.bottles only gave me INFO level logs and nothing useful related to the started WINE application itself when the freeze occurs; attempting to debug following https://docs.usebottles.com/utilities/logs-and-debugger doesn't work either with dedicated sandboxing since the started wine debugger runs as a separate thing unable to see the running osu!.exe (and is even under Legacy Wine Tools dropdown nowadays so I have no idea what I should be using instead) :/

Until I get some instructions on how to get logs I'm afraid I can't provide any.

JamiKettunen avatar Sep 12 '22 23:09 JamiKettunen

I can see logs simply by launching the program using the terminal, even with sandboxing

mirkobrombin avatar Sep 13 '22 05:09 mirkobrombin

This is all I get (even after sending SIGTERM to the frozen game and after the window closing):

$ flatpak run com.usebottles.bottles
12:47:15 (INFO) Bottles Started! 
12:47:17 (INFO) Catalog components loaded 
12:47:17 (INFO) Catalog installers loaded 
12:47:17 (INFO) Catalog dependencies loaded 
12:47:17 (INFO) Performing Bottles checks… 
12:47:17 (INFO) Dxvks found:
	- dxvk-1.10.3
 
12:47:17 (INFO) Vkd3ds found:
	- vkd3d-proton-2.6-1-5b73139
 
12:47:17 (INFO) Nvapis found:
	- dxvk-nvapi-v0.5.4
 
12:47:17 (INFO) Latencyflexs found:
	- latencyflex-v0.1.0
 
12:47:17 (INFO) Runners found:
	- sys-wine-7.0
	- soda-7.0-3
	- wine-ge-7-27
 
12:47:18 (INFO) Bottles found:
	- osu
 
12:47:18 (INFO) Library saved 
12:47:20 (INFO) Launching an executable… 
12:47:20 (INFO) Using EasyAntiCheat runtime 
12:47:20 (INFO) Using BattlEye runtime

Checking the Exec= line from the .desktop file I also created running that only gives this:

$ flatpak run --command=bottles-cli com.usebottles.bottles run -p 'osu! (stable)' -b 'osu'
13:10:02 (INFO) Forcing offline mode

JamiKettunen avatar Sep 13 '22 10:09 JamiKettunen

any updated info on how to get more verbose logs when running from either gui or command line (flatpak)?

illtellyoulater avatar Jan 28 '24 10:01 illtellyoulater