-
Notifications
You must be signed in to change notification settings - Fork 46
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
Desktop app won't stay connected on Windows #170
Comments
Another error I noticed: and Which leads to this Github Issue: element-hq/element-desktop#1082 |
When launching it from CLI, I get the following messages: Keytar unexpected error: Error: \\?\C:\Users\Username\AppData\Local\Programs\schildichat-desktop\resources\app.asar.unpacked\node_modules\keytar\build\Release\keytar.node is not a valid Win32 application.
\\?\C:\Users\Username\AppData\Local\Programs\schildichat-desktop\resources\app.asar.unpacked\node_modules\keytar\build\Release\keytar.node
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
at Module._extensions..node (node:internal/modules/cjs/loader:1205:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:2039)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\Username\AppData\Local\Programs\schildichat-desktop\resources\app.asar\node_modules\keytar\lib\keytar.js:1:14)
at Module._compile (node:internal/modules/cjs/loader:1120:14) {
code: 'ERR_DLOPEN_FAILED'
}
Seshat unexpected error: Error: error: 193\\?\C:\Users\Username\AppData\Local\Programs\schildichat-desktop\resources\app.asar.unpacked\node_modules\matrix-seshat\native\index.node
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
at Module._extensions..node (node:internal/modules/cjs/loader:1205:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:2039)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\Username\AppData\Local\Programs\schildichat-desktop\resources\app.asar\node_modules\matrix-seshat\lib\index.js:16:22)
at Module._compile (node:internal/modules/cjs/loader:1120:14) {
code: 'ERR_DLOPEN_FAILED'
} I then looked at what types those files are: file keytar.node
keytar.node: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=e4f84babcb39da7424c2d0a673ccb712bc0c1ad1, with debug_info, not stripped
file index.node
index.node: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=786989b010f7a9e07f64319680da479b59b9605f, with debug_info, not stripped Then I replaced those files with a working version from Element-Desktop and looking at the files again looks like this: file keytar.node
keytar.node: PE32+ executable (DLL) (GUI) x86-64, for MS Windows
file index.node
index.node: PE32+ executable (DLL) (GUI) x86-64, for MS Windows With this, the keytar issue disappeared, however the issue with OLM.BAD_ACCOUNT_KEY still exists |
It may help to build on Windows. |
I have the same problem on Windows 10. Fresh installation. Edit: just tried the 1.7.24 portable version on my fresh Win 10 installation and works fine. |
same here with the latest installed version |
Just did check and found only works
More fresh versions are keep losing connection. It is very simple to reproduce issue:
PS. Was bit frustrated.. We are moving from slack to matrix this week and I found Schildi much more usefull comparing to Element, thought to suggest my colleagues to use it, but then found it has such a annoying bug :( . Good to find there is a build which can work. But now it still cannot decrypt my message in private chats. Hope it will do after awhile... Other devices are online and even tried open it. No request come for it. |
The problem i found it seems much deeper! I sent couple messages in chats from the sessions which are broken now and cannot recover. So those messages are cannot be decrypted anymore! |
Windows 10 here. I'm trying both v1.11.8-sc.1 and v1.11.22-sc.1 (Portable). Both keep losing connection after I close them and reopen them. v1.7.24-sc1 indeed works properly. EDIT: I just tried v1.11.4-sc.1 and it also stays connected. |
Btw, as a workaround - after setup and configure 1.11.4, then upgrade to latest, so far works fine. Seems like newer versions cannot store token properly, but once it store in settings - newer versions can use it. |
OMG, thank you so much! It works! Even clicking on "Help & About", which caused the settings page to just close before (on v1.11.22-sc.1) now works as it should. Thank you! |
Is there any chance to get it fixed ? It is already half an year nobody care it . Even I found workaround, that workaround giving another annoying issue, after upgrade from 1.11.4 - clipboard not working, I cannot paste images from clipboard. Then another issue - mentions is not working! Its just driving my crazy! I cannot use Element because lack of functions, then I cannot use Schildi because cannot paste screenshots and cannot use mentions! Btw, digging into problem I found settings folder Preferences file has no "device_id_salt" value on 1.11.25, could that be cause ? |
I'm not using Windows myself and I have no clue at all how to fix that. |
I'm not trying to blame you, but still. Nobody knows the product better than you. Is it such a difficult to setup VM with Windows and try ? |
I set up a VM and tried: #170 (comment) |
Btw, this is exactly what I need help for because I don't know how to. |
Just for keeping it around somewhere and not having it lost in the graveyard of Matrix history: Attempt to build on Windows by BraidRequirements to build native modulesMake sure to install the following tools before trying to build the native modules. They're needed.
![[Pasted image 20230426162147.png]] This will take a few minutes now depending on your internet connection... Install chocolatey and packagesInstall choco and choco install make and grep and sed... Intalling yarnThis step is very easy. Just open a cmd (Command Prompt) and type:
Building SchildiChatClone the repo
Navigate to the cloned repo
Add Seshat for search in E2E encrypted rooms
Rebuild native libraries against Electron's version of node rather than your system node
**Navigate into schildichat-desktop folder
Install webapp
Now copy and paste the webapp folder inside schildichat-desktop/element-web to schildichat-desktop/element-desktop Build it as described here by Element
|
Thank you so much for this. It was really driving me crazy, and I thought about switching back to Element. |
I'm experiencing the same bug too on 1.11.30. The downgrade to 1.11.4, then subsequent upgrade works around this. |
Same here, and on Windows 10 as well. |
is anybody working on this problem right now? Seems like that even the mentioned workaround does not really work. At least I was dropped out today and had to downgrade to v1.11.4-sc.1 to stay connected. |
We need someone who is good with Windows and motivated to fight it. Of course this is a really annoying issue, but the core SchildiChat team does currently not have sufficient resources to tackle this, unfortunately. |
Do y'all need a Windows machine? Serious question. Is it a lack of skill or a lack of gear? (And again, I don't mean that to be rude, I don't have any skill at all, I have just enough skill to look at code and go "yup, that's code alright" and nothing else.) If it's lack of skill, fair enough. But if it's lack of gear, I'd be willing to chip in some money toward a Windows PC for someone. Nothing fancy, no gaming laptops or anything, but I'm certain I can find you a usable Windows 11 device on clearance that's good enough for you to test and troubleshoot accordingly. |
No, we have that, thank you for your offer.
Time and motivation. Or if you want to skill, while I wouldn't call it that but rather lack of time to go the hard route to acquire all the knowledge about Windows-foo, that's why we're asking for help (we still want to build Windows release ourselves ideally, but just need a good guide how one sets up an appropriate build setup for EleDesktop on Windows, which should normally be a super easy task, but somehow nobody seriously willing to try succeeded in the end, go figure). Remember, this is a hobby project, so we prefer to do what's fun to us to a certain degree. Linux tends to be fun, while Windows doesn't, at least in our eyes. It would be cool if someone could work out Windows-specific details who would also benefit from this work, as we (core team) don't benefit from it personally - no Windows in use here except for very rare occasions. |
Same problems on 1.11.30-sc.2, tried both portable and install. When you first sign in, everything works. But when you close the app and reopen: "Connectivity to the server lost" Tried "join the beta too", doesn't help. I am Ok with windows let me try and fix this. 🤞 This works:
So something happened thereafter, alright will investigate and let y'all know. |
Started using SchildiChat again on windows 11, started getting this. I was under the impression that the windows build was stable, but it seems like the latest build consistently stops working? Was using the setup exe from the latest release, v1.11.30-sc.2. When it happens, my console is flooded with "rageshake.ts:74 M_MISSING_TOKEN: MatrixError: [401] Invalid Authorization header." and "Failed to load resource: the server responded with a status of 401" errors. All rooms state "Connectivity to the server has been lost.", with with the title bar stating SchildiChat is [Offline] and a red X on the icon. Signing out and back in seems like it worked for the most part, but doing that and verifying with another login session what I can only imagine will be somewhat frequently seems like too much of a hassle. Hope this issue can be resolved, as SchildiChat has many quality of life features over Element, and what seems like the widest support for features among matrix clients. |
Same on windows 10. Alos can't open Setting -> Help & About when connectivity is lost. |
in the latest version, this issue still exists. Honestly, I believe most of IM app users have and use Android/IOS+Windows, and some of them have Mac, what I mean is improving the Desktop version is necessary and worth working. I really hope SchildiChat to improve and we can recommend it to friends |
Should be working starting with https://github.com/SchildiChat/schildichat-desktop/releases/tag/v1.11.81-sc.0.test.0 . |
Thank you, now I have installed the new version, and up till now it's working well. |
Describe the bug
SchildiChat destkop app will not stay connected on Windows 11. Upon first run, it will install and synchronize. Shortly thereafter - within a few minutes (didn't time it exactly, sorry) - it loses connection. Every subsequent launch, it will not establish a connection or sync again.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
SchildiChat should log in and work as expected indefinitely, including on restarts.
Other users in the SchildiChat Matrix room reported being able to recreate this bug.
The text was updated successfully, but these errors were encountered: