http://bugs.winehq.org/show_bug.cgi?id=58647
Bug ID: 58647 Summary: Unhandled exception: unimplemented function mfplat.dll.MFCreateVideoMediaType called in wow64 32-bit code (0x7b5e82e7) Product: Wine Version: 10.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mfplat Assignee: wine-bugs@winehq.org Reporter: mazuz.eyal@gmail.com Distribution: ---
Created attachment 79220 --> http://bugs.winehq.org/attachment.cgi?id=79220 WINDGB mfplat logs
After starting an initial play in Rewrite plus (https://vndb.org/v751) using wow64 mode There's an introduction, and right after the game suppose to play the first opening video but it crashes when trying.
On consecutive plays it acknowledge that the game crash and suggest to either switch from Windows Media Player (WMP) to MCI (which doesn't work), try again with WMP (which also doesn't work), or skip the entire video and just not play it (works).
Attaching the WINDBG logs I got when trying to actually play the video.
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- The function itself is not missing. I suspect something is broken regarding delayload.
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #2 from Rafał Mużyło galtgendo@o2.pl --- (In reply to Nikolay Sivov from comment #1)
The function itself is not missing. I suspect something is broken regarding delayload.
Not so much *broken*...
Unhandled exception: unimplemented function mfplat.dll.MFCreateVideoMediaType called in wow64 *32-bit* code (0x7b5e82e7).
A stab in the dark, but... I recall having an 'unimplemented function' error with an implemented function, when the program either ran oom or out of vm space. I'm not 100%sure, but I seem to recall it was a delayload too...
OP, attach full console output and check if you aren't running out of either of those while running the game.
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #3 from mazuz.eyal@gmail.com --- Created attachment 79222 --> http://bugs.winehq.org/attachment.cgi?id=79222 Rewrite console output when running the game
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #4 from mazuz.eyal@gmail.com --- (In reply to Rafał Mużyło from comment #2)
(In reply to Nikolay Sivov from comment #1)
The function itself is not missing. I suspect something is broken regarding delayload.
Not so much *broken*...
Unhandled exception: unimplemented function mfplat.dll.MFCreateVideoMediaType called in wow64 *32-bit* code (0x7b5e82e7).
A stab in the dark, but... I recall having an 'unimplemented function' error with an implemented function, when the program either ran oom or out of vm space. I'm not 100%sure, but I seem to recall it was a delayload too...
OP, attach full console output and check if you aren't running out of either of those while running the game.
I added the console output when running:
LC_ALL=ja_JP.UTF-8 TZ=Asia/Tokyo wine SiglusEngine.exe
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #5 from Rafał Mużyło galtgendo@o2.pl --- ...oh, wait...
I've found the bug I referred to. There module:DelayLoadFailureHook reported an explicit failure - there nothing like this in this log...
There's also this:
PE 73360000-73397000 Deferred mfplat PE 733b0000-733e6000 Deferred avfilter-lav-7 PE 73400000-73494000 Deferred swscale-lav-5 PE 734b0000-735b2000 --none-- lavvideo.ax
How much custom stuff related to video did you put in your prefix (either explicitly or via winetricks) ?
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #6 from Eyal Mazuz mazuzeyal@protonmail.com --- (In reply to Rafał Mużyło from comment #5)
...oh, wait...
I've found the bug I referred to. There module:DelayLoadFailureHook reported an explicit failure - there nothing like this in this log...
There's also this:
PE 73360000-73397000 Deferred mfplat PE 733b0000-733e6000 Deferred avfilter-lav-7 PE 73400000-73494000 Deferred swscale-lav-5 PE 734b0000-735b2000 --none-- lavvideo.ax
How much custom stuff related to video did you put in your prefix (either explicitly or via winetricks) ?
Running winetricks list-installed returned the following:
stuff _I think_ video related:
gdiplus lavfilters quartz wsh57 wmp11 mf ffdshow
other stuff I'm not sure if video related: (yeah I know fonts aren't for example...)
mfc42 msxml6 msftedit msls31 riched20 riched30 vb6run andale arial comicsans courier georgia impact times trebuchet verdana webdings corefonts d3dcompiler_43 d3dx9 d3dcompiler_47 dxvk w_workaround_wine_bug-50894 ucrtbase2019 vcrun2019 remove_mono internal remove_mono internal winxp dotnet40 dotnet48 sourcehansans fakechinese fakejapanese fakekorean unifont cjkfonts directx9 remove_mono internal dotnet45 remove_mono internal dotnet46 remove_mono internal dotnet461 remove_mono internal dotnet462 remove_mono internal dotnet472 vcrun2010 vcrun2008 baekmuk calibri cambria candara consolas constantia corbel droid
I would stress out that the issue occurred before doing the following below so I don't think it is related much(?)
Last night initially trying to debug the issue I came across this winetricks issue
https://github.com/Winetricks/winetricks/issues/1132
which linked to this repo: https://github.com/b-fission/vn_winestuff
I downloaded the: vn_winestuff/mf/mf64.zip, and extracted the contents into: ~/.wine/drive_c/windows/system32
Which actually removed some console warnings (but not errors) I got regarding mfplat:
0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\colorcnv.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\mfasfsrcsnk.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\mfh264enc.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\mfmp4srcsnk.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\mp3dmod.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\msauddecmft.dll") not found 0160:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 00006FFFF9ED25B7, 28) stub 0160:fixme:ver:GetCurrentPackageId (00007FFFFE2FBC20 0000000000000000): stub 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\msmpeg2vdec.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\msvproc.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\resampledmo.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\wmadmod.dll") not found 0160:err:module:import_dll Library mfplat.dll (which is needed by L"C:\windows\system32\wmvdecod.dll") not found
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #7 from Rafał Mużyło galtgendo@o2.pl --- :facepalm:
So, we're not debugging wine, but your frankenstein variant of it, joy...
I'm all but certain that those mfplat errors are due to it being the Windows version of it, not wine's.
Usually, I'd be one of the last people to suggest it, but it's likely too FUBAR to resolve without much higher tech competency that either of us have (well, both of us could likely reach the solution by randomly removing stuff, but that would be quite tedious). So, new log from a *fresh* prefix - no winetricks whatsoever.
http://bugs.winehq.org/show_bug.cgi?id=58647
Eyal Mazuz mazuzeyal@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #79220|0 |1 is obsolete| | Attachment #79222|0 |1 is obsolete| |
--- Comment #8 from Eyal Mazuz mazuzeyal@protonmail.com --- Created attachment 79223 --> http://bugs.winehq.org/attachment.cgi?id=79223 Fresh wine prefix console log
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #9 from Eyal Mazuz mazuzeyal@protonmail.com --- (In reply to Rafał Mużyło from comment #7)
:facepalm:
So, we're not debugging wine, but your frankenstein variant of it, joy...
I'm all but certain that those mfplat errors are due to it being the Windows version of it, not wine's.
Usually, I'd be one of the last people to suggest it, but it's likely too FUBAR to resolve without much higher tech competency that either of us have (well, both of us could likely reach the solution by randomly removing stuff, but that would be quite tedious). So, new log from a *fresh* prefix - no winetricks whatsoever.
Added logs from the fresh wine prefix
extract the game to new location (to remove any config files) and ran the following command to create new wine prefix
WINEPREFIX=/home/eyalm/.wine_rewrite LC_ALL=ja_JP.UTF-8 TZ=Asia/Tokyo wine SiglusEngine.exe
The game give some warning windows but I guess cause no fakejapanese or cjkfonts installed, it is all squares and can't be parsed.
The game just skips the video altogether without even trying to play it or show any warning or error.
Here are some screenshots: https://imgur.com/a/QXrusCC
The first screenshot is when running the game The other are right after the OP video supposed to be played and the game starts I assume the 2nd screen is something about fonts
Cause when pressing "no" it plays the game but not text is displayed If pressing "yes", it leads to the 3rd screen for font selection.
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #10 from Rafał Mużyło galtgendo@o2.pl --- Created attachment 79224 --> http://bugs.winehq.org/attachment.cgi?id=79224 my cjk font regkeys
Quick note before I read the rest of your comment: I'm not sure what exactly winetricks does in its keyword, but personally I use this set of regkeys for Japanese apps, that handle fonts poorly enough to need this - well, actually at this time I use with a different font than in this file, but likely you'll need to adjust it anyway.
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #11 from Rafał Mużyło galtgendo@o2.pl --- Note, that there's actually no *good* replacement for MS UI Gothic (AFAIK) due to certain gotcha about this font.
http://bugs.winehq.org/show_bug.cgi?id=58647
--- Comment #12 from Rafał Mużyło galtgendo@o2.pl --- OK, now for the later part.
It's often hard to strike a correct balance between clean prefix and external additions that *feel* necessary for a program to work correctly.
Quite obviously, some of them actually aren't, but sometimes figuring out which are which is quite tedious. Sometimes dropping a nuke on the problem (like you did in your initial prefix) works well (well, in the context of the particular app), sometimes it just doesn't.
Here, this mostly harmless line is likely the problem:
0150:fixme:wmp:activate_inplace Windowless activation not supported
I'm not sure what is the current state of support for wmp in vanilla wine, but in the context of this game this seems to be problem. It's difficult to tell whether or not it has a decent solution.