Shoko Server & Shoko Desktop - crashes on launch

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
WineIsNotAnElephant
Level 1
Level 1
Posts: 5
Joined: Sat Aug 03, 2019 10:21 am

Shoko Server & Shoko Desktop - crashes on launch

Post by WineIsNotAnElephant »

Hi, I'm running Wine 4.0.1 on Linux Mint 19.1.

Shoko Server & Shoko Desktop: http://shokoanime.com/downloads/#stable-releases

Two programs for managing & viewing your anime collection. I've been running both on my Windows 7 HTPC for years without any problems, but now I'm migrating to Linux. A Linux version of Shoko Server is in development but at this point it can't even be called a beta. It will probably be years before it's fully functional in Linux. I can't wait that long so I'm trying to run this in Wine but having no luck.

There is an AppDB page for Shoko Desktop: https://appdb.winehq.org/objectManager. ... &iId=37272

Apparently someone did get this thing to work but I followed the instructions there and it just won't start. Here is exactly what I did:
-Installed Wine and set up a 32-bit Wine prefix.
-Ran winetricks and installed dotnet 4.0, 4.71 & 4.72 (It also automatically installed 4.5, 4.61 & 4.62)
-Looked for the registry key that should be edited: [HKEY_CURRENT_USER\Software\Wine\Direct3D] but this was not in my registry.
-Installed Shoko Server and Shoko Desktop to the 32-bit Wine prefix. The installation seemed to work correctly.
-Started ShokoServer.exe and it crashed: Unhandled exception 0xe0434352 in thread 9 at address 0x7b43e03c (thread 0009).
-Shoko Desktop refuses to start unless the server is already running so I can't test that at this point.
-Tried creating the aforementioned registry key and edited it as instructed, same results.

I will attach the debug and backtrace logs. They're all Greek to me but could someone please look at them and try to figure this out?
debug+backtrace.zip
(15.75 KiB) Downloaded 180 times
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Shoko Server & Shoko Desktop - crashes on launch

Post by jkfloris »

Could you try with:
wine 4.12.1
winetricks 20190615
clean 32-bit Wineprefix
winetricks -q dotnet471
WineIsNotAnElephant
Level 1
Level 1
Posts: 5
Joined: Sat Aug 03, 2019 10:21 am

Re: Shoko Server & Shoko Desktop - crashes on launch

Post by WineIsNotAnElephant »

jkfloris wrote:Could you try with:
wine 4.12.1
winetricks 20190615
clean 32-bit Wineprefix
winetricks -q dotnet471
I gave that a try but the result is the same as before. Here is what I did:
-Completely uninstalled Wine and removed the old prefix folder.
-Installed the Wine development package using the instructions I found here: http://ubuntuhandbook.org/index.php/201 ... in-ubuntu/
(It installed 4.13, does this make a difference?)
-Set up a new 32-bit Wine prefix. When winecfg tried to install Mono it failed with an error.
-Ran winecfg and checked the version to confirm I have 4.13.
-Opened winetricks in a text viewer to confirm the version is 20190615.
-Ran winetricks -q dotnet471. This took a loooong time to finish.
-Ran the winetricks GUI and confirmed the following components were installed: dotnet40, 45, 46, 461, 462, 471.
NOT installed: dotnet452, 472.
-Tested Wine by running Notepad, worked fine.
-Installed Shoko Server & Desktop to the 32-bit prefix. Installation seemed to work properly.
-Ran ShokoServer.exe and it crashed again: Unhandled exception 0xe0434352 in thread 9 at address 0x7b4528ec (thread 0009)

Debug & backtrace logs attached.
Attachments
Debug2+Backtrace2.zip
(7.8 KiB) Downloaded 183 times
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Shoko Server & Shoko Desktop - crashes on launch

Post by jkfloris »

How do you start Shoko Server?
WineIsNotAnElephant
Level 1
Level 1
Posts: 5
Joined: Sat Aug 03, 2019 10:21 am

Re: Shoko Server & Shoko Desktop - crashes on launch

Post by WineIsNotAnElephant »

jkfloris wrote:How do you start Shoko Server?
I installed the 32-bit prefix at ~/wine32. At the terminal I type:

Code: Select all

WINEPREFIX=~/wine32 wine ~/wine32/drive_c/'Program Files'/Shoko/'Shoko Server'/ShokoServer.exe
...or whatever the correct path is to the .exe, I don't remember exactly.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Shoko Server & Shoko Desktop - crashes on launch

Post by jkfloris »

Do you get the same error if you start the server the right way?

Code: Select all

cd "~/wine32/drive_c/Program Files/Shoko/Shoko Server"
WINEPREFIX=~/wine32 wine ShokoServer.exe
# or
WINEPREFIX=~/wine32 wine start /unix ~/wine32/drive_c/'Program Files'/Shoko/'Shoko Server'/ShokoServer.exe
WineIsNotAnElephant
Level 1
Level 1
Posts: 5
Joined: Sat Aug 03, 2019 10:21 am

Re: Shoko Server & Shoko Desktop - crashes on launch

Post by WineIsNotAnElephant »

Code: Select all

cd "~/wine32/drive_c/Program Files/Shoko/Shoko Server"
WINEPREFIX=~/wine32 wine ShokoServer.exe
This does not work because quotes do not work that way in BASH. The right way is: cd ~/"wine32"/"drive_c"/"Program Files"/"Shoko"/"Shoko Server"
I did that and got the same result as before.

Code: Select all

WINEPREFIX=~/wine32 wine start /unix ~/wine32/drive_c/'Program Files'/Shoko/'Shoko Server'/ShokoServer.exe
This gave the same results, except this time the error was in thread 2c instead of thread 9. I don't know if that makes any difference though.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Shoko Server & Shoko Desktop - crashes on launch

Post by jkfloris »

This does not work because quotes do not work that way in BASH.
:oops: You are right. That should have been

Code: Select all

cd "$HOME/wine32/drive_c/Program Files/Shoko/Shoko Server"
It looks like the program crashes in .Net
Could you verify dotnet with

Code: Select all

winetricks --verify dotnet_verifier 
wine netfx_setupverifier.exe
WineIsNotAnElephant
Level 1
Level 1
Posts: 5
Joined: Sat Aug 03, 2019 10:21 am

Re: Shoko Server & Shoko Desktop - crashes on launch

Post by WineIsNotAnElephant »

Code: Select all

winetricks --verify dotnet_verifier
This unfortunately did not work because it seems it was unable to connect to the URL:

Code: Select all

Using winetricks 20190615-next - sha256sum: 2d3311f8cc0783b747c4e074008e701f2ce844765ba53d2fd4d27126d1df2383 with wine-4.13 and WINEARCH=win32
------------------------------------------------------
Github down? version '' doesn't appear to be a valid version
------------------------------------------------------
Executing w_do_call dotnet_verifier
Executing load_dotnet_verifier 
Executing mkdir -p /home/XXXX/.cache/winetricks/dotnet_verifier
Executing cd /home/XXXX/.cache/winetricks/dotnet_verifier
Downloading https://msdnshared.blob.core.windows.net/media/2018/05/netfx_setupverifier_new.zip to /home/XXXX/.cache/winetricks/dotnet_verifier
--2019-08-08 12:23:42--  https://msdnshared.blob.core.windows.net/media/2018/05/netfx_setupverifier_new.zip
Resolving msdnshared.blob.core.windows.net (msdnshared.blob.core.windows.net)... failed: Connection timed out.
wget: unable to resolve host address ‘msdnshared.blob.core.windows.net’
Executing cd /home/XXXX/.cache/winetricks/dotnet_verifier
Downloading https://web.archive.org/web/2000/https://msdnshared.blob.core.windows.net/media/2018/05/netfx_setupverifier_new.zip to /home/XXXX/.cache/winetricks/dotnet_verifier
--2019-08-08 12:24:27--  https://web.archive.org/web/2000/https://msdnshared.blob.core.windows.net/media/2018/05/netfx_setupverifier_new.zip
Resolving web.archive.org (web.archive.org)... failed: Connection timed out.
wget: unable to resolve host address ‘web.archive.org’
------------------------------------------------------
Downloading https://web.archive.org/web/2000/https://msdnshared.blob.core.windows.net/media/2018/05/netfx_setupverifier_new.zip failed
------------------------------------------------------
But I was able to get to https://web.archive.org/web/2000/https: ... er_new.zip with a browser and downloaded the file. I extracted netfx_setupverifier.exe to the windows folder and ran it in Wine. It gave me the following choices:
.NET Framework 4 Client
.NET Framework 4 Full
.NET Framework 4.5
.NET Framework 4.5.1
.NET Framework 4.5.2
.NET Framework 4.6
.NET Framework 4.6.1
.NET Framework 4.6.2
.NET Framework 4.7
.NET Framework 4.7.1
I checked each one and it said "Product verification succeeded!"
The setupverifier text is attached.
Attachments
setupverifier.zip
(56.78 KiB) Downloaded 181 times
Locked