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

[Bug]: cider fails to launch #789

Closed
1 task done
asdfghjkl403622 opened this issue Apr 2, 2022 · 22 comments
Closed
1 task done

[Bug]: cider fails to launch #789

asdfghjkl403622 opened this issue Apr 2, 2022 · 22 comments
Assignees
Labels
bug Something isn't working platform: Linux Related to any Linux release or specific to Linux only. stale Issues that are no longer active.

Comments

@asdfghjkl403622
Copy link

Describe the Bug

Failed to load module "appmenu-gtk-module"
when using the cider release in the aur,
[12:19:24.079] [info] [AppEvents] App started [12:19:26.001] [info] [PluginHandler] Loaded plugins: [ 'chromecast.js', 'discordrpc.js', 'lastfm.js', 'menubar.js', 'mpris.js', 'thumbar.js', 'webNowPlaying.js' ] Authorization required, but no authorization protocol specified Trace/breakpoint trap (core dumped)
when using the git version in the aur,

Steps to Reproduce

launch inn terminal on wayland on kde plasma

watch as the segmentation fault comes in

Environment Information

  • OS: arch linux
  • App Version and/or Commit ID: cider-git-1.4.0.2872.78bd4594-1, cider-1.4.0.2846.60ea677c-1 both tested and had different issues

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@asdfghjkl403622 asdfghjkl403622 added bug Something isn't working needs-triage Awaiting triage. labels Apr 2, 2022
@cryptofyre
Copy link
Member

@coredev-uk mind looking into this?

@coredev-uk
Copy link
Member

Run cider with the --enable-features=UseOzonePlatform --ozone-platform=wayland args

@coredev-uk coredev-uk added platform: Linux Related to any Linux release or specific to Linux only. and removed needs-triage Awaiting triage. labels Apr 2, 2022
@adryd325
Copy link
Contributor

adryd325 commented Apr 3, 2022

Can reproduce.

Run cider with the --enable-features=UseOzonePlatform --ozone-platform=wayland args

This doesn't appear don't do anything on Xorg; even if I change --ozone-platform=wayland to --ozone-platform=x11

I get this when using the yarn start script

[593225:0402/231317.155844:ERROR:ozone_platform_x11.cc(248)] Missing X server or $DISPLAY
[593225:0402/231317.155875:ERROR:env.cc(226)] The platform failed to initialize.  Exiting.
The futex facility returned an unexpected error code.
Aborted (core dumped)

@Lampomaniac
Copy link

Lampomaniac commented Apr 3, 2022

Reproduced on with the Flatpak version on Fedora 35.

image

Edit: Both Wayland and X11 sockets were available.

@mefsaal
Copy link
Contributor

mefsaal commented Apr 3, 2022

Cider without args
❱❱❱ cider
[info] [AppEvents] App started
[info] WebGPU is enabled.
[info] [PluginHandler] Loaded plugins: [
'chromecast.js',
'discordrpc.js',
'lastfm.js',
'menubar.js',
'mpris.js',
'thumbar.js',
'webNowPlaying.js'
]
Authorization required, but no authorization protocol specified
[1] 2674 trace trap (core dumped) cider

Cider with args
❱❱❱ cider --enable-features=UseOzonePlatform --ozone-platform=wayland
[AppEvents] App started
[info] WebGPU is enabled.
[info] [PluginHandler] Loaded plugins: [
'chromecast.js',
'discordrpc.js',
'lastfm.js',
'menubar.js',
'mpris.js',
'thumbar.js',
'webNowPlaying.js'
]
[3541:0403/140220.260828:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is egl, ANGLE is
[3541:0403/140220.263103:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[14:02:20.296] [info] [AppEvents] App ready
[14:02:20.296] [info] [Cider] Application is Ready. Creating Window.
Authorization required, but no authorization protocol specified
[1] 3302 segmentation fault (core dumped) cider --enable-features=UseOzonePlatform --ozone-platform=wayland

If i delete the config directory cider run again until i reboot the pc

@mefsaal
Copy link
Contributor

mefsaal commented Apr 4, 2022

I found the the bug in my case is the "XAUTHORITY" Variable in the cider-config.json. Dont know why but the variable need to change every-time i reboot.

If i delete the variable, cider start and change the Arg in the variable
Example:

Reboot 1
"XAUTHORITY": "/run/user/1000/xauth_nglCWB"

Reboot 2
"XAUTHORITY": "/run/user/1000/xauth_EORCXj"

In Wayland and X11 is the same, always need to change.

@VasyaSovari
Copy link

VasyaSovari commented Apr 4, 2022

Verified.
Deleting cider-config.json allows cider-git to launch without issues.
The launch options suggested do nothing at all

I found the the bug in my case is the "XAUTHORITY" Variable in the cider-config.json. Dont know why but the variable need to change every-time i reboot.

If i delete the variable, cider start and change the Arg in the variable Example:

Reboot 1 "XAUTHORITY": "/run/user/1000/xauth_nglCWB"

Reboot 2 "XAUTHORITY": "/run/user/1000/xauth_EORCXj"

In Wayland and X11 is the same, always need to change.

@asdfghjkl403622
Copy link
Author

The flatpak version seems to work fine thankfully, but it would be nice to have the git version with all the latest patches. Can someone fix this bug?

@rowbawts
Copy link
Contributor

rowbawts commented Apr 4, 2022

The flatpak version seems to work fine thankfully, but it would be nice to have the git version with all the latest patches. Can someone fix this bug?

This obviously still needs resolution but just to comment I maintain the Flatpak/Flathub release and it automatically builds off the latest builds from git the only delay to release is a Flathub mandated delay, When a new version gets built it doesn't get published until a scheduled activity runs putting all unpublished apps in the queue live it's usually every 3 hours. You can watch the status here

@Lampomaniac
Copy link

The flatpak version seems to work fine thankfully, but it would be nice to have the git version with all the latest patches. Can someone fix this bug?

The flatpak version does not work for me.

@rowbawts
Copy link
Contributor

rowbawts commented Apr 4, 2022

The flatpak version seems to work fine thankfully, but it would be nice to have the git version with all the latest patches. Can someone fix this bug?

The flatpak version does not work for me.

To not clog up this issue page with potentially unrelated info if you join the Discord I can help you troubleshoot the Flatpak if you want to get that working. Just ping me in the support channel @ seby#0101

@mefsaal
Copy link
Contributor

mefsaal commented Apr 4, 2022

Verified. Deleting cider-config.json allows cider-git to launch without issues. The launch options suggested do nothing at all

I found the the bug in my case is the "XAUTHORITY" Variable in the cider-config.json. Dont know why but the variable need to change every-time i reboot.
If i delete the variable, cider start and change the Arg in the variable Example:
Reboot 1 "XAUTHORITY": "/run/user/1000/xauth_nglCWB"
Reboot 2 "XAUTHORITY": "/run/user/1000/xauth_EORCXj"
In Wayland and X11 is the same, always need to change.

hi, could just delete the "XAUTHORITY" line plz and tell me if cider work, not delete the al cider-config.json file. tell me if you have the same bug as i.

i think its a electron bug, but dont know.

Edit 1 :

Well i see cider store the "XAUTHORITY" inside the cider-config.json when its a token-cache value and change every reboot/login.

"(...)that the error is that the application is unable to contact your X11 display because it does not have permission to do so because it's running as a different user. Applications need a "magic cookie" (secret token) in order to talk to the X11 server so that other processes on the system running under other users cannot intrude on your display, create windows, and snoop your keystrokes."

More info in: https://www.x.org/archive/X11R6.8.1/doc/xauth.1.html

@VasyaSovari
Copy link

VasyaSovari commented Apr 5, 2022

Follow-up
[EDIT: important corrections]
First I tried commenting XAUTH out. That did nothing.
I then (without rebooting) deleted the line. That prompted a new Apple Music login window.
I deleted the line again and rebooted. No dice.

The only thing that has consistently worked is deleting the file.

However, I'm suspecting this is a change on Apple's side as my Followed Artists feed has also vanished again

hi, could just delete the "XAUTHORITY" line plz and tell me if cider work, not delete the al cider-config.json file. tell me if you have the same bug as i.

i think its a electron bug, but dont know.

Edit 1 :

Well i see cider store the "XAUTHORITY" inside the cider-config.json when its a token-cache value and change every reboot/login.

@mefsaal
Copy link
Contributor

mefsaal commented Apr 5, 2022

Follow-up [EDIT: important corrections] First I tried commenting XAUTH out. That did nothing. I then (without rebooting) deleted the line. That prompted a new Apple Music login window. I deleted the line again and rebooted. No dice.

The only thing that has consistently worked is deleting the file.

However, I'm suspecting this is a change on Apple's side as my Followed Artists feed has also vanished again

hi, could just delete the "XAUTHORITY" line plz and tell me if cider work, not delete the al cider-config.json file. tell me if you have the same bug as i.
i think its a electron bug, but dont know.
Edit 1 :
Well i see cider store the "XAUTHORITY" inside the cider-config.json when its a token-cache value and change every reboot/login.

you need delete the XAUTH line everytime you reboot, before open cider. The XUATH token change everytime you reboot the pc.

If this dont work for you; Can you upload the cider-config.json before and after delete plz?.

@VasyaSovari
Copy link

Deleting the XAUTH line after login and before launch does, indeed, work

you need delete the XAUTH line everytime you reboot, before open cider. The XUATH token change everytime you reboot the pc.

If this dont work for you; Can you upload the cider-config.json before and after delete plz?.

@mefsaal
Copy link
Contributor

mefsaal commented Apr 9, 2022

Hi i see the commit 0eb59d1 start the bug in linux platform. dont know why cider config needs store the "ENV" params

@mefsaal
Copy link
Contributor

mefsaal commented Apr 12, 2022

with the last merge patch, fixes the Cider bug on window. Plz Close it

@VasyaSovari
Copy link

Awesome.
Today Cider launched with no tinkering required.

@VasyaSovari
Copy link

...
And it's back to not launching unless I delete XAUTH.
That was fun for a good 12 hours

@mefsaal
Copy link
Contributor

mefsaal commented Apr 15, 2022

...
And it's back to not launching unless I delete XAUTH.
That was fun for a good 12 hours

Delete all cider folder config and try again. For my side, the xauth bug not happen anymore.

Update cider from last commit and try

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale Issues that are no longer active. label May 16, 2022
@coredev-uk
Copy link
Member

Apologies for the lack of my assistance with this, glad it managed to get resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: Linux Related to any Linux release or specific to Linux only. stale Issues that are no longer active.
Projects
Status: Completed / Merged into Main 🚀
Development

No branches or pull requests

8 participants