Comments (4)
Can't say for sure, but it might not be a "could not find file" error we are dealing with. Frankly I should of just included the "ex" variable from the catch. Something like this:
catch (filesystem::filesystem_error const& ex) {
if (i == 3) {
printf("Failed to find shaders folder!\n");
throw std::runtime_error(ex.what());
return;
}
}
Tell me what it spits out after including this code.
from recidia-audio-visualizer.
That left me with
what(): filesystem error: directory iterator cannot open directory: No such file or directory [/etc/recidia/shaders/]
and I fixed it by copying the shaders folder to there. Not sure why it only accepts that one path however. I made it print every path it checked and made sure they did actually exist.
Weird issue. But it works now, so thanks for your help!
Edit: Wait, I see what's happening. No matter if it's already found the shaders somewhere else, it will continue looking. If it doesn't find them at the last index, it will throw a runtime error no matter what.
from recidia-audio-visualizer.
OOOOOHHHHH.... I messed up bad, good work.
I fixed this with this commit: 4865ccc
I know it's a mess, but the solution was quite easy.
catch (filesystem::filesystem_error const& ex) {
continue;
}
}
if (shaderFiles.size() == 0)
throw std::runtime_error("Failed to find any shaders folder!");
If this fixed the problem please close the issue.
Thanks again.
from recidia-audio-visualizer.
That commit fixed it! :)
from recidia-audio-visualizer.
Related Issues (3)
- C++ Error HOT 3
- MacOS installer needed! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recidia-audio-visualizer.