ferdium-app icon indicating copy to clipboard operation
ferdium-app copied to clipboard

Bug: Ferdium won't open in Windows

Open Ansem93 opened this issue 2 years ago • 19 comments

Avoid duplicates

  • [X] I have searched the issues tracker for a bug report similar to mine, in vain

Ferdium Version

6.2.4

What Operating System are you using?

Windows

Operating System Version

Windows 10 22h2

What arch are you using?

x64

Last Known Working Ferdium version

6.2.x

Expected Behavior

When I try to open Ferdium it should open

Actual Behavior

When I try to open Ferdium I see 3 tasks in the task manager but the UI won't open. I tried to uninstall and install the latest version but nothing changed It's basically impossible to use it

From the screenshot: 3 running tasks from Ferdium, but the app is not open neither in the task bar and tray bar.

Steps to reproduce

  1. Open Ferdium
  2. Look at tasks in the task manager

Debug link

No response

Screenshots

2023_01_20 - 15_05_13 - Discord

Additional information

No response

Ansem93 avatar Feb 05 '23 21:02 Ansem93

Similar behavior on 6.2.4 but in macOS: app opens, briefly seems loaded normally but then no windows show up. See behavior reflection in menu bar: https://user-images.githubusercontent.com/15906764/216970149-35d42aa8-ff67-4b8a-83b6-cae168136726.mov Maybe also related to https://github.com/ferdium/ferdium-app/issues/923

marnovo avatar Feb 06 '23 12:02 marnovo

Exact same behaviour for me also on Windows 11 as of this morning

Willizxy avatar Feb 09 '23 16:02 Willizxy

I have a similar problem on Manjaro. It started some days ago. Ferdium (6.2.4 snap) doesn't start at all. If I try to start it via terminal, I get the following output:

$ ferdium

update.go:85: cannot change mount namespace according to change mount (/run/user/1000/doc/by-app/snap.ferdium /run/user/1000/doc none bind,rw,x-snapd.ignore-missing 0 0): cannot inspect "/run/user/1000/doc": lstat /run/user/1000/doc: permission denied

Gtk-Message: 11:17:36.075: Failed to load module "xapp-gtk3-module"

Gtk-Message: 11:17:36.076: Failed to load module "xapp-gtk3-module"

Trace/Breakpoint ausgelöst (Speicherabzug geschrieben)

robbionline avatar Feb 10 '23 10:02 robbionline

Deleting the folder %AppData%/Ferdium will make ferdium work again, but of course you'll lose everything.

After playing around, I can confirm that the issue is with something inside the config folder. I renamed ferdium_old the folder, then moved one subfolder at time and it stopped opening as soon as I moved the config folder

Ansem93 avatar Feb 10 '23 17:02 Ansem93

It works for me like this:

Open %AppData%

  1. I renamed the folder from Ferdium to ferdium_old
  2. Open the Ferdium App
  3. It will create a new Ferdium folder
  4. Quit ferium
  5. Copy the "config" folder
  6. Paste to your old folder
  7. Delete "Ferdium" folder
  8. Done

kevintaw2 avatar Feb 17 '23 05:02 kevintaw2

A bit more refined, the problem comes with the settings.json in the config folder. For me it worked with:

  1. Close Ferdium on the task manager
  2. Delete settings.json from AppData\Roaming\Ferdium\config
  3. Reopen Ferdium

It will create a new settings.json. In my case it deleted the master PIN code. Big security flaw?

JackGraymer avatar Mar 04 '23 17:03 JackGraymer

Sorry - this was troubleshooted in our Discord channel by me sometime ago. I thought it was the same OP from here who had posted there. Yes, a corrupted config/settings.json can cause issues. The simplest solution is to take a backup of that file when you know Ferdium is working. If the above behavior is faced, then replace with the backup after quitting Ferdium.

vraravam avatar Mar 05 '23 01:03 vraravam

That is great news.

Maybe someone should leave this answer in github issues and close the it.

On Sun, 5 Mar 2023, 02:52 Vijay Aravamudhan, @.***> wrote:

Sorry - this was troubleshooted in our Discord channel by me sometime ago. I thought it was the same OP from here who had posted there. Yes, a corrupted config/settings.json can cause issues. The simplest solution is to take a backup of that file when you know Ferdium is working. If the above behavior is faced, then replace with the backup after quitting Ferdium.

— Reply to this email directly, view it on GitHub https://github.com/ferdium/ferdium-app/issues/932#issuecomment-1454955651, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJC3W7ALSEQKPFOG7NNJBDW2PWVFANCNFSM6AAAAAAUR773DU . You are receiving this because you commented.Message ID: @.***>

JackGraymer avatar Mar 05 '23 07:03 JackGraymer

I had this "Something went wrong" crash too, I renamed the settings.json (it is in: c:\Users\f\AppData\Roaming\Ferdium\config\settings.json) to ...bak and restarted Ferdium to recreate it, then I compared it. I found different:

"hibernationStrategy": "300",
"wakeUpStrategy": "300",
"wakeUpHibernationStrategy": "0",

this was:

"hibernationStrategy": 300,
"wakeUpStrategy": 300,
"wakeUpHibernationStrategy": 0,

so the values were without quotes. I dont know if that is important now, I am on 6.3.0-nightly.14 on Windows 10. Since I changed that (took the new created settings.json and changed only my personal settings, but kept the quotes from the new settings.json file, no more crash. But this is just some minutes (it crashed faster than a minute before, though). frank

francwalter avatar May 31 '23 09:05 francwalter

Same behavior in 6.6.0. Tried all the suggestions in this thread, nothing worked. Opening in terminal reported:

SyntaxError: C:\Users\USER\AppData\Roaming\Ferdium\config\proxy.json: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at readFileSync (C:\Users\USER\AppData\Local\Programs\Ferdium\resources\app.asar\node_modules\jsonfile\index.js:52:17)
    at n._hydrate (C:\Users\USER\AppData\Local\Programs\Ferdium\resources\app.asar\electron\Settings.js:1:1313)
    at new Settings (C:\Users\USER\AppData\Local\Programs\Ferdium\resources\app.asar\electron\Settings.js:1:1007)
    at Object.<anonymous> (C:\Users\USER\AppData\Local\Programs\Ferdium\resources\app.asar\index.js:1:2226)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/asar_bundle:2:13327)

After deleting proxy.json the app opens again, however, all my services are gone…

kastnerp avatar Nov 02 '23 16:11 kastnerp

Same problem on Linux with Flatpak

$ flatpak run org.ferdium.Ferdium
SyntaxError: /home/pawel/.var/app/org.ferdium.Ferdium/config/Ferdium/config/settings.json: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at readFileSync (/app/Ferdium/resources/app.asar/node_modules/jsonfile/index.js:52:17)
    at n._hydrate (/app/Ferdium/resources/app.asar/electron/Settings.js:1:1313)
    at new Settings (/app/Ferdium/resources/app.asar/electron/Settings.js:1:1007)
    at Object.<anonymous> (/app/Ferdium/resources/app.asar/index.js:1:2173)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
Gtk-Message: 17:20:21.358: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:20:21.360: Failed to load module "canberra-gtk-module"

pktiuk avatar Dec 07 '23 16:12 pktiuk

After removing problematic files my services are gone, but still the app is broken. I get Could not load services and user information

Terminal shows:

[MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: [email protected]
[2:1207/172831.471962:ERROR:nss_util.cc(239)] Error initializing NSS with a persistent database (sql:/home/pawel/.pki/nssdb): NSS error code: -8126

pktiuk avatar Dec 07 '23 16:12 pktiuk

not able to open ferdium 6.7.0 on windows 10, it just appears in task managed and that's it.

alescinskis avatar Feb 05 '24 21:02 alescinskis

It happened to me today, Windows 11. I opened the config.json file with Notepad++ and it was totally corrupted. Deleted it and proxy.json (same problem), it works. Services was still here but all Ferdium configuration had to be done. Now, I backuped the two json files.

bsdev90 avatar Mar 04 '24 09:03 bsdev90

Same here. Windows 11.

By(t)e

andbad avatar Apr 12 '24 16:04 andbad

Delete **config.json ** and proxy.json if needed. Reopen ferdium, check and apply desired configuration. Create a backup of the file and save it in a subfolder. Use backup when issue arises.

JackGraymer avatar Apr 12 '24 16:04 JackGraymer

Yes, I had read. An unpleasant problem but easy to resolve (if you find this issue).

Byte

andbad avatar Apr 12 '24 17:04 andbad

It works for me like this:

Open %AppData%

  1. I renamed the folder from Ferdium to ferdium_old
  2. Open the Ferdium App
  3. It will create a new Ferdium folder
  4. Quit ferium
  5. Copy the "config" folder
  6. Paste to your old folder
  7. Delete "Ferdium" folder
  8. Done

I met this problem too and can't solve. Where can I find config folder?

Thanks.

BugsBunnyDr avatar Jul 29 '24 09:07 BugsBunnyDr

It works for me like this: Open %AppData%

  1. I renamed the folder from Ferdium to ferdium_old
  2. Open the Ferdium App
  3. It will create a new Ferdium folder
  4. Quit ferium
  5. Copy the "config" folder
  6. Paste to your old folder
  7. Delete "Ferdium" folder
  8. Done

I met this problem too and can't solve. Where can I find config folder?

Thanks.

Here it is: User > AppData > Roaming > Ferdium > Config

kevintaw2 avatar Jul 29 '24 12:07 kevintaw2