Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%1 is not a valid Win32 application. when using wordninja_windows_64_lua53.dll #48

Open
sci-42ver opened this issue Mar 14, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@sci-42ver
Copy link

sci-42ver commented Mar 14, 2024

I used linux before where I tried wordninja-rs-lua or compiling wordninja-rs and all works fine.

But when I used weasel recently in Windows 11 22H2 22621.3155, I used rime.lua to use easy_en_enhance_filter and checked in git-bash

$ pwd
/d/Rime/weasel-0.15.0
$ ls lua53.dll data/wordninja_windows_64_lua53.dll
data/wordninja_windows_64_lua53.dll*  lua53.dll*
$ cat /tmp/rime.weasel.DESKTOP-O0JBM8G.czg.log.ERROR.20240314-162538.1228
...
E20240314 16:25:38.838465 19952 lua_gears.cc:59] Lua Compoment of initialize  error:( module: easy_en_enhance_filter name_space: easy_en_enhance_filter status: 2 ): error loading module 'wordninja' from file 'D:\Rime\weasel-0.15.0\data\wordninja_windows_64_lua53.dll':
        %1 is not a valid Win32 application.
E20240314 16:25:47.078372 19952 lua_gears.cc:15] LuaTranslation::Next error(2): D:\Rime\weasel-0.15.0\data\lua\easy_en.lua:59: attempt to call a nil value (upvalue 'wordninja_split')
...

I use the 64-bit system, and I tried to redownload the wordninja_windows_64_lua53.dll as this website hint but it didn't help.

@BlindingDark
Copy link
Owner

Sorry I don't have a Windows device for testing, but you can try wordninja_windows_32_lua53.dll first.

@BlindingDark BlindingDark added the help wanted Extra attention is needed label Mar 14, 2024
@sci-42ver
Copy link
Author

sci-42ver commented Mar 14, 2024

Sorry I don't have a Windows device for testing, but you can try wordninja_windows_32_lua53.dll first.

Yes. I also tried this before posting this issue. wordninja_windows_32_lua53.dll will cause weasel directly crashing without even creating one error log. (Sorry for not saying that explicitly when posting)

Since you don't have one Windows device, feel free to let this problem be there. Normally I only needs the feature to add the space after each word due to the input habit of choosing one candidate for the word after pressing some keys. So deleting some codes in the corresponding lua code is enough. I also find one better solution (although a bit different) tracking what key is pressed (so we can decide when to avoid the space like at the end of one sentence by pressing one specific key) when I tried the default rime-ice method of iOS Hamster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants