Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

Bottles Crashed Last Time

Open Sandoz15x opened this issue 10 months ago • 4 comments

[('/home/USER/.var/app/com.usebottles.bottles/data/bottles/bottles/Acrobat/reg77c0000.tmp', '/home/USER/.var/app/com.usebottles.bottles/data/bottles/templates/196935b7-6830-40cb-a2e1-783f7c58bd9d/reg77c0000.tmp', "[Errno 2] No such file or directory: '/home/USER/.var/app/com.usebottles.bottles/data/bottles/bottles/Acrobat/reg77c0000.tmp'")] File "/app/share/bottles/bottles/backend/utils/threading.py", line 73, in __target result = self.task_func(*args, **kwargs)

File "/app/share/bottles/bottles/backend/managers/manager.py", line 2029, in create_bottle TemplateManager.new(environment, config) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^

File "/app/share/bottles/bottles/backend/managers/template.py", line 61, in new shutil.copytree( ~~~~~~~~~~~~~~~^ bottle, _path, symlinks=True, ignore=shutil.ignore_patterns(*ignored) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^

File "/usr/lib/python3.13/shutil.py", line 593, in copytree return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks, ignore=ignore, copy_function=copy_function, ignore_dangling_symlinks=ignore_dangling_symlinks, dirs_exist_ok=dirs_exist_ok)

File "/usr/lib/python3.13/shutil.py", line 547, in _copytree raise Error(errors)

Sandoz15x avatar Feb 01 '26 12:02 Sandoz15x

Getting this as well, not sure what the cause is.

rahhing avatar Feb 04 '26 12:02 rahhing

Same here. Not sure how to fix...

dmascite avatar Feb 15 '26 05:02 dmascite

The reg*.tmp files are created by wineserver when saving registry data (see wine/server/registry.c : save_branch(). It does this periodically.

It looks like the bottle prefix is still being written to while a cached template is being created from it. By the time the directory copy reaches the .tmp file, wineserver has deleted it.

There are quite a few issues similar to this:

  • #3724
  • #3370
  • #3357
  • #2076
  • #1667

That last one is quite interesting because there was an attempt to fix it (6f53a38) by adding a try-catch around copytree() which suppressed the exception. This was later undone by 647b228 which specifically tries to suppress FileNotFoundError instead of the shutil.Error that copytree() throws.

It isn't just template creation that is breaking. Installing dependencies also breaks due to the .tmp files:

  • #3660
  • #3440
  • #3354
  • #3082

I wonder if there's a way of flushing the registry changes then halting further writes during the copy.

Graham--M avatar Feb 22 '26 17:02 Graham--M

Should be now fixed in v63

mirkobrombin avatar Mar 23 '26 16:03 mirkobrombin