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

Weird crash of Wayland when using "yab" command (but not dist/bin.js) #1

Open
metal3d opened this issue Oct 24, 2021 · 2 comments
Open

Comments

@metal3d
Copy link

metal3d commented Oct 24, 2021

Hi,
Very interested in your tool.
I tried to use it from my node_modules using:

./nodes_modules/.bin/yab ./dist

This makes the display freezing and the computer stop to answer (from the terminal, I see an error about Ximage and the keyboard doesn't respond, a weird mouse cursor appears and I need to restart the computer)

But, using:

node ./node_modules/add-js-extension/dist/bin.js ./dist/

No problem... this works correctly.

Using Fedora 34

@djfm
Copy link
Owner

djfm commented Oct 24, 2021

Hi, thanks for your interest!

Heard there might be a more native way to do what m'y module's doing now! I was referred to this PR microsoft/TypeScript#44501 but haven't had time to explore it yet.

As for the bug, it is extremely strange, I can actually reproduce it, except I do get the freeze also in the second case.

I've tried rebuilding the JS from the current source on GitHub and re-executing the module, just to check if I hadn't inadvertently published something stupid, but I also get the bug.

So I would think the cause is external to the program, as nothing in the code has changed.
Only major thing I changed in my setup was upgrading Ubuntu, which probably upgraded Wayland.

I have libwayland 1.19.0-2build1 and xwayland 2;21.1.2-0ubun. What version of Wayland do you have?

Also, is what you see in the console similar to this?

import import: Unable to grab mouse [No such file or directory].
import import: Unable to read X window image () [No such file or directory].
import import: abort due to signal 11 (SIGSEGV) "Segmentation Fault"...
Aborted (core dumped)
import import: Unable to grab mouse [No such file or directory].
import import: Unable to read X window image () [No such file or directory].
import import: abort due to signal 11 (SIGSEGV) "Segmentation Fault"...
Aborted (core dumped)

Interesting issue, I will dig into it.

@metal3d
Copy link
Author

metal3d commented Oct 26, 2021

That's exactly the output I see.

My Wayland version is 1.19.0 too on Fedora 34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants