https://bugs.winehq.org/show_bug.cgi?id=54746
Bug ID: 54746
Summary: ddraw:ddrawmodes - testcooperativelevels_normal()
sometimes gets E_OUTOFMEMORY on Windows
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Windows
Status: NEW
Severity: normal
Priority: P2
Component: d3d
Assignee: wine-bugs(a)winehq.org
Reporter: fgouget(a)codeweavers.com
ddraw:ddrawmodes - testcooperativelevels_normal() sometimes gets E_OUTOFMEMORY
on Windows:
ddrawmodes.c:723: Test failed: Got hr 0x8007000e.
ddrawmodes.c:724: Test failed: Returned NULL surface pointer
See https://test.winehq.org/data/patterns.html#ddraw:ddrawmodes
Where 0x8007000e == E_OUTOFMEMORY
This failure always happens in this call:
716 /* Try creating a double buffered primary in fullscreen + exclusive +
normal mode */
717 rc = IDirectDraw_CreateSurface(lpDD, &surfacedesc, &surface, NULL);
...
723 ok(rc == DD_OK, "Got hr %#lx.\n", rc);
There is one instance on 2022-09-01 but this started happening about twice per
month on 2022-12-09.
--
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=54745
Bug ID: 54745
Summary: ddraw:ddrawmodes - testddraw7() sometimes gets a
0x887600ff error on Windows
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Windows
Status: NEW
Severity: normal
Priority: P2
Component: d3d
Assignee: wine-bugs(a)winehq.org
Reporter: fgouget(a)codeweavers.com
ddraw:ddrawmodes - testddraw7() sometimes gets a 0x887600ff error on Windows:
ddrawmodes.c:978: Test failed: Got hr 0x887600ff.
ddrawmodes.c:997: Test failed: Got hr 0x887600ff.
See https://test.winehq.org/data/patterns.html#ddraw:ddrawmodes
Where 0x887600ff corresponds to MAKE_D3DHRESULT(255) but is an unknown error
code.
This happened regularly on w11pro64-amd when Windows update was not disabled.
Excluding those there are three known instances all hapening on Windows 10 so
this is quite rare:
* 2022-08-10 on w1064-tsign-32
* 2023-01-24 on w10pro64-pt-BR-64
* 2023-03-27 on w10pro64-ar-64
--
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=54743
Bug ID: 54743
Summary: urlmon:url - The ftp test sometimes gets
INET_E_OBJECT_NOT_FOUND on Windows
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Windows
Status: NEW
Severity: normal
Priority: P2
Component: urlmon
Assignee: wine-bugs(a)winehq.org
Reporter: fgouget(a)codeweavers.com
urlmon:url - The ftp test sometimes gets INET_E_OBJECT_NOT_FOUND on Windows:
url.c:1846: Test failed: binding failed: 800c0006, expected 00000000
url.c:1857: Test failed: res = 00002f4f, expected 00000000
url.c:3284: Test failed: expected OnProgress_SENDINGREQUEST
url.c:3292: Test failed: expected OnProgress_MIMETYPEAVAILABLE
url.c:3293: Test failed: expected OnProgress_BEGINDOWNLOADDATA
url.c:3294: Test failed: expected OnProgress_ENDDOWNLOADDATA
url.c:3306: Test failed: expected OnDataAvailable
See https://test.winehq.org/data/patterns.html#urlmon:url
Where 0x800c0006 == INET_E_OBJECT_NOT_FOUND
This happens on Windows 8 to 11 about twice a month on average over all the
VMs.
--
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=54741
Bug ID: 54741
Summary: integer overflow in get_dib_stride / NtGdiCreateBitmap
Product: Wine
Version: 8.4
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdi32
Assignee: wine-bugs(a)winehq.org
Reporter: felix-wine(a)fefe.de
Distribution: ---
Here's the source code of NtGdiCreateBitmap:
97 HBITMAP WINAPI NtGdiCreateBitmap( INT width, INT height, UINT planes,
98 UINT bpp, const void *bits )
99 {
Having INT for width and height is already bad, but can't be helped because you
are implementing a crappy API.
105 if (width > 0x7ffffff || height > 0x7ffffff)
106 {
107 RtlSetLastWin32Error( ERROR_INVALID_PARAMETER );
108 return 0;
109 }
110
111 if (!width || !height)
112 return 0;
113
114 if (height < 0)
115 height = -height;
116 if (width < 0)
117 width = -width;
After this the value of width and height is 1..0x7ffffff (7 digits, not 8).
bpp is validated to be at most 32.
140 dib_stride = get_dib_stride( width, bpp );
141 size = dib_stride * height;
142 /* Check for overflow (dib_stride itself must be ok because of the
constraint on bm.bmWidth above). */
143 if (dib_stride != size / height)
Here's the code of get_dib_stride:
282 static inline int get_dib_stride( int width, int bpp )
283 {
284 return ((width * bpp + 31) >> 3) & ~3;
285 }
width can be 0x7ffffff, bpp can be 32.
width*bpp is then 0xffffffe0 which looks at first glance like no overflow
happened, but the type is still int, i.e. signed 32-bit, i.e. max value is
0x7fffffff (8 digits), max bpp to trigger that would be 16 not 32.
We are right-shifting afterwards, so we ought to be fine? Nope, because we are
operating on signed ints, so it's an arithmetic right shift, not a logical one.
The & does not remove the sign bit. So what happens here is that get_dib_stride
can return a negative value.
OK but NtGdiCreateBitmap checks for overflow and will notice something is
wrong.
Not really. If width=height=0x7ffffff and bpp=32 then get_dib_stride=-4.
Then size is -4*0x7ffffff promoted to size_t, or 0xe0000004.
The overflow check does this:
143 if (dib_stride != size / height)
size/0x7ffffff is 0xfffffffc.
dib_stride is -4, promoted to size_t for the comparison is also 0xfffffffc.
Also: On the way we had undefined behavior. The compiler would be allowed to do
all kinds of nasty things.
--
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=54732
Bug ID: 54732
Summary: schedsvc:atsvcapi & schedsvc:rpcapi crash on a fresh
wineprefix
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: taskschd
Assignee: wine-bugs(a)winehq.org
Reporter: fgouget(a)codeweavers.com
Distribution: ---
schedsvc:atsvcapi & schedsvc:rpcapi crash on a fresh wineprefix.
The issue is the same for both tests so I'll focus on the latter:
$ rm -rf ~/.wine && WINEDEBUG=schedsvc ./wine
dlls/schedsvc/tests/i386-windows/schedsvc_test.exe rpcapi
rpcapi.c:64: Tests skipped: Can't connect to Scheduler service: 0x6d9
0020:rpcapi: 0 tests executed (0 marked as todo, 0 as flaky, 0 failures), 1
skipped.
What really happens is that the call to SchRpcHighestVersion() crashes even
before reaching the TRACE() statement. And schedsvc:rpcapi interprets that as
being unable to connect to the scheduler service.
Running schedsvc:rpcapi multiple times does not help. However if one runs
taskschd:scheduler once in that wineprefix, then there is no problem:
$ rm -rf ~/.wine && ./wine dlls/taskschd/tests/i386-windows/taskschd_test.exe
scheduler
...
# Wait until sure that Wine has fully shut down
$ sleep 10; ./wine dlls/schedsvc/tests/i386-windows/schedsvc_test.exe rpcapi
rpcapi.c:268: L"<!-- Task definition created by Wine -->\n<Task
...
In particular this means that when submitting a TestBot job for these tests,
they systematically skip which prevents detecting failures.
(For merge requests there is one 32-bit only full WineTest run which would
catch at least some regressions.)
--
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=36711
Bug ID: 36711
Summary: Civ 4 Colonization cannot load Save games, Crashes
Product: Wine
Version: 1.6.2
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: typoofcem(a)gmail.com
Created attachment 48756
--> http://bugs.winehq.org/attachment.cgi?id=48756
Error output from when app crashes
Sid Meier's Civilization 4 Colonization (from the complete edition, not the
standalone) crashes when user attempts to load a saved game in Wine. Issue does
not effect Civ 4 nor its expansions, from the complete edition.
Note: game is being played from a complete install, without DVD-ROM (if that
makes any difference)
--
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=53714
Bug ID: 53714
Summary: proxyodbc SQLGetInfoW wrong behaviour when InfoValue
null
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: odbc
Assignee: wine-bugs(a)winehq.org
Reporter: pollyielderah(a)gmail.com
Distribution: ---
Difference between odbc and proxyodbc.
Expected behaviour:
Calling proxyodbc SQLGetInfoW with null InfoValue should fill StringLength with
total bytes to be written. This allows to create appropriate size buffer on
second call.
Current behaviour:
proxyodbc SQLGetInfoW logs warning "Unexpected NULL InfoValue address" and
returns SQL_ERROR without returning bytes to be written.
--
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=53032
Bug ID: 53032
Summary: winedevice.exe segfaults on exit (Segmentation fault)
in Wine 7.9
Product: Wine
Version: 7.9
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: wineserver
Assignee: wine-bugs(a)winehq.org
Reporter: aros(a)gmx.com
Distribution: ---
This is a regression or maybe it's down to GCC 12.1 - I don't know.
When exiting wine, winedevice.exe segfaults all the time.
I cannot get a bt and my attempts of using gdb have been futile.
(gdb) c
Continuing.
[LWP 495578 exited]
[LWP 495577 exited]
[LWP 495576 exited]
[LWP 495573 exited]
Thread 5 "winedevice.exe" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 495599]
0x7e68a2bf in ?? ()
(gdb) bt
#0 0x7e68a2bf in ?? ()
Backtrace stopped: Cannot access memory at address 0x1fe
Wine is built using: -O2 -march=pentium-m -m32
--
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=53027
Bug ID: 53027
Summary: Port Royale 4 crashes with wined3d_texture*
Product: Wine
Version: 7.9
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: directx-d3d
Assignee: wine-bugs(a)winehq.org
Reporter: berillions(a)gmail.com
Distribution: ---
Created attachment 72398
--> https://bugs.winehq.org/attachment.cgi?id=72398
Vulkan backtrace
Hi,
This time, i used Wine unpatched :-D
The game crashes at the same place with OpenGL/Vulkan renderer.
Launch the game works, navigate in the menu & begin a new game too.
The issue appears during the loading when i start a new game.
I attach the backtrace for OpenGL and Vulkan renderer.
--
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=52545
Bug ID: 52545
Summary: [PATCH] ACE rights parser should allow octal and
decimal formats
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: advapi32
Assignee: wine-bugs(a)winehq.org
Reporter: ake.rehnman(a)gmail.com
Distribution: ---
Created attachment 71859
--> https://bugs.winehq.org/attachment.cgi?id=71859
Patch
Security descriptor parser should accept octal and decimal numeric format in
addition to hex.
ace-rights = (*text-rights-string) / ("0x" 1*8HEXDIG) / ("0" 1*%x30-37) /
(1*DIGIT )
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/f4296d…
--
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=42857
Bug ID: 42857
Summary: Can't select a fixture in FreeStyler's fixture editor
Product: Wine
Version: 2.6
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: florian-edelmann(a)online.de
Distribution: ---
Created attachment 57958
--> https://bugs.winehq.org/attachment.cgi?id=57958
Console output. Starting the fixture editor in line 31
Installing worked fine after installing two verbs with winetricks (vb6run and
mfc42).
Starting all bundled applications also works as expected.
However, as soon as I select a fixture (folder opening also no problem), the
Fixture Editor hangs and eventually opens a small, all-black dialog and exits
when I close that. The same happens in the main application (FreeStyler) when
clicking on Setup in the menu, and then on Add/Remove fixtures
In the console output (full output attached), the following lines are repeated:
fixme:olepicture:OleLoadPictureEx
(0xcbaafc,2359,1,{00020400-0000-0000-c000-000000000046},x=0,y=0,f=0,0x32f368),
partially implemented.
fixme:ole:CLSIDFromProgIDEx L"Scripting.FileSystemObject",0x32f3a4: semi-stub
fixme:scrrun:filesys_QueryInterface Unsupported interface
{7fd52380-4e07-101b-ae2d-08002b2ec713}
fixme:scrrun:filesys_QueryInterface Unsupported interface
{37d84f60-42cb-11ce-8135-00aa004bb851}
fixme:scrrun:file_get_DateLastModified (0x1beb920)->(0x32f1e8)
Only the first number in the last line is changed every time.
I replaced a lot of those sections in the log to meet the 5MB file size limit.
--
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=53645
Bug ID: 53645
Summary: AIMP 3 memory leak
Product: Wine
Version: 7.16
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: HarlanStaggs(a)gmail.com
Distribution: ---
How to reproduce:
1) Open AIMP3 with wine (for example AIMP v3.60 build 1503).
2) Play some music.
3) Open system monitor that allows to monitor RAM usage.
4) Every 1-2 seconds AIMP will take 1-2 mb of your RAM and it wont stop.
5) After several hours it will take 6-8 GB of RAM.
I never saw this behaviour on windows and I could not to reproduce this bug in
AIMP2.
I used system wine (7.16) and wine in Lutris (lutris 7.2-2) - memory leak
appears in both.
--
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=53569
Bug ID: 53569
Summary: postgresql installer 9.3 needs fixed fso.GetTempName
Product: Wine
Version: 7.11
Hardware: x86
URL: https://www.enterprisedb.com/downloads/postgres-postgr
esql-downloads
OS: Linux
Status: NEW
Keywords: download, Installer, source
Severity: minor
Priority: P2
Component: scrrun
Assignee: wine-bugs(a)winehq.org
Reporter: sloper42(a)yahoo.com
CC: austinenglish(a)gmail.com, sloper42(a)yahoo.com
Depends on: 46083, 53565
Distribution: Fedora
This is followup of Bug #53565
Noticed in postgresql 9.3.25-1 installer. When starting the installer, a script
called prerun_checks is executed. There is issue executing following line
Temp_Path = strSystemRoot & "\" & fso.GetTempName() & ".vbs"
".vbs" is not attached to Temp_Path, because GetTempName returns wrong BSTR
length.
--
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=53335
Bug ID: 53335
Summary: Crash when converting an rich text editor already
containing text into a password input
Product: Wine
Version: 7.12
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: richedit
Assignee: wine-bugs(a)winehq.org
Reporter: jinoh.kang.kr(a)gmail.com
Distribution: ---
riched20 crashes when a rich text editor that already contains text is
converted into a password input field.
--
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=53051
Bug ID: 53051
Summary: Kvaser software crashes on unimplemented function
ntoskrnl.exe.ExNotifyCallback
Product: Wine
Version: 7.9
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: ntoskrnl
Assignee: wine-bugs(a)winehq.org
Reporter: alexhenrie24(a)gmail.com
Distribution: ---
Created attachment 72447
--> https://bugs.winehq.org/attachment.cgi?id=72447
Console output
Steps to reproduce:
1. Install Kvaser Drivers for Windows
2. Run `wine 'C:\Program Files\Kvaser\Drivers\kcanconf.exe'`
A crash dialog appears, but after closing it the Kvaser Device Guide does open.
$ sha256sum kvaser_drivers_setup.exe
7519aa9b919ab88a830b2818e03d1311fbc2a0ed569722b0e7170fa5ef11839d
--
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=52972
Bug ID: 52972
Summary: wineusb.sys: add_usb_device erroneously releases
critical section on failure path
Product: Wine
Version: 7.8
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: usb
Assignee: wine-bugs(a)winehq.org
Reporter: jinoh.kang.kr(a)gmail.com
CC: z.figura12(a)gmail.com
Distribution: ---
In wineusb.sys, add_usb_device() erroneously calls
"LeaveCriticalSection(&wineusb_cb);" without first having entered the critical
section.
--
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=48600
Bug ID: 48600
Summary: Bloomberg Terminal - crashes post installation, cannot
run
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fusion
Assignee: wine-bugs(a)winehq.org
Reporter: knez(a)mailbox.org
Distribution: ---
Created attachment 66437
--> https://bugs.winehq.org/attachment.cgi?id=66437
Bloomberg terminal - crashes post installation
Bloomberg Terminal - Client Software for Windows.
Download location:
https://www.bloomberg.com/professional/support/software-updates/
(https://bdn-ak-ssl.bloomberg.com/software/trv/sotrtLite01072020.exe).
Bloomberg Terminal – New Installation (Terminal Software Only).
OS: Ubuntu 16.04.
Bloomberg terminal is a Windows-only financial professional software.
The installation was run under Wine and no problems are reported.
On execution of the installed file "wintrv.exe" the attached error appears.
Further use of the software fails.
--
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=40444
Bug ID: 40444
Summary: Find doesn't jump to a found item in WinSCP
Product: Wine
Version: 1.9.7
Hardware: x86
URL: http://winscp.net/download/winscp577.zip
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: t.artem(a)mailcity.com
Distribution: Red Hat
This bug is very easy to reproduce.
Run WinSCP and open a session to any host. Open any long enough file
(text/html/whatever), hit Find (Ctrl + F) and try to find something at least on
the second page of the open document.
The cursor will jump, however the screen will remain on the first page. In
order to really jump to this position, you have to close the Find dialog (e.g.
hit "Escape") and press "Up" and "Down" which is terribly inconvenient.
--
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=53832
Bug ID: 53832
Summary: wbemprox: where-clause seems to be case-sensitive
Product: Wine
Version: 7.19
Hardware: x86-64
URL: https://github.com/PowerShell/PowerShell/releases/down
load/v7.0.3/PowerShell-7.0.3-win-x64.msi
OS: Linux
Status: NEW
Keywords: dotnet, download
Severity: normal
Priority: P2
Component: wmi&wbemprox
Assignee: wine-bugs(a)winehq.org
Reporter: xerox.xerox2000x(a)gmail.com
Distribution: Debian
Created attachment 73364
--> https://bugs.winehq.org/attachment.cgi?id=73364
script to reproduce the problem
prerequisite: winetricks dotnet48
The attached script shows the problem: on windows one can either use 'c:' or
'C:' in the following query:
$searcher = [wmisearcher]'Select freespace From win32_logicaldisk where
deviceid="c:"'
$searcher.scope.path = "\\.\root\cimv2"
$searcher.get()
On wine only the upper-case 'C:' yields any results.
Steps to reproduce: download attached script and do 'wine pwsh -f aaa.ps1'
Results on wine:
Lower case c: gives:
Upper case c: gives:
__GENUS : 2
__CLASS : Win32_LogicalDisk
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
FreeSpace : 5817585664
PSComputerName :
Results on windows:
Z:\> .\aaa.ps1
Lower case c: gives:
__GENUS : 2
__CLASS : Win32_LogicalDisk
__SUPERCLASS :
__DYNASTY :
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
FreeSpace : 23573446656
PSComputerName :
Upper case c: gives:
__GENUS : 2
__CLASS : Win32_LogicalDisk
__SUPERCLASS :
__DYNASTY :
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
FreeSpace : 23573446656
PSComputerName :
--
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=53821
Bug ID: 53821
Summary: winbase.h: ReOpenFile declaration missing (and not
available in any other header)
Product: Wine
Version: 7.19
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: kernel32
Assignee: wine-bugs(a)winehq.org
Reporter: contact(a)ivanchev.net
Distribution: ---
A declaration for ReOpenFile should be imported with winbase.h
(https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-reop…)
but is currently missing. In fact, no header in Wine declares that function.
--
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=53706
Bug ID: 53706
Summary: NtDeviceIoControlFile() is quite slow when called with
and invalid handle
Product: Wine
Version: 7.17
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ntdll
Assignee: wine-bugs(a)winehq.org
Reporter: metalcaedes(a)gmail.com
Distribution: ---
Created attachment 73130
--> https://bugs.winehq.org/attachment.cgi?id=73130
Call DeviceIoControl() with an invalid handle a lot and measure how long it
takes
I'm running some nonpublic proprietary application that I don't have the source
code for in Wine (I attached a simple testprogram though).
I noticed severe performance problems (compared with native Windows) and
profiling it in perf (is there a better way?) showed a lot of useless memory
addresses and also NtDeviceIoControlFile().
I figured out that the application calls DeviceIoControl() *a lot*, and after
hooking that function and replacing it with a stub that basically just returns
FALSE the application's performance was a lot better (good enough for my
purposes).
Being the curious type, I added some logging to my stub and realized that the
handle that gets passed is 0xFFFFFFFF (INVALID_HANDLE_VALUE) - even on Windows!
Specifically, I saw:
hDevice: 0xFFFFFFFF code: 0x80010021 inBufSize: 4 outBufSize: 4 overlapped: 0x0
Reimplementing DeviceIoControl() (based on Wine Source) in my (former) stub and
adding some time measurements showed that in this specific case (calling it
with an invalid handle) the called NtDeviceIoControlFile() often takes around 4
microseconds on Wine (sometimes even over 20!) while it only takes around 0.5
microseconds on Windows 10 (even though that PC is a bit slower).
So it takes 8-40 times as long in Wine.
Looking into Wine's NtDeviceIoControlFile() implementation, this is probably
the case because it calls into wineserver, via `server_ioctl_file()`.
So I *think* that this could be relatively easily fixed by checking if the
handle is INVALID_HANDLE_VALUE first thing in NtDeviceIoControlFile(), and if
that's the case call `SetLastError( ERROR_INVALID_HANDLE );` and `return
FALSE;` (Windows returns FALSE and sets that error code).
I'm not 100% sure about this though, because I don't know if there are any
cases of calling `NtDeviceIoControlFile()` where INVALID_HANDLE_VALUE is OK -
if there are, the early-out-check would probably have to take the `code`
argument into account (as far as I can tell it specifies the operation that
NtDeviceIoControlFile() executes).
I attached a simple test program that just calls DeviceIoControl() a lot (with
the parameters I've seen in the real program I have issues with) and measures
how long that takes.
On my Windows machine (i7-4771, Win10) one call takes about 0.48-0.5
microseconds.
On my Linux machine (Ryzen 5950X, Kernel 5.15, wine 7.17) one call takes about
4 microseconds on average, though many calls took longer.
--
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=53614
Bug ID: 53614
Summary: KeyPassXC does not open
Product: Wine
Version: 7.16
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: blocker
Priority: P2
Component: msvcp
Assignee: wine-bugs(a)winehq.org
Reporter: dstwine(a)mailinator.com
Distribution: ---
Created attachment 73012
--> https://bugs.winehq.org/attachment.cgi?id=73012
Log from console
As in the title.
Impossible to run KeyPassXC on Ubuntu 20.04 and Winehq 7.16 (but also 7.0
stable).
A console is returned with error 5 because windbg cannot attach to obtain a
backtrace.
I attached the log in the console that concern the process related to
KeyPassXC.
Best regards
--
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=53455
Bug ID: 53455
Summary: shell32:recyclebin - test_query_recyclebin() gets
unexpected recyclebin size in Wine
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: shell32
Assignee: wine-bugs(a)winehq.org
Reporter: fgouget(a)codeweavers.com
Distribution: ---
shell32:recyclebin - test_query_recyclebin() gets unexpected recyclebin size:
recyclebin.c:79: Test failed: Expected recycle bin to have 0x22 bytes
recyclebin.c:80: Test failed: Expected recycle bin to have 0x1 items
https://test.winehq.org/data/patterns.html#shell32:recyclebin
The expected size in bytes can also be 0x20 or 0x21 which can cause false
positives.
--
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=53003
Bug ID: 53003
Summary: XM6 TypeG: some MIDI note-on messages aren't sent to
MIDI devices (MIDI running status isn't supported in
the MIDI mapper)
Product: Wine
Version: 7.8
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: winmm&mci
Assignee: wine-bugs(a)winehq.org
Reporter: sagawa.aki+winebugs(a)gmail.com
Distribution: Ubuntu
Created attachment 72371
--> https://bugs.winehq.org/attachment.cgi?id=72371
minimal reproducible example
XM6 TypeG[1] is a SHARP X68000 Emulator.
When I use STed2[2] inside XM6 TypeG, some MIDI note-on messages aren't sent to
MIDI devices (e.g. Timidity++).
@honda_ken, an original reporter on Twitter, tweeted XM6 TypeG sounds strange
on Wine. He also informed me that Wine outputs the following message on his
console:
0338:fixme:midi:modData ooch 3c
0338:fixme:midi:modData ooch 403e
0338:fixme:midi:modData ooch 3e
0338:fixme:midi:modData ooch 4040
0338:fixme:midi:modData ooch 40
0338:fixme:midi:modData ooch 4041
0338:fixme:midi:modData ooch 41
0338:fixme:midi:modData ooch 4043
0338:fixme:midi:modData ooch 43
I setup XM6 TypeG environment on my PC and I can reproduce the issue.
Preparing the environment is a bit difficult, I wrote a minimal reproducible
example (shortmsg.c).
Steps to reproduce:
1. Compile the source code.
% i686-w64-mingw32-gcc -o shortmsg.exe shortmsg.c -lwinmm
2. Setup your favorite MIDI device, e.g. Timidity++.
% timidity -iA &
3. Run the executable (argument -1 means we use the MIDI mapper).
% wine shortmsg.exe -1
Expected result:
We can hear the piano voice, C, D, E and F.
Actual result:
We can hear the piano voice, only C.
[1] http://retropc.net/pi/xm6/index.html
[2] http://retropc.net/x68000/software/sound/rc/sted2/
--
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.