http://bugs.winehq.org/show_bug.cgi?id=58397
Bug ID: 58397
Summary: Missing power_supply class attributes for
NtPowerInformation blocks threads and causes fps
stutter
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ntdll
Assignee: wine-bugs(a)winehq.org
Reporter: rtdiasmendes(a)gmail.com
Distribution: Mint
Created attachment 78805
--> http://bugs.winehq.org/attachment.cgi?id=78805
logs mentioned in the bug Description
Affected Application:
- Tainted Grail: Fall of Avalon
Observed Symptoms:
- Frametime spikes from ~5ms to ~100ms occurring at ~1Hz intervals.
- GPU frame dispatch (via DXVK) is delayed due to thread blocking in Wine’s
battery status polling logic.
Performance Analysis (see attached logs):
- strace shows constant, repeated attempts to read nonexistent files in
/sys/class/power_supply/BAT1/
- perf stat reveals ~8,270 openat() syscalls in 10 second window (on game
title screen).
- perf record/report shows significant thread time consumed inside
NtPowerInformation-related logic in ntdll.
Root Cause:
- In dlls/ntdll/unix/system.c, the function fill_battery_state() (Linux
version) hardcodes the use of attributes: "charge_now" "charge_full" and
"current_now".
- These attributes are not universally present in /sys/class/power_supply/. On
some systems, particularly those using energy-based reporting (µWh), the
ABI-compliant alternatives are: "energy_now", "energy_full" and "power_now".
- Since Wine looks only for the "charge_*" files and fails to return expected
information, the game loops the query constantly which results in openat()
being used in a tight polling loop - blocking threads and causing intermittent
CPU stalls that propagate to the GPU rendering pipeline.
Solution 1:
- Verify what attributes are present in the power_supply class.
- Implement logic with supplied attributes.
Solution 2:
- Attempt to read the already-implemented files.
- Fallback to "energy_*" if those are not present.
I gather solution 1 has a more consistent impact across different systems,
while solution 2 is more lightweight on systems with "charge_*" and heavier on
others.
Further reading:
- https://docs.kernel.org/power/power_supply_class.html
- https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-power
- https://github.com/torvalds/linux/blob/master/include/linux/power_supply.h
-
https://github.com/torvalds/linux/blob/master/drivers/power/supply/power_su…
Note:
Attribute "scope", while implemented in the kernel, is undocumented in the
power_supply_class docs. Will later check if the rest of the documentation is
up to date and raise the appropriate issue upstream. Until then, do not assume
it correctly reflects the kernel implementation.
Disclaimer:
This issue was identified and reproduced using Proton-GE, Proton (Steam
Runtime), Soda and Flatpak's build. I am reporting it here for visibility and
discussion since it appears to originate from WineHQ’s upstream implementation
of NtPowerInformation.
Out-of-scope commentary:
While Wine's behavior of querying /sys/class/power_supply/ on every
NtPowerInformation() call correctly emulates the Windows API semantics, it has
unintended performance implications on Linux. This is due to the fact that
retrieving battery information from sysfs involves real filesystem I/O,
including frequent failed lookups on systems that expose energy_* instead of
charge_* attributes.
Therefore, applications may call NtPowerInformation() without prioritizing
caching or proper fallback logic as they expect the operation to have a
lower-cost then it does on Linux - causing significant and unnecessary
performance degradation.
Will raise this for an enchancement in the proper channels.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58392
Bug ID: 58392
Summary: Can't display background and characters in MapleStory
World.
Product: Wine
Version: 10.9
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: s9209122222(a)gmail.com
Distribution: ---
If I upgrade to WINE10.9, the game can't display its background and characters.
I have to downgrade to WINE10.8 to make it work again.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=46552
Bug ID: 46552
Summary: Crossfire doesn't install
Product: Wine
Version: 4.0-rc7
Hardware: x86-64
URL: http://crossfire.z8games.com/download.html
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: luca.finizio.mgbx(a)hotmail.it
Distribution: Mint
Created attachment 63423
--> https://bugs.winehq.org/attachment.cgi?id=63423
console output
I already reported a bug about Crossfire EU (you can find it here
https://bugs.winehq.org/show_bug.cgi?id=45920), but now it merged with
Crossfire NA and the new link for download is
http://crossfire.z8games.com/download.html
The .exe file is different than before, but it doesn't install yet; I don't
know if the problem is the same or not. I attached my console output. You can
reproduce the bug just by downloading the file and trying to install.
I kept my terminal open for more than 3 hours beacuse the process is "running"
and if I close the terminal it says that a process is still running and closing
the terminal will kill it. Therefore I don't know if my console output is
complete or not. If I can help in some way, just tell me! :)
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56783
Bug ID: 56783
Summary: MySims doesn't render the character creation screen
Product: Wine
Version: 9.10
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: d3d
Assignee: wine-bugs(a)winehq.org
Reporter: hibbsncc1701(a)gmail.com
Distribution: ---
Created attachment 76584
--> https://bugs.winehq.org/attachment.cgi?id=76584
Character creation black screen
When starting a new game, the game will first display a few 2D images detailing
the game's plot. Afterwards the player will be taken to the character creation
screen for them to create their sim. Under wine-9.10 this screen is completely
black minus the in-game UI elements.
(Also in wine-9.10 this screen doesn't show any text. See also: Bug #56782.)
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56782
Bug ID: 56782
Summary: MySims does not display text.
Product: Wine
Version: 9.10
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: hibbsncc1701(a)gmail.com
Distribution: ---
Created attachment 76583
--> https://bugs.winehq.org/attachment.cgi?id=76583
Clean prefix console log.
As the summary says, the game does not display any text. Menus, dialogs,
in-game, etc.
Installing core fonts does nothing.
Console log attached.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58395
Bug ID: 58395
Summary: SimCity 2000 Network Edition doesn't allow starting a
game.
Product: Wine
Version: 10.10
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: dplay
Assignee: wine-bugs(a)winehq.org
Reporter: hibbsncc1701(a)gmail.com
Distribution: ---
Created attachment 78802
--> http://bugs.winehq.org/attachment.cgi?id=78802
Internet TCP/IP Connection For DirectPlay console log.
When using a clean prefix in Wine 10.10, attempting to start a new game in
SimCity 2000 Network Edition doesn't work.
Console log complains that there are no dplay service providers registered,
despite the Connection Method dialog showing multiple dplay transports to use.
Selecting the "Internet TCP/IP Connection For DirectPlay" or "Serial" option
causes the game to spawn it's server process which then fails after displaying
the error dialog: "Failed to initialize DirectPlay." Exiting the server app
causes a segfault.
Selecting the "Internet" option causes the the game to spawn it's server
process which then locks up after throwing a seh error in the console.
Requiring it to be killed manually.
Selecting any other option causes the same behavior as the "Internet TCP/IP
Connection For DirectPlay", with additional error messages for unavailable
networks. (I don't have an IPX or Modem connection to test with.)
Console logs attached.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54336
Bug ID: 54336
Summary: Wow64 compatibility breaks on newer 64-bit glibc
releases
Product: Wine
Version: 8.0-rc4
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: ruanformigoni(a)gmail.com
Distribution: ---
Newer versions of 64-bit glibc break current Wow64 compatibility
implementation.
For a new vm of fedora 36:
$ ./wine-ge-7-35-continuous-x86_64.AppImage --version
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit
glibc.x86_64 version is 2.35-20.fc36
glibc.i686 is not installed.
--
For a new vm of fedora 37:
$ /wine-ge-7-35-continuous-x86_64.AppImage --version
/tmp/.mount_wine-gEI9DJM/bin/wine: No such file or directory
glibc.x86_64 version is 2.36-9.fc37
glibc.i686 is not installed (installing fixes it).
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58107
Bug ID: 58107
Summary: PlayOnline Viewer: Minimised window restores behaving
as if it was inactive.
Product: Wine
Version: 10.5
Hardware: x86-64
URL: https://web.archive.org/web/20210810150839/http://www.
playonline.com/ff11eu/download/media/install_win.html
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: winex11.drv
Assignee: wine-bugs(a)winehq.org
Reporter: chiitoo(a)gentoo.org
Regression SHA1: 3ae66c75cf443c0be403d9fe4e4da3c19b3ad9a8
Distribution: Gentoo
After 3ae66c75cf4 [1], PlayOnline Viewer sometimes restores from a minimised
state behaving as if it was not the active window.
Normally, when the PlayOnline Viewer window is visible but not the active
window, it will lower its FPS to ~5 and the mouse cursor will not change over
it, nor do the buttons respond to the cursor until the window is activated.
Once it is the active window, the FPS for me will be above 40 depending on what
is on the screen, and the mouse cursor is a custom cursor from the application.
With the mentioned commit, the application window acts as if it is not the
active window, with the reduced FPS and non-custom cursor, but it responds to
clicks on buttons and such as usual when it is the active window.
This does not happen 100% of the time, sometimes taking a handful or
minimise/restore actions.
Thank you!
1.
https://gitlab.winehq.org/wine/wine/-/commit/3ae66c75cf443c0be403d9fe4e4da3…
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58391
Bug ID: 58391
Summary: Exact Audio Copy: Unable to interface with DVD drive
on WoW64
Product: Wine
Version: 10.9
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: sterophonick(a)gmail.com
Distribution: ---
Created attachment 78798
--> http://bugs.winehq.org/attachment.cgi?id=78798
Log without flags.
Earlier today, Arch Linux migrated over to only shipping WoW64 with its WINE
builds, which appears to have borked EAC's ability to interface with the host's
disk drive. A dropdown that once printed an identifier for the drive, now
prints only "Adapter: 1 ID: 0" and no ability to otherwise control the
program or drive. None of this is the case in Arch's build of 10.8, where Win32
is available.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57974
Bug ID: 57974
Summary: Palette colors are wrong in 16-bit Myst
Product: Wine
Version: 10.3
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: alexhenrie24(a)gmail.com
Distribution: ---
Created attachment 78232
--> https://bugs.winehq.org/attachment.cgi?id=78232
Screenshot
Steps to reproduce:
1. Extract myst_win3x_win.7z
2. In winecfg, create drive D: as a CD drive from the Myst/cd directory
3. Run `sudo sysctl vm.mmap_min_addr=0`
4. In one terminal, run `Xephyr :1 -ac -screen 800x600x8`
5. In another terminal, run `DISPLAY=:1 openbox`
6. In a third terminal, run `DISPLAY=:1 wine Myst/win3.1/MYST/MYST.EXE`
$ sha256sum myst_win3x_win.7z
562d3a3d829648352b94ab0d828290f17f90406d34218ebe3ffd0ac012cb12e3
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.