patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.62k stars 350 forks source link

macOS: fails to open a preview window when run from iterm + tmux #273

Closed nkaretnikov closed 2 years ago

nkaretnikov commented 2 years ago

Works with just iterm and terminal app + tmux. What details do I need to provide to help you debug?

nkaretnikov commented 2 years ago

I wonder if iterm just lacks some macOS specific permissions or something, but I have no idea where to look that up.

patriciogonzalezvivo commented 2 years ago

Hi! thank you. What do you mean with a preview window? like the main window?

nkaretnikov commented 2 years ago

@patriciogonzalezvivo i mean the window where the shader is displayed

patriciogonzalezvivo commented 2 years ago

Oh! That doesn't sound good.

  1. You mean start's and crash?
  2. Do you mind sharing the error message and arguments used to execute it?
  3. Have you build from source, from the latest version on github? If yes, do you mind running it with --noncurses I suspect ncurses is producing the error.
nkaretnikov commented 2 years ago

hmmm, so now it seems to work, not sure what's different.

UNSUPPORTED (log once): POSSIBLE ISSUE: unit 0 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable

the only error msg i'm seeing is the above one.

now it starts fine in iterm + tmux. i think i just didn't notice it yesterday because it starts in the background and i had a terminal that was covering the whole desktop area.

yes, from src, yesterday. f4214d6284f17e8a46004f94b4cfbd4b7af01423

also (unrelated): i noticed it crashes if you pass a file that doesn't exist

nkaretnikov commented 2 years ago

also: would be cool if there were an option to start it on foreground (and keep it on foreground as well) -- i could create another issue for that. haven't checked whether there are any already

patriciogonzalezvivo commented 2 years ago

If you lunch the glslViewer with the -l or --life-coding arguments will lunch in the foreground and stay that way. You can learn more about arguments here https://github.com/patriciogonzalezvivo/glslViewer/wiki/Using-GlslViewer#4-other-arguments

What kind of file are you trying to pass? Do you mind sharing the command/files/arguments you are using? do you have user privileges on that folder?