Skip to content

[Bug]: Unclear if related: no executables will run - creating new Bottle throws 'Template validation failed' error #3852

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

Open
DucDuNord opened this issue Apr 15, 2025 · 1 comment

Comments

@DucDuNord
Copy link

Describe the bug

Bug/Problem

Since reinstalling OpenSuse and, subsequently, Bottles I have not been able to use the application at all, due to a range of errors which I suspect are related.

An overview of the symptoms

Note: Bottles was launched from the console which displayed the error messages shown below. No error messages of any kind were displayed by the GUI.

  1. If a new Bottle is created, an attempt will be made to install fonts and set keys, but the following statement will appear repeatedly, which makes me wonder if anything was actually installed:

002c:err:virtual:map_image_into_view failed to set 60000020 protection on L"\??\C:\windows\system32\ntdll.dll" section .text, noexec filesystem?

Eventually the following error messages appear:

22:17:39 (INFO) New template application created
22:17:39 (ERROR) Template 01c5ee34-188e-40f2-a6e2-103239c5e65b is missing essential path: drive_c/ProgramData
22:17:39 (ERROR) Template 01c5ee34-188e-40f2-a6e2-103239c5e65b is too small!
22:17:39 (ERROR) Template validation failed, will retry with next bottle.
22:17:39 (ERROR) Config file not exists
Traceback (most recent call last):
File "/app/share/bottles/bottles/backend/models/config.py", line 183, in load
raise FileNotFoundError("Config file not exists")
FileNotFoundError: Config file not exists

A bottle is created, and appears in the list, but it only has a 'Windows' folder with three subfolders containd containing dlls (in system32 and syswos64) and fonts (in Fonts). No other folders are created.

  1. If the user tries to launch any executable file (exe, msi) from the newly created bottle, the following error messages are displayed but the application never launches:

002c:err:virtual:map_image_into_view failed to set 60000020 protection on L"\??\C:\windows\system32\ntdll.dll" section .text, noexec filesystem?
002c:err:virtual:virtual_setup_exception stack overflow 1344 bytes addr 0x6ffffff9868c stack 0x20ac0 (0x20000-0x21000-0x220000)
0024:err:virtual:map_image_into_view failed to set 60000020 protection on L"\??\C:\windows\system32\ntdll.dll" section .text, noexec filesystem?
0024:err:virtual:virtual_setup_exception stack overflow 1344 bytes addr 0x6ffffff9868c stack 0x20ac0 (0x20000-0x21000-0x220000)

  1. If the user tries to use the Command Line (under Tools), the following error message is displayed:

/bin/sh: line 1: /app/bin/easyterm.py: cannot execute: required file not found

  1. If the user tries to use any of the legacy Wine tools the same 'protection' and 'stack overflow' messages appear. None of the tools work:

02c:err:virtual:map_image_into_view failed to set 60000020 protection on L"\??\C:\windows\system32\ntdll.dll" section .text, noexec filesystem?
002c:err:virtual:virtual_setup_exception stack overflow 1344 bytes addr 0x6ffffff9868c stack 0x20ac0 (0x20000-0x21000-0x220000)
0024:err:virtual:map_image_into_view failed to set 60000020 protection on L"\??\C:\windows\system32\ntdll.dll" section .text, noexec filesystem?
0024:err:virtual:virtual_setup_exception stack overflow 1344 bytes addr 0x6ffffff9868c stack 0x20ac0 (0x20000-0x21000-0x220000)

To Reproduce

Install Bottles from Flathub, create a bottle using default settings, and subsequently attempt to launch an executable.

Package

Flatpak from Flathub

Distribution

OpenSuse Tumbleweed

Debugging Information

Official Package: true
Version: '51.21'
DE/WM: plasmawayland
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
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: 6.14.1-1-default
Disk:
    Total: 16781905920
    Free: 16781742080
RAM:
    MemTotal: 31.3GiB
    MemAvailable: 24.9GiB
Bottles_envs: null

Troubleshooting Logs

Not sure where to find the logs, but happy to produce them.

Additional context

I used an older install of Bottles (a few months old, perhaps) until Monday. Everything worked as expected. I could create bottles and run software.

@DucDuNord
Copy link
Author

Since a recent reinstall of bottles the problems I described above no longer occur. I do not know what their cause was, however. I am still using OpenSuse Tumbleweed; Bottles was reinstalled using the command flatpak install flathub com.usebottles.bottles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant