https://bugs.winehq.org/show_bug.cgi?id=40448
Bug ID: 40448 Summary: Final Fantasy XI: Missing character models, potential black screen and crashes Product: Wine Version: 1.9.7 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: osman@retroflux.net
Issues: Some player character models go missing, loading certain zones (Mog Garden) can result in black screen, sporadic crashes can occur.
I've bisected this, and found commit 1061969eb6e29 to be the culprit. It is a tiny commit that adds WINED3DFMT_FLAG_RENDERTARGET to WINED3DFMT_B5G5R5X1_UNORM in format_texture_info[] in dlls/wined3d/utils.c.
It looks like this can somehow make wined3d_buffer_create_vb/ib fail on my MacBook Pro. (Retina, 13-inch, Late 2013, Intel Iris 5100)
warn:d3d:wined3d_buffer_create_ib Failed to initialize buffer, hr 0x8876017c err:d3d:resource_init Out of adapter memory
(I don't think it is an out of memory issue - the message seems to be always present regardless, default message? - Memory consumption is not high)
Reversing this particular patch on latest master solves all the problems. (Tested at commit ad7cb436571ec, dated Apr 7, 2016). The buffer initialization error goes away. The game runs quite stable without any issues.
https://bugs.winehq.org/show_bug.cgi?id=40448
--- Comment #1 from Matteo Bruni matteo.mystral@gmail.com --- I guess your GPU is not identified by wined3d so it ends up using a fallback emulated GPU and video memory size. Probably the patch you mention makes the game use just slightly more video memory in some instances which in turn causes the issues you mention.
Setting the registry key VideoMemorySize (https://wiki.winehq.org/Useful_Registry_Keys) to a reasonable value like 1024 should be a workaround for your issues. WRT fixing the GPU identification, can you attach the start of a +d3d log when running the game? I'm mostly interested in the "GL_RENDERER: " line.
https://bugs.winehq.org/show_bug.cgi?id=40448
--- Comment #2 from Osman Keskin osman@retroflux.net --- I think you're right. Didn't realize Wine set a limit by itself.
trace:d3d:wined3d_adapter_init_gl_caps GL_RENDERER: "Intel Iris OpenGL Engine". trace:d3d:wined3d_adapter_init_gl_caps GL_VENDOR: "Intel Inc.". trace:d3d:wined3d_adapter_init_gl_caps GL_VERSION: "2.1 INTEL-10.14.58".
trace:d3d:wined3d_guess_card Applying card selector "Intel". trace:d3d:select_card_handler Applying card selector "Apple OSX Intel binary driver". trace:d3d:wined3d_guess_card Unrecognized renderer "Intel Iris OpenGL Engine", falling back to default.
This is probably common with many Macs out there. (I don't have a second GPU)
Setting VideoMemorySize worked indeed. Thanks a bunch!
https://bugs.winehq.org/show_bug.cgi?id=40448
--- Comment #3 from Matteo Bruni matteo.mystral@gmail.com --- Created attachment 54274 --> https://bugs.winehq.org/attachment.cgi?id=54274 Patch
Can you try if the attached patch fixes the bug even after removing the VideoMemorySize registry key?
https://bugs.winehq.org/show_bug.cgi?id=40448
--- Comment #4 from Osman Keskin osman@retroflux.net --- Yes, the patch fixes it (I've removed the registry key). Everything is working.
https://bugs.winehq.org/show_bug.cgi?id=40448
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com, | |winetest@luukku.com, | |wylda@volny.cz
--- Comment #5 from winetest@luukku.com --- Isnt this bug actually fixed? (Compare the patch attached).
http://source.winehq.org/git/wine.git/blob/fc1485b86b8554cacb0066162feee094d...
I quess it's quite recent addtion.
https://bugs.winehq.org/show_bug.cgi?id=40448
--- Comment #6 from Osman Keskin osman@retroflux.net --- Yes, this has been fixed as far as I am aware.
https://bugs.winehq.org/show_bug.cgi?id=40448
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dimesio@earthlink.net
https://bugs.winehq.org/show_bug.cgi?id=40448
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED CC|dimesio@earthlink.net |
--- Comment #7 from Rosanne DiMesio dimesio@earthlink.net --- Marking fixed.
https://bugs.winehq.org/show_bug.cgi?id=40448
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bdc3df38ed1129d6b0dd6a55446 | |322cf64acc138
https://bugs.winehq.org/show_bug.cgi?id=40448
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.23.
https://bugs.winehq.org/show_bug.cgi?id=40448
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=40448
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #9 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.6.