[Docker] Windows executables crash browsing host volume

Questions about Wine on Linux
Locked
rix
Newbie
Newbie
Posts: 1
Joined: Sun Feb 11, 2018 12:21 pm

[Docker] Windows executables crash browsing host volume

Post by rix »

Preface: Jottacloud is my cloud storage service of choice (norwegian privacy laws + great price). It does not offer a native Linux client. There is a third party project (unmaintained) to upload files built in python called jottalib. There is currently no way to sync Jottacloud files on my NAS, since directly installing Wine is not an option there. I have thus created a docker container that runs Jottacloud using wine.

You can find more details on the setup here: https://github.com/rix1337/docker-jottacloud
Basically I use x11 to create a virtual display (available through VNC) and install the latest winehq-stable including winetricks.

I only install corefonts through winetricks. Jottacloud has various regional clients of which one is marked as working here: https://appdb.winehq.org/objectManager. ... &iId=17278

I can confirm, that Jottacloud itself does work correctly in docker, with one major exception: docker links folders to the host system through the volume directive. I can browse this specific folder completely fine from the bash console in this image. Windows apps running wine however, crash "on sight".

Whenever I browse or merely display a path that contains such a volume link, the exe crashes.

This is the last missing puzzle in my quest to get this setup working, so please let me know how I can get this solved.

To reiterate:
-Jotta.exe (the client) works correctly. The Gui, logging in and synchronizing files works.
-Using jotta.exe or explorer.exe to use a linked folder (eg. host: /mnt/backup/Jottacloud - container: /jotta) immediately crashes the executable
-Using bash to browse to container: /jotta works. Also creating files and folders below works.

In my understanding this should not be happening (more info at: https://docs.docker.com/storage/volumes/). Docker volumes are basically symlinks; more subtle ones in my understanding.

Using mono to run windows console apps works well in docker, without the crashes.

I assume, some part of the wine library is failing to read directory info and thus crashes. A workaround/fix would be greatly appreciated

Here are console traces running explorer.exe and browsing / (where /jotta is linked)

Code: Select all

wine explorer.exe
007f:fixme:nstc:NSTC2_fnSetControlStyle2 mask & style (0x00000004) contains unsupported style(s): 0x00000004
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a003, 0, 0x33f4f8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a004, 1, 0x33f4f8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a003, 1, 0x33f4f8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a004, 1, 0x33f4f8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a003, 0, 0x33ebe8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a004, 1, 0x33ebe8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a003, 1, 0x33ebe8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a004, 1, 0x33ebe8)
007f:fixme:shell:IShellBrowser_fnOnViewWindowActive stub, 0x1283c0 (0x159410)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a003, 0, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a004, 1, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a003, 1, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a004, 1, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnOnViewWindowActive stub, 0x1283c0 (0x156048)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a003, 0, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a004, 1, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a003, 1, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a004, 1, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnOnViewWindowActive stub, 0x1283c0 (0x145bb0)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a003, 0, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1026, a004, 1, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a003, 1, 0x33ecc8)
007f:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x1283c0 (2, 1025, a004, 1, 0x33ecc8)
^C0081:fixme:console:CONSOLE_DefaultHandler Terminating process 7e on event 0
The last line is me canceling the app immediately after it stops. Here is a screenshot (C:/users/root is shown as blank if I link C:/users/root/Jottacloud to the host system, explorer becomes unresponsive - there are numerous default folders if I don't):
Image

Please let me know how I can help.
Locked