-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
glslViewer crashes on mac immediately upon opening #294
Comments
Any idea what could be causing this? I had deleted a previous version of glslViewer before trying to compile it by source. I wonder if it's possible this might have had something to do with it? |
Use ‘whereis glslViewer’ and/or ‘which glslViewer’ on the terminal. That should tell you all glslViewer versions on your computer. Remove them, make a new recursive clone of the glslViewer, compile and install according to the instructions. Make sure you don’t use brew to install it.
Let’s se if that helps.
❤️
…
On Oct 20, 2022, at 7:10 PM, jacklion710 ***@***.***> wrote:
Any idea what could be causing this? I had deleted a previous version of glslViewer before trying to compile it by source. I wonder if it's possible this might have had something to do with it?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Hey, thanks for the tip. Doesn't seem to be working still. after deleting everything related to glslViewer, I tried compiling from source again to no avail |
what happens when you do ‘./glslViewer -v’ ?
… On Oct 20, 2022, at 7:49 PM, jacklion710 ***@***.***> wrote:
Hey, thanks for the tip. Doesn't seem to be working still. after deleting everything related to glslViewer, I tried compiling from source again to no avail
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Then the terminal returns: |
You will need to ‘cd’ into the build folder
…Sent from my iPhone
On Oct 20, 2022, at 8:06 PM, jacklion710 ***@***.***> wrote:
Then the terminal returns:
-bash: ./glslViewer: is a directory
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Ah, in that case I then get: This is a flexible console-base OpenGL Sandbox to display 2D/3D GLSL shaders without the need of an UI. You can definitely make your own IDE or UI that communicates back/forth with glslViewer thought the standard POSIX console In/Out or OSC. For more information:
Usage: Optional arguments:
|
and what happens when from that folder you do:
|
At that point, glslViewer will launch and immediately crash and give: pretty much the same sequence of events as if I were to try and open it normally. |
Wasn't able to replicate your error on a M1... but did catch other Segmentation fault: 11 when saving. |
Sure thing. After updating and compiling, git pull reports that it is now up to date. However I still seem to be getting the same error as well as the segmentation fault. Just to be clear, I am using an intel mac with Catalina. |
To double check, you update the repo and then compile it again. Right? |
Actually, I had deleted the repo from my computer and began the process over again which included recompiling. But after you asked, I tried making sure I didn't miss it by updating with 'git pull' and then recompiling. Now it says version 3.0.4 but I still get the same issue when using './glslViewer ../examples/2D/00_tests/test.frag -l' |
I went through the same thing with a fresh copy. Running on Intel Mac with Catalina. Segmentation fault: 11 and immediately crashes. P.S.: See you guys in class :) |
Mmm... this one is weird one. I got a M1 Mac Book Pro and I can not replicate the issue on my side. : ( Do you mind mind sharing the output of:
|
Sure, I guess it returned nothing... But here is what I see: JackLions-MBP:~ jacobleone$ whereis glslViewer My guess is probably not very educated in regards to this issue, but I do wonder if there is something in the security settings that is blocking it from launching. I wasn't able to locate anything that jumped out to me when I checked but I would be willing to help you dig deeper on this if you wish. If not then don't sweat it too much for now! Do you think it might possibly work if I upgraded to a newer version of macOS? |
I am experiencing the same issue. Intel Macbook, OS 10.15.4. After following all of the install instructions (not via brew), glslViewer is installed at |
@jacklion710 I was thinking the same thing, but I don't know how to check. |
Seems like everyone in this thread is running Catalina on an Intel Macbook. Not that means anything... just trying to find a pattern |
I just solve a segmentation fault associated to multiple double buffers 1cb2b46 in case you want to see if it's related to your case |
@patriciogonzalezvivo I just rebuilt glslViewer and I get the same error. Please take this kindly :) but the course is on shader workflow and this piece seems to be crucial. I would love it if I could follow along live, but if that's not possible, at least later with the recording. Let me know if you need me to share a screen or run some tests. |
@ppscvalentin @dextor @jacklion710 I'm really sorry this issue is taking so long to resolve. Specially on the look for the upcoming workshop. I'm getting and old mac book so I can try to replicate the issue [fingers crossed] but probably will not happen before tomorrow class. Hope you can understand. On the bright side, the class will be recorded and you will have access to it for a year. Thanks for your patience. |
Nothing to worry about @patriciogonzalezvivo I can still follow along with glslViewer on my PC tomorrow so no big deal. I admire your determination to make this work for everyone! Feel free to reach me later on if you make some progress or need me to test a new build. |
Thanks @patriciogonzalezvivo , I know class is going to be awesome and there's no reason for this be a blocker to that! |
Hi, I am getting the same issue on Mac Monterrey with an ARM M1 mac. So I don't think the issue is isolated to old intel macs |
Ok, this could be an actually lead (or a total read hearing). Wonder if you had brew install ffmpeg --build-from-source As a side note, I'm running on Apple M1 Pro with MacOS Monterey my self with no issues. Ffmpeg was install through aboves command and if I [~/Desktop/glslViewer]$ brew list ffmpeg
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/aviocat
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/bisect-create
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/cl2c
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/clean-diff
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/crypto_bench
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/cws2fws
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/dvd2concat
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/enum_options
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffescape
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffeval
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffhash
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffmpeg
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffplay
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffprobe
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/fourcc2pixfmt
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/gen-rc
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/graph2dot
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ismindex
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/libav-merge-next-commit
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/loudnorm.rb
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/make_chlayout_test
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/missing_codec_desc
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/murge
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/normalize.py
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/patcheck
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/pktdumper
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/plotframes
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/probetest
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/qt-faststart
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/scale_slice_test
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/seek_print
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/sidxindex
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/target_dec_fate.sh
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/trasher
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/uncoded_frame
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/unwrap-diff
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/venc_data_dump
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/zmqsend
/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/zmqshell.py
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libavcodec/ (25 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libavdevice/ (3 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libavfilter/ (5 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libavformat/ (4 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libavutil/ (91 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libpostproc/ (3 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libswresample/ (3 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libswscale/ (3 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/libavcodec.59.37.100.dylib
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/libavdevice.59.7.100.dylib
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/libavfilter.8.44.100.dylib
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/libavformat.59.27.100.dylib
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/libavutil.57.28.100.dylib
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/libpostproc.56.6.100.dylib
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/libswresample.4.7.100.dylib
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/libswscale.6.7.100.dylib
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/pkgconfig/ (8 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/lib/ (24 other files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/share/ffmpeg/ (35 files)
/opt/homebrew/Cellar/ffmpeg/5.1.2/share/man/ (22 files) Ncurses it's also installed through [~/Desktop/glslViewer]$ brew list ncurses
/opt/homebrew/Cellar/ncurses/6.3/bin/captoinfo
/opt/homebrew/Cellar/ncurses/6.3/bin/clear
/opt/homebrew/Cellar/ncurses/6.3/bin/infocmp
/opt/homebrew/Cellar/ncurses/6.3/bin/infotocap
/opt/homebrew/Cellar/ncurses/6.3/bin/ncurses6-config
/opt/homebrew/Cellar/ncurses/6.3/bin/ncursesw6-config
/opt/homebrew/Cellar/ncurses/6.3/bin/reset
/opt/homebrew/Cellar/ncurses/6.3/bin/tabs
/opt/homebrew/Cellar/ncurses/6.3/bin/tic
/opt/homebrew/Cellar/ncurses/6.3/bin/toe
/opt/homebrew/Cellar/ncurses/6.3/bin/tput
/opt/homebrew/Cellar/ncurses/6.3/bin/tset
/opt/homebrew/Cellar/ncurses/6.3/include/ncursesw/ (20 files)
/opt/homebrew/Cellar/ncurses/6.3/include/ (6 files)
/opt/homebrew/Cellar/ncurses/6.3/lib/libformw.6.dylib
/opt/homebrew/Cellar/ncurses/6.3/lib/libmenuw.6.dylib
/opt/homebrew/Cellar/ncurses/6.3/lib/libncurses++w.6.dylib
/opt/homebrew/Cellar/ncurses/6.3/lib/libncursesw.6.dylib
/opt/homebrew/Cellar/ncurses/6.3/lib/libpanelw.6.dylib
/opt/homebrew/Cellar/ncurses/6.3/lib/pkgconfig/ (9 files)
/opt/homebrew/Cellar/ncurses/6.3/lib/ (37 other files)
/opt/homebrew/Cellar/ncurses/6.3/share/man/ (898 files)
/opt/homebrew/Cellar/ncurses/6.3/share/tabset/ (4 files)
/opt/homebrew/Cellar/ncurses/6.3/share/terminfo/ (2819 files)
/opt/homebrew/Cellar/ncurses/6.3/test/package/ (23 files)
/opt/homebrew/Cellar/ncurses/6.3/test/ (129 files) Another thing to check is your GCC compiler version you have: [~/Desktop/glslViewer/build]$ gcc --version
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin Last thing to double check is where you are sourcing you OpenGL framework. At the begining of the compilation you should see some data about it: [~/Desktop/glslViewer/build]$ make
-- Including Cocoa support
-- OPENGL_LIBRARIES: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework
-- OPENGL_opengl_LIBRARY:
-- LIBAV Supported
-- USING GLFW DRIVERS
-- PLATFORM OSX
... Sorry for all this troubles. If you can give some feedback on it while I revive my older laptop |
For ffmpeg I get this:
For Ncurses:
For the GCC Compiler:
For the compilation results, my terminal printed this when compiling:
Hope this is insightful |
@jacklion710 seams you didn't install ffmpeg. Do you mind installing it? |
It seems there might be a problem installing fmpeg. I uninstalled and then reinstalled according to the wiki earlier. After your post just 30 minutes ago, I just now tried installing it again and still |
I caught this warning after pasting the ffmpeg install from the wiki:
|
Also all of the downloads say 'already downloaded' |
Lastly, the very last output from the install says:
|
Here's what I've got (Intel Mac, 10.15.4):
|
Update: I had to give the folder that ffmpeg was trying to download permission using JackLions-MacBook-Pro:~ jacobleone$ brew list ffmpeg Also, I have command line tools installed so we're good there. After recompiling still crashes |
Ok, hope you don't mind if I just come here to point random things. I'm going through the process of installing things from scratch in this Intel Mac running 10.14.6 (eventually I will arrive to Catalina) I notice that Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 11.3.1. Wonder if you already did that? |
Running Catalina on an Intel Mac, and seeing this on the crash report:
Which led me down a rabbithole to see what was going on with ncurses. It seems like When I run the
Which symlinks to Reinstalling the Command Line Tools didn't do anything, but commenting out the entire block:
will build a working version of glslViewer. |
@patriciogonzalezvivo I just gave it a shot. Recompiled after restarting my machine and the same issue persists. |
@jacklion710, @laferrera made a big step forward figuring out that ncurses is probably the culprit of this issues. Do you mind trying to run glslViewer with no ncurses support ??
@laferrera thanks for that discovery! I will research further into it! |
0:! It worked! |
Hooray! So this confirm @laferrera discovery. The culprid is ncurses! I will research further, I haven't been able to reproduce it in my end on a Intel OSX 10.14.... I will get another laptop today to test. In the mean time (and if you are interested) maybe try re-installing ncurses specially check if it's for Intel and not M1 architecture. Maybe installing ncurses from source? |
Their website seems to indicate that it should work for both intel and m1 chips. I didn't see any indicator that it wouldn't be upon reinstalling it. I did see this however: `If you need to have ncurses first in your PATH, run: For compilers to find ncurses you may need to set: For pkg-config to find ncurses you may need to set: |
Ok @jacklion710 this makes much more sense now. Seams you brew setup is corrupted. In a previous post the system recognize the ncurses libraries at:
but those flags you just describe says its currently being installed in
If I were you I would run those commands that |
Actually @jacklion710 I think we just need to tell CMake where to find the 6.3 version of ncurses: I was able to build with ncurses using:
|
@patriciogonzalezvivo just tried it and it doesn't seem to have helped. I can still run glslViewer just without ncurses. @laferrera where are you creating this build folder concerning cmake and ncurses? At what step too? Is it the glslViewer build folder or just a new one? |
@patriciogonzalezvivo inside the glslViewer repo, delete the This is just a modified version of Step 3 from the MacOS install instructions.
|
Ahh thank you for clarifying. When I try building the folder that way I get this: CMake Error: Run 'cmake --help' for all supported options. ` |
Apologies, it should be this:
|
Okay, now that worked! Thanks a lot, @laferrera . Now It's rendering for me without having to include '--noncurses'. I wonder what @patriciogonzalezvivo will make of this. |
@jacklion710 not sure what to make of it. Seams mostly like a system issue? I heard from some people solve it also by uninstalling brew all together and installing back again. I'm not really sure how to proceed because I haven't been able to reproduce on my end. But I'm open to suggestions. Also, for the short term I will make sure to point to this thread to people experiencing the same issue. |
Well one way or another, i'm happy now that we've established a work around. I was weary about uninstalling brew because I read that it would erase everything else i've installed with brew which isn't ideal. My only suggestion is to maybe add some of these details to the wiki for others. |
Currently, I am following the instructions from this related link: https://github.com/patriciogonzalezvivo/glslViewer/wiki/Installing
If I follow the all of the steps to compile then use the terminal to type:
cd glslViewer
cd examples
glslViewer 2D/00_tests/test.frag
glslViewer launches and then immediately crashes leaving this in the terminal
Segmentation fault: 11
The same thing happens if I try any other file from the examples folder
I am on MacOS Catalina 10.15.7 (Intel)
The text was updated successfully, but these errors were encountered: