Skip to content

Cryptomator doesn't open in Windows 10 with Japanese UI - OpenJDK bug? #1465

Description

@childoftheabyss

Description

(I tried to open an issue but it was closed because ignored the template, but I failed to see where :( )
Hi,
After I made an in-place reinstall of Windows, I changed the Windows UI from English to Japanese. Then, I installed Cryptomator with WebDav and Dokan checked, the installation ran without any problems. However, when I tried to open Cryptomator, nothing happened, no window, no notification bar icon, but the Cryptomator process briefly appeared for a few seconds in task manager and then it is gone. I googled around and could find some issues with the JDK:

https://bugs.openjdk.java.net/browse/JDK-8241245
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8249215

The attached log matches with the issues' log above, especially the exception thrown:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa8f07f74a, pid=2100, tid=4492

If I change back the UI from Japanese to English it works, with no reinstall needed. And if I go back to Japanese, it doesn't work. Also, running as administrator makes no difference (except the log file is written to Cryptomator folder).
I have another computer in Japanese which I can use Cryptomator normally, but I think that Windows is already the Japanese version (not UI language changed) and I am using a old version of Cryptomator (I can't check now because I am out of the city).
Looks like it is not a Cryptomator bug per si, but it may indicate that the next release should use the version 16 of JDK?

System Setup

  • Operating system and version:
    Edition Windows 10 Home
    Version 20H2
    Data of installation ‎11/‎12/‎2020
    OS Build 19042.685
    Experience Pack Windows Feature Experience Pack 120.2212.551.0
    Surface Pro 6
  • Cryptomator version: 1.5.10.0
  • Volume type: [Dokany/FUSE/WebDAV, shown in the settings]

Steps to Reproduce

  1. Install Windows 10 English Version
  2. Change the Windows UI to Japanese
  3. Try to open Cryptomator - nothing happens.

Expected Behavior

Cryptomator should open.

Actual Behavior

Cryptomator process briefly appears in task manager for a few seconds and then it is gone. Nothing else happens.

Reproducibility

Always

Additional Information

Log file attached, with some paths redacted. Log file is "C:\Program Files\Cryptomator\hs_err_pid2100.log". No Event Viewer logs.
%appdata%/Cryptomator log only has one line: 13:06:51.185 [main] INFO org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.5.10 on Windows 10 10.0 (amd64)

Workaround: Change Windows 10 UI to English :(
hs_err_pid2100.log

Thanks.

Activity

  1. overheadhunter commented on Dec 14, 2020

    @overheadhunter
    Member

    Thanks for reporting this. There is at least one other bug fixed in JDK 16, that I'm aware of. Therefore we'll update to JDK 16 asap.

  2. childoftheabyss commented on Dec 16, 2020

    @childoftheabyss
    Author

    Finally arrived home, the version which works is 1.5.8 exe-174, in Windows 10 Version 2004. I needed to rollback the Windows version in the Surface Pro from 20H2 to 1909 due many "bugs" (Microsoft "decisions") not related to Cryptomator, installed the Japanese ISO, however version 1.5.10.0 didn't work any way. But the 1.5.8 works, so for now I'm sticking with it (looks like it uses JDK 14).

    Thanks for the quick reply. I'll leave the issue open because I don't know if I should close.

  3. overheadhunter commented on Dec 16, 2020

    @overheadhunter
    Member

    If it isn't fixed with the current version, it is still an issue. Can you give 1.5.11 a try?

  4. added
    state:awaiting-response
    on Dec 16, 2020
  5. childoftheabyss commented on Dec 16, 2020

    @childoftheabyss
    Author

    Same error, process blinks, nothing happens. Version 1.5.11.
    Log attached.

    hs_err_pid15208.log

  6. removed
    state:awaiting-response
    on Dec 16, 2020
  7. overheadhunter commented on Dec 17, 2020

    @overheadhunter
    Member

    This crash log is identical of that in JDK-8241129, which is marked as duplicate of non-public JDK-8229126, which again is a duplicate of JDK-8249215, which points to the cause of this being -Dfile.encoding=UTF-8.

    @childoftheabyss Can you try removing -Dfile.encoding=UTF-8 from C:\Program Files\Cryptomator\app\Cryptomator.cfg?

    @infeo I think we introduced the file encoding because of WinFSP support, however I can't find any related issue that I can link this to. Is this not documented yet?

  8. infeo commented on Dec 17, 2020

    @infeo
    Member

    Sure, here is the issue (unfortunately closed, but not fixed): SerCeMan/jnr-fuse#75

    And a PR referencing it: SerCeMan/jnr-fuse#76

  9. overheadhunter commented on Dec 17, 2020

    @overheadhunter
    Member

    Not sure if we can consider that jnr-fuse PR a fix. It still requires UTF-8 and just prints a warning otherwise.

  10. childoftheabyss commented on Dec 17, 2020

    @childoftheabyss
    Author

    It worked!
    The %appdata%\Cryptomator log is:

    15:06:23.948 [main] INFO  org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.5.11 on Windows 10 10.0 (amd64)
    15:06:27.152 [JavaFX Application Thread] INFO  o.c.ui.launcher.FxApplicationStarter - JavaFX Runtime started.
    15:06:28.460 [App Background Thread 003] INFO  com.dokany.java.DokanyMount - Dokany API/driver version: 140 / 400
    15:06:29.465 [App Background Thread 003] INFO  o.c.ui.unlock.UnlockWorkflow - Unlock of 'Cryptomator' succeeded.
    15:06:31.295 [JavaFX Application Thread] WARN  o.cryptomator.ui.fxapp.FxApplication - has visible stages: true
    15:06:40.098 [JavaFX Application Thread] INFO  o.cryptomator.ui.common.VaultService - Revealed Cryptomator
    15:08:11.071 [App Background Thread 006] INFO  com.dokany.java.DokanyMount - Unmounting Dokan device at Y:\
    15:08:11.152 [JavaFX Application Thread] INFO  org.cryptomator.ui.lock.LockWorkflow - Lock of Cryptomator succeeded.
    15:08:13.644 [App Background Thread 004] INFO  com.dokany.java.DokanyMount - Dokany API/driver version: 140 / 400
    15:08:14.645 [App Background Thread 004] INFO  o.c.ui.unlock.UnlockWorkflow - Unlock of 'Cryptomator' succeeded.
    

    Just to make sure that Japanese characters won't brake the app, I created the folder ~\Documents\テスト漢字\テスト to store the encrypted volume and it mounted with no problems using Dokany and WebDAV. Is there something else I should test?

  11. overheadhunter commented on Dec 17, 2020

    @overheadhunter
    Member

    Thanks for verifying this, nothing else to test atm.

    @infeo I guess we should remove that -Dfile.encoding=UTF-8 again and reintroduce it not before the bug is fixed upstream with JDK 16. Until then, we need to postpone official WinFSP support.

  12. infeo commented on Dec 18, 2020

    @infeo
    Member

    We should be cautious about simply removing this line, because some users already tried (maybe even switched) to FUSE on Windows. If we remove it, it needs to be clearly communicated (even for users not reading release notes). A note in the installer would be good, but also the installer can be executed silent. Of course the latter might be more of an edge case.

  13. overheadhunter commented on Dec 18, 2020

    @overheadhunter
    Member

    Hard to tell if there is more users affected by this bug or already using WinFSP... 🤔

  14. infeo commented on Jan 13, 2021

    @infeo
    Member

    For affected users there are two workarounds:

    1. If you are not using FUSE as the virtual device technology, remove java-options=-Dfile.encoding=UTF-8 from C:\Program Files\Cryptomator\app\Cryptomator.cfg
    2. Otherwise you have to switch to another language ( i suggest one using latin letters to avoid further pitfalls) by adding the line java-options=-Duser.language=en to C:\Program Files\Cryptomator\app\Cryptomator.cfg

    Both require admin rights.

  15. infeo commented on Mar 19, 2021

    @infeo
    Member

    Fixed with update to JDK 16 in 31e938d

  16. added this to the 1.5.14 milestone on Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions