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

pressing v or delete or focusing window crashes #57

Open
SwirlyStone5877 opened this issue Apr 28, 2024 · 20 comments
Open

pressing v or delete or focusing window crashes #57

SwirlyStone5877 opened this issue Apr 28, 2024 · 20 comments
Labels
bug Something isn't working

Comments

@SwirlyStone5877
Copy link
Contributor

SwirlyStone5877 commented Apr 28, 2024

I am using Linux Mint 21.3 (Virginia) if that helps. The logs below are what happens when I launch it using ./matrix and through lightDM. (new people scroll down like 3 messages)

loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
loading material textures
loading texture 0
loading material textures
textureUnit: 20
textureUnit: 21
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Serial number of failed request:  75
  Current serial number in output stream:  77
@collinalexbell
Copy link
Owner

HackMatrix is a window manager and only 1 window manager can be running at a time on any screen, so launching it from lightDM won't work. You will need to launch X from a shell. A good option is to go to tty2 via fn2 (I think, may need to look that up) as the .xinitrc configuration from the readme to ~/.xinitrc (create the file if it doesn't exist), then run startx from the tty2 shell.

@SwirlyStone5877
Copy link
Contributor Author

oh ok

@SwirlyStone5877
Copy link
Contributor Author

SwirlyStone5877 commented Apr 29, 2024

it crashes when trying to use dmenu. everything works fine until i press v. (i used startx /home/swirly/HackMatrix/matrix while in the directory)

@SwirlyStone5877 SwirlyStone5877 changed the title Weird error (??) pressing v crashes Apr 29, 2024
@Rafi1018
Copy link
Contributor

it crashes when trying to use dmenu. everything works fine until i press v. (i used startx /home/swirly/HackMatrix/matrix while in the directory)

I guess try using default dmenu from suckless & see if that works

@collinalexbell
Copy link
Owner

Is there any type of error text when it crashes? It will have debug output for materials that I unfortunately forgot to delete, but it may also have error information. If you aren't seeing anything in output in crash you may need to try the developer mode with 'trampoline' (see readme)

@SwirlyStone5877
Copy link
Contributor Author

trampoline just gives a blank screen, with del or esc not working. startx logs are unreadable with matrix, most of it being enabling and disabling devices with no errors and not any serious warnings (font not found stuff). with trampoline it's the same.

@collinalexbell
Copy link
Owner

collinalexbell commented Apr 30, 2024

Hmmm. It is difficult to say what is happening. I should probably create a logging PR that improves startup logging so I can help diagnose issues like this. Is the color of the screen grey? That would indicate glfw is booting properly, but nothing is being loaded. If it is black or some other color, that indicates a crash. If you start without trampoline and replicate the error by pressing v, there may be logs in HackMatrix/logs/matrix.log that can help diagnose the problem.

@SwirlyStone5877
Copy link
Contributor Author

the trampoline screen is grey. i ran it in a terminal to see what would happen, and...

sh: 1: xdotool: not found
sh: 1: /home/collin/matrix/matrix: not found
Error executing terminator

(over and over again btw)

as for the logs, it's just a bunch of hello worlds and pixmap related stuff that repeat, no serious errors or anything.

@collinalexbell
Copy link
Owner

sudo apt install xdotool

Try that. I think I need to add another dependency to the readme. Sorry about that.

@SwirlyStone5877
Copy link
Contributor Author

well now it's just sh: 1: /home/collin/matrix/matrix: not found over and over again.

@collinalexbell collinalexbell added the bug Something isn't working label Apr 30, 2024
@collinalexbell
Copy link
Owner

Oh. That's not great. It's a hardcoded path in the 'trampoline'. The regular version might work now. I'll get a PR out for that trampoline today.

@SwirlyStone5877 SwirlyStone5877 changed the title pressing v crashes pressing v or focusing window crashes May 1, 2024
@SwirlyStone5877
Copy link
Contributor Author

so pressing v does this weird thing where it opens dmenu but crashes but with trampoline it just kinda stays open so when i type firefox it opens firefox but also when i focus it it crashes and im not able to interact with it again

@SwirlyStone5877
Copy link
Contributor Author

and delete crashes too

@SwirlyStone5877 SwirlyStone5877 changed the title pressing v or focusing window crashes pressing v or delete or focusing window crashes May 1, 2024
@collinalexbell
Copy link
Owner

collinalexbell commented May 1, 2024

Would you try opening and focusing a simpler program, like a terminal? Firefox was difficult to get working, so I want to see if all programs crash or just Firefox.

Also, it's weird that dmenu works under trampoline but not standalone matrix, since trampoline is just a runner for the same executable as the standalone.

@SwirlyStone5877
Copy link
Contributor Author

correction: dmenu stays open in the background (not visible) but is still interactable as long as i do not click

as for programs that aren't firefox, i can't test that right now. i will later.

@collinalexbell
Copy link
Owner

collinalexbell commented May 2, 2024

Ok. Can you run it in trampoline. Press <del> to escape to the terminal. Manually run ./matrix in the terminal and then reproduce the crash. There may be useful GL error info that gets printed.

@SwirlyStone5877
Copy link
Contributor Author

it happens to all programs, even ones that aren't firefox. and <del> crashes everything, making the steps you listed impossible. not even the terminal opens.

@collinalexbell
Copy link
Owner

collinalexbell commented May 8, 2024

Just had a thought... are you using more than 1 monitor? Right now the code only works with the primary monitor I think.

@SwirlyStone5877
Copy link
Contributor Author

no, i'm only using one monitor.

@laowumdzz
Copy link

I’m having the same error, and there is no specific error message in the log either.
log.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants