Project

General

Profile

Bug #1662

OpenMW-CS: Won't start on japanese locale

Added by nekomata ww about 3 years ago. Updated 6 days ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Editor
Target version:
Start date:
07/18/2014
% Done:

0%

Reproducibility:
Always
Operating system:
Windows
Severity:
Major

Description

omwlauncher.exe and opencs.exe crashes on startup.
Windows locale is japanese, although I use russian version of the game. If I open the launcher using applocale and choose russian or english, it launches (although with wrong text encoding).

APPCRASH
omwlauncher.exe
0.0.0.0
53c45f44
MSVCR100.dll
10.0.40219.1
4d5f0c22
40000015
0008d6fd
6.1.7600.2.0.0.256.1
1041
48a7
48a702407a02515ff2ff86f9a851fdca
d4fe
d4fe4b05679f937e39a0bee11fa24f73

gibberish.jpg View (95.6 KB) R. D., 05/15/2016 08:37 AM

correct (from openmw.log).jpg View (73.9 KB) R. D., 05/15/2016 08:37 AM

無題20160521152804.jpg View - OpenCS error (159 KB) nekomata ww, 05/21/2016 02:38 PM


Related issues

Related to OpenMW - Bug #668: OpenMW doesn't support non-latin paths on Windows Closed 03/27/2013

History

#1 Updated by Marc Zinnschlag about 3 years ago

  • Target version changed from openmw-0.32 to openmw-0.33

#2 Updated by Marc Zinnschlag almost 3 years ago

  • Target version changed from openmw-0.33 to openmw-0.34

#3 Updated by Marc Zinnschlag almost 3 years ago

  • Target version changed from openmw-0.34 to openmw-0.35

#4 Updated by scrawl . over 2 years ago

  • Status changed from New to Feedback needed
  • Assignee deleted (Pieter van der Kloet)

This might be a duplicate of #668. Not sure if you were using a version at the time that included the fix. So, can you check whether this is still an issue for you now?

#5 Updated by nekomata ww over 2 years ago

I have checked ver.0.34, however it still crashes on startup.
Trying purely latin path also didn't help.
The game runs with Applocale fine without any noticeable troubles. (encoding is allright now)

Those detals of error seems the same,
APPCRASH
MSVCR100.dll
10.0.40219.1
4d5f0c22
40000015
0008d6fd

and common for both omwlauncher.exe an openmw-wizard.exe.

openmw.exe shows fatal error with just: "boost::filesystem::path"

Path of config and user folder also doesn't contain any unicode characters.

#6 Updated by scrawl . over 2 years ago

  • Related to Bug #668: OpenMW doesn't support non-latin paths on Windows added

#7 Updated by Marc Zinnschlag over 2 years ago

  • Target version changed from openmw-0.35 to openmw-0.35.1

#8 Updated by scrawl . over 2 years ago

  • Status changed from Feedback needed to Confirmed

openmw.exe shows fatal error with just: "boost::filesystem::path"

The most likely reason OpenMW won't start is that the launcher wrote an invalid config file.

#9 Updated by Marc Zinnschlag over 2 years ago

  • Target version changed from openmw-0.35.1 to openmw-0.36

#10 Updated by Marc Zinnschlag over 2 years ago

  • Target version changed from openmw-0.36 to openmw-0.37

#11 Updated by Marc Zinnschlag almost 2 years ago

  • Target version changed from openmw-0.37 to openmw-0.38

#12 Updated by Marc Zinnschlag over 1 year ago

  • Target version changed from openmw-0.38 to openmw-0.39

#13 Updated by Young Cho over 1 year ago

Seems like M$ windows-specific bug. Please check if your USERNAME in windows has 2-bytes characters. Running .37 without any problems in korean windows ;)

#14 Updated by Marc Zinnschlag over 1 year ago

  • Target version changed from openmw-0.39 to openmw-0.40

#15 Updated by R. D. over 1 year ago

I've tested this issue on Japanese Windows 7 Home Premium 64bit, but I can't reproduce the original poster's problem (a crash) even on 0.34, on which the poster said it still happened, or on 0.31, which I suppose is about the version where this issue was first reported. Makes no difference whether a 32-bit or 64-bit version of OpenMW is used.

Using a Windows account name containing Japanese characters (suggested above as a possible cause), everything loaded fine on 0.31. On 0.34, the CS would fail to load the path to its .omwgame file if I tried to start a new game file, but OpenMW would still load fine. In 0.39 the CS will not even get to the selection menu due to failing to load the OpenMW path in My Games (doesn't crash, though.) but OpenMW runs fine.

Using an account name not containing Japanese characters, everything loaded fine on 0.31, 0.34 and 0.39, although in 0.34 starting a new .omwgame file in the CS caused the program to get stuck (may be an unrelated problem.)

Also, on 0.39 the sound devices (Realtek Audio) load with gibberish in the command prompt window that runs in the background. On .34 and .31 it displays correctly as "Generic Software on スピーカー (Realtek High Definition Audio)" and "Generic Software on スピーカー (WsAudio_DeviceS(5))", etc. (スピーカー is Japanse for speaker). The sound still works fine in 0.39, and in the openmw.log file it looks OK, although displayed in a slightly different way from earlier versions, as スピーカー (Realtek High Definition Audio) and スピーカー (WsAudio_DeviceS(5)). See the attached pictures.


So, to summarize, I can't reproduce any crash, even when using Japanese characters in the Windows account name as suggested above. However, having Japanese characters in the account name does cause the CS in 0.39.0 (build (64fdc5a21a)) to fail to load from the MyGames/OpenMW/data directory (and thus not start), and OpenMW's log during "realtime" has gibberish for the Japanese names of sound devices, although this seems to be a cosmetic issue as they are written correctly in the log file and the sound works fine.

#16 Updated by scrawl . over 1 year ago

  • Category changed from Launcher to 12

#17 Updated by nekomata ww over 1 year ago

Hello!
The original poster is here. Sorry for late reply.
Now I have checked ver. 0.39, and it seems the bug is resolved now.
Thanks.

#18 Updated by R. D. over 1 year ago

To nekomata ww:

Do you have Japanese in your Windows account name? Can you use openmw-cs, or is there an error that it can't find the path? (If the message is too fast, run openmw-cs from a command prompt.)

Also, do your sound devices (realtek, etc.) display OK? (Look at screenshots attached to this bug)

Thanks.

#19 Updated by nekomata ww over 1 year ago

To R. D.:
Greetings,

No, in my case there are latin letters only.

However same as for you, there are gibberish in sound devices listing (plus game data files, as the path to the game contains Japanese letters). The game loads and works fine, so perhaps it's like wrong codepage(?) of prompt window, or like that.

OpenCS launches, but gives an error in any choice after some loading. (see the screenshoot attached)
BTW, I forgot to mention that I'm using Windows 7 32bit.

Regards

#20 Updated by scrawl . over 1 year ago

However same as for you, there are gibberish in sound devices listing (plus game data files, as the path to the game contains Japanese letters). The game loads and works fine, so perhaps it's like wrong codepage(?) of prompt window, or like that.

It would seem that this is to be expected, because the windows console does not use UTF8 by default: https://stackoverflow.com/questions/19955385/utf-8-in-windows-7-cmd

Not a big deal, you can always look at the correct output in openmw.log. Also, the console window may be removed at some point in the future.

#21 Updated by scrawl . over 1 year ago

  • Subject changed from Won't start on japanese locale to Editor won't start on japanese locale

#22 Updated by R. D. over 1 year ago

To nekomata:

OK, thanks for checking.

I do not see those errors you have on openmw-cs on a Japanese Windows 7 64 bit, so it seems the problem is something else (for example, that you use the Russian game? I'm using the English game). Maybe you should make a new bug report.

To Jannik:

Thanks for the explanation. I agree, the console window is not a big deal.

#23 Updated by R. D. over 1 year ago

Just to be clear, the problem I see is that OpenMW-CS fails to load in 0.39.0 (both official release and build (64fdc5a21a)) only if the Windows 7 account user name contains Japanese characters, because it fails to find the path (which contains the user name) to OpenMW in My Games. If the account name does not have Japanese characters I see no no problem on a Japanese locale.

I have never seen the (No More Records) error nekomata ww showed in his latest post, so it seems to me to be a different issue.

#24 Updated by Marc Zinnschlag about 1 year ago

  • Target version changed from openmw-0.40 to openmw-cs-1.0

#25 Updated by Jeffrey Haines 9 months ago

  • Subject changed from Editor won't start on japanese locale to OpenMW-CS: Won't start on japanese locale

Unify all editor ticket subjects to start with "OpenMW-CS:"

#26 Updated by Alexei Dobrohotov 6 days ago

I suspect a problem in this and that line. The conversion was introduced with this commit. I'm not entirely sure what this conversion (unicode to unicode?) is supposed to do and why does this work in base engine (or does it?), but I believe it converts a character to one-byte symbols and you can only encode kanji/kana in two bytes and more. Though a friend of mine corrected me and said that's not necessary and the byte length is variable, so I'm even more confused. I tried to patch this here but most probably that doesn't work, introduces other issues and I'm utterly incorrect.

#27 Updated by Kyle Cooley 6 days ago

UTF is a bit complicated. In UTF-8, a character may be represented using one to four bytes depending on which character it is. In UTF-16, a character may be represented using one or two so-called wide characters which are 2 bytes. In UTF-32 the basic unit is 4 bytes wide, and it only requires one of these units for each character. Conversion between these formats is not direct, and different libraries/apis may work with different versions of UTF.

Also available in: Atom PDF