Closed papatience closed 7 years ago
Oh man! I inmediately grabbed my computer when I saw the email for this pull request. I'm really sorry to say that I can't merge this into master, not without going through every change myself, because I've done further development on the future branch, and master is almost severely behind the future branch. If you're willing to bring your changes into that branch, I'll be more than happy to take the changes.
Oh, in addition, if you do report the runtime errors, I can definitely help go through them. I'll be more than happy to do that.
I've brought the changes into future
.
Pressing a key at the startup screen causes the raindrop to crash:
raindrop ver: 0.500 Aug 1 2017 start.
Working directory: /home/paul/src/github.com/papatience/raindrop
sqlite: table diffdb has 15 columns but 16 values were supplied (code 1)
sqlite: no such column: genre (code 1)
sqlite: no such column: genre (code 1)
sqlite: no such column: genre (code 1)
Initializing...
LuaManager: Running script GameData/Skins/default/skin.lua.
GLFW succesfully initialized.
GLFW Error 65539: Invalid joystick -1
Setting up shaders...System supports VAOs...
Default Vertex Shader Compiled Succesfully
Fragment Shader Compiled succesfully
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
[librocket:4] Loading Lua interpreter
[librocket:4] Loaded font face Togoshi Gothic Regular (from font.ttf).
Total Initialization Time: 0.527740s
LuaManager: Running script GameData/Skins/default/mainmenu.lua.
Compiling fragment shader.
Fragment Shader Compiled Succesfully
Shader linking succesful.
libpng warning: iCCP: known incorrect sRGB profile
[librocket:3] Unable to open file ScreenMainMenu.rml.
Time: 0.090510s
[librocket:3] Invalid property declaration at :0
[librocket:3] Invalid property declaration at :0
ScreenSelectMusic.rml succesfully loaded.
Started loading songs..
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::directory_iterator::construct: No such file or directory
Aborted
With master
, raindrop would crash if it didn't find the directory songs
in the current directory, but now it crashes whether songs
is present or not.
Edit: Ok, we need to specify the songs directory in config.ini
. When I do so, it no longer crashes. However, it won't find any songs I put in the directory.
Allow me to merge this in first, and I request that you do a followup issue. It still shouldn't crash, and I'm going to address that now.
There remain some warnings, for example in
src/LuaManager.cpp
andsrc/VideoPlayback.cpp
.luaL_newlib()
must be called with an array, not a pointer, so it can't be called with a function argument. However, the function calling it,RegisterLibrary()
, isn't used.These are just warnings about deprecated functions.
I've changed the compiler to
clang++
becauseg++
fails to compile the source files. It uses up 100 % of the CPU and blocks there.raindrop will compile on Linux with this pull request, but there are runtime errors left to fix.