These are chat archives for AlwaysGeeky/Vox

26th
May 2016
Polyrhythm
@Polyrhythm
May 26 2016 00:10
fixed up the mutex references, no effect on the error. further digging required!
Polyrhythm
@Polyrhythm
May 26 2016 00:30
stepped through to find the line
glfwCreateWindow(m_windowWidth, m_windowHeight, "Vox", NULL, NULL);
windowWidth and windowHeight have sane-looking values
Anthony M. Cook
@acook
May 26 2016 00:33
Would it be useful to pop into Linux and check the compiler warnings?
Polyrhythm
@Polyrhythm
May 26 2016 00:33
perhaps, it's hard to dig deeper because it gives the very vague error right after that line and i can't step in further
i'm googling the error and learning what the signature of glfwCreateWindow is
i worry that it may have something to do with commenting out this mystery function https://github.com/AlwaysGeeky/Vox/pull/175#discussion-diff-64666026R90
Steve
@AlwaysGeeky
May 26 2016 00:45
No, that really shouldnt cause that error
that is just setting the multi sampling, that shouldnt cause any issues like you mentioned, I would carry on stepping through the main loop and see how far you get before the rror
Polyrhythm
@Polyrhythm
May 26 2016 00:48
yeah that's what i did, and i can't get past that line, glfwCreateWindow
Thread 1 received signal SIGTRAP, Trace/breakpoint trap.
oh oh nm i'm still learning gdb
if i continue it then goes on to loading the shaders and i get the error later
so i have to resume stepping after createWindow
Steve
@AlwaysGeeky
May 26 2016 00:51
do you mean glfwCreateWindow ?
Polyrhythm
@Polyrhythm
May 26 2016 00:53
yeah
Steve
@AlwaysGeeky
May 26 2016 00:55
I would put a breakpoint directly above the shader loading and step from there
it shouldnt crash if you step through each shader load, and should continue after that
Polyrhythm
@Polyrhythm
May 26 2016 01:50
finally found the source of the error
another path-related thing
the value of importDirectory is
"/Users/ryanjones/Development/cpp/Vox/media/gamedata/models/Human/*.*\000\000\000\000\330\230\223\000\001\000\000\000\330\230\223\000\001\000\000\000LE\020\000\001\000\000\000 ̿_l\000\000\000\240\372\016\000\001\000\000\000p\226\202\f\001\000\000\000\240|\202\f\001\000\000"
and again, error is terminating with uncaught exception of type std::length_error: vector
so i guess importDirectory is used to fill out some paths but it's an invalid value in osx
Polyrhythm
@Polyrhythm
May 26 2016 01:57
ah nm i see the issue, fileutils.cpp does not account for #ifdef __APPLE__
Polyrhythm
@Polyrhythm
May 26 2016 02:30
got farther
segfault at return m_vpMatrices[index];
QubicleBinary.cpp:1111
index is 0 when segfault occurs