MT5: Black Title Bar on Wine 2.0.2

Questions about Wine on Linux
Locked
tk421
Level 2
Level 2
Posts: 30
Joined: Wed Aug 09, 2017 7:19 am

MT5: Black Title Bar on Wine 2.0.2

Post by tk421 »

I just installed Meta Trader 5 with Wine 2.0.2 in Ubuntu 16.04.

The screen open with a black title bar. I am not sure how to fix this issue.

It hides the buttons to Close/Minimize and Maximize. You cannot use the application.

How to reproduce the problem (start from fresh .wine):

Code: Select all

wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe
WINEARCH=win32 wine mt5setup.exe
The shows the issue.
Image
(original https://ibb.co/diYkgv)

Errors:

Code: Select all

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
err:clipboard:convert_selection Timed out waiting for SelectionNotify event
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
err:clipboard:convert_selection Timed out waiting for SelectionNotify event
fixme:mountmgr:harddisk_ioctl returning zero-filled buffer for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d0c10 (device=2d access=0 func=304 method=0)
fixme:nls:GetThreadPreferredUILanguages 00000038, 0x33e444, 0x33e454 0x33e448
fixme:nls:get_dummy_preferred_ui_language (0x38 0x33e444 0x33e454 0x33e448) returning a dummy value (current locale)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
fixme:mountmgr:harddisk_ioctl returning zero-filled buffer for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d0c10 (device=2d access=0 func=304 method=0)
fixme:mountmgr:harddisk_ioctl returning zero-filled buffer for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d0c10 (device=2d access=0 func=304 method=0)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:ver:GetCurrentPackageId (0x2dbe9a8 (nil)): stub
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:ver:GetCurrentPackageId (0x2bbe9a8 (nil)): stub
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:ver:GetCurrentPackageId (0x2cbe9a8 (nil)): stub
fixme:ver:GetCurrentPackageId (0x2abe9a8 (nil)): stub
fixme:ver:GetCurrentPackageId (0x29be9a8 (nil)): stub
fixme:mountmgr:harddisk_ioctl returning zero-filled buffer for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d0c10 (device=2d access=0 func=304 method=0)
fixme:mountmgr:harddisk_ioctl returning zero-filled buffer for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d0c10 (device=2d access=0 func=304 method=0)
fixme:mountmgr:harddisk_ioctl returning zero-filled buffer for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d0c10 (device=2d access=0 func=304 method=0)
fixme:mountmgr:harddisk_ioctl returning zero-filled buffer for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d0c10 (device=2d access=0 func=304 method=0)
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
fixme:secur32:schannel_get_mac_algid unknown algorithm 200
fixme:shell:InitNetworkAddressControl stub
fixme:ieframe:PersistStreamInit_InitNew (0x7f6c870)
fixme:ieframe:PersistStreamInit_InitNew (0x7fcad08)
fixme:ieframe:PersistStreamInit_InitNew (0x7fcc9e8)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:ieframe:PersistStreamInit_InitNew (0x7fce480)
fixme:ieframe:PersistStreamInit_InitNew (0x7fb8d58)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:ver:GetCurrentPackageId (0x367e9a8 (nil)): stub
err:clipboard:convert_selection Timed out waiting for SelectionNotify event
err:clipboard:convert_selection Timed out waiting for SelectionNotify event
fixme:iphlpapi:SendARP (DestIP 0x015b0da2, SrcIP 0x00000000, pMacAddr 0x60fe5e8, PhyAddrLen 0x60fe5d8): stub
fixme:iphlpapi:SendARP (DestIP 0x01c0b30a, SrcIP 0x00000000, pMacAddr 0x60fe5e8, PhyAddrLen 0x60fe5d8): stub
fixme:iphlpapi:SendARP (DestIP 0x015b0da2, SrcIP 0x00000000, pMacAddr 0x6b5e5e8, PhyAddrLen 0x6b5e5d8): stub
fixme:iphlpapi:SendARP (DestIP 0x01c0b30a, SrcIP 0x00000000, pMacAddr 0x6b5e5e8, PhyAddrLen 0x6b5e5d8): stub
fixme:iphlpapi:SendARP (DestIP 0x015b0da2, SrcIP 0x00000000, pMacAddr 0x6c7e5e8, PhyAddrLen 0x6c7e5d8): stub
fixme:iphlpapi:SendARP (DestIP 0x01c0b30a, SrcIP 0x00000000, pMacAddr 0x6c7e5e8, PhyAddrLen 0x6c7e5d8): stub
fixme:iphlpapi:SendARP (DestIP 0x015b0da2, SrcIP 0x00000000, pMacAddr 0x72de5e8, PhyAddrLen 0x72de5d8): stub
fixme:iphlpapi:SendARP (DestIP 0x01c0b30a, SrcIP 0x00000000, pMacAddr 0x72de5e8, PhyAddrLen 0x72de5d8): stub
err:clipboard:convert_selection Timed out waiting for SelectionNotify event
err:clipboard:convert_selection Timed out waiting for SelectionNotify event
fixme:shell:MLSetMLHInstance (0x71590000,0x7eb50000) stub
fixme:shell:MLIsMLHInstance (0x400000) stub
fixme:shell:MLIsMLHInstance (0x400000) stub
fixme:shell:MLIsMLHInstance (0x400000) stub
fixme:shell:MLIsMLHInstance (0x400000) stub
fixme:shell:MLIsMLHInstance (0x400000) stub
fixme:shell:MLIsMLHInstance (0x400000) stub
fixme:shell:MLClearMLHInstance (0x71590000)stub
err:clipboard:convert_selection Timed out waiting for SelectionNotify event
err:clipboard:convert_selection Timed out waiting for SelectionNotify event
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: MT5: Black Title Bar on Wine 2.0.2

Post by Bob Wya »

tk421 wrote:...
How to reproduce the problem (start from fresh .wine):

Code: Select all

wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe
WINEARCH=win32 wine mt5setup.exe
That's not how you setup a clean 32-bit WINEPREFIX - see WineHQ FAQ: 6.5.3 How do I create a 32 bit wineprefix on a 64 bit system?

Anyway I can't reproduce your issue with vanilla Wine 2.0.2 on my system. No overrides necessary.
Metatrader 5.jpg
The titlebar for the Metatrader application will (should!) be drawn by your Desktop Environment / Window Manager...
What Desktop Environment are you using just now? Unity?

Bob
tk421
Level 2
Level 2
Posts: 30
Joined: Wed Aug 09, 2017 7:19 am

Re: MT5: Black Title Bar on Wine 2.0.2

Post by tk421 »

We are running the applications using Xvfb.

I will try in XFCE in my computer, to confirm if this is a combination of the desktop environment + wine.

Thanks for correcting me about the correct way to run a 32-bit WINEPREFIX environment. Internet is full of wrong and out to date documentation. From now on I will check the official documentation first.

NOTE: A wild guess: I see in your screenshot that the missing title bar is customized. Would be possible to enforce the old fashion blue screen in the running window ?
tk421
Level 2
Level 2
Posts: 30
Joined: Wed Aug 09, 2017 7:19 am

Re: MT5: Black Title Bar on Wine 2.0.2

Post by tk421 »

The problems are related with Xvfb. I can see the problem by executing wincfg.

This is how you reproduce the problem:

Code: Select all

# start desktop environment
Xvfb :1 -screen 0 1024x768x16 & 

# access to desktop environment
x11vnc -display :1 -localhost &
vncviewer :0 &

# run wine
DISPLAY=:1 wine winecfg

Please see image for the results ( original link: https://ibb.co/g7aSUF )

Image
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: MT5: Black Title Bar on Wine 2.0.2

Post by Bob Wya »

@tk421

Image

Thanks for mentioning that you're using a nested X Session... :roll:
That's one of my pet hates - being spoonfed information... :evil:

See: WineHQ Wiki: 256 Color Mode ...

I can get Window decorations in a nested Xephyr X session by simply running:

Code: Select all

openbox &
in the nested X session (other Window Managers are available). That will also work for Xvfb.

Bob
tk421
Level 2
Level 2
Posts: 30
Joined: Wed Aug 09, 2017 7:19 am

Re: MT5: Black Title Bar on Wine 2.0.2

Post by tk421 »

> Thanks for mentioning that you're using a nested X Session... :roll:

Ops. Did I forget that detail ? :shock: - well those ones are the requirements ...

Thanks for the reply. It works like a charm. I owe you a beer.

For any other person who might access to this page in the future, the previous example works adding the following command at the end.

Code: Select all

DISPLAY=:1 openbox &
Locked