patriciogonzalezvivo / glslViewer

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

Segmentation fault on opening any .frag - MacOS Catalina on 2014 MBP #270

Closed squisho closed 2 years ago

squisho commented 2 years ago

Every time I open a .frag, the viewer opens and briefly displays the .frag file, and then immediately crashes and seg faults.

image

I have tried removing glslViewer and compiling it from source, redownloading ffmpeg, glfw, and other dependencies. I cant seem to get any information about the error apart from the seg faults when I open .frags.

When I run glslViewer alone, I get this:

image

https://user-images.githubusercontent.com/19274822/170743376-53595f1f-9afe-4c86-81bb-bcef9ea00630.mov

Could this be because I am on Catalina or running older Intel architecture?

patriciogonzalezvivo commented 2 years ago

oh that sound terrible. Do you mind:

  1. git pull to the latest version. Make sure deps/ada submodule is also in the latest main branch
  2. removing the build folder entirely
  3. commenting this lines https://github.com/patriciogonzalezvivo/glslViewer/blob/main/CMakeLists.txt#L97-L101
  4. re make the build folder, cd into it, run cmake.. and then make as is described here https://github.com/patriciogonzalezvivo/glslViewer/wiki/Compile-on-MacOS#3-compile ??

Apparently the new integration is keeping you out of seeing the prompts. By commenting those lines it shouldn' t compile support for it.

The plan is to gather more data without ncurses. In the case that fix it... try uncommenting the same lines. and repeat removing and creating the build folder. And see if the problem is coming from ncurses.

I don't think is because of the OS or architecture of your computer. Sorry for all this troubles

sejinpark12 commented 2 years ago

I had the same issue. It works fine now thanks to your help

squisho commented 2 years ago

That fixed it! Thank you @patriciogonzalezvivo 🙏

squisho commented 2 years ago

For future reference, commenting out the lines mentioned in [3] solved the issue, and uncommenting them led to the segmentation fault error happening again.