🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

casm

9
Posts
1
Topics
A member registered 79 days ago

Recent community posts

Thread 1 "main" received signal SIGSEGV, Segmentation fault.
0x00007fffec3f605e in GpuSysGetOpenGLProcedureAddresses () from /tmp/lib0_engine/lib0.so

after running through gdb

$ ./main
fbconfigs[0]: 0000000001c393f0, GLX_RED_SIZE: 8, GLX_GREEN_SIZE: 8, GLX_BLUE_SIZE: 8, GLX_ALPHA_SIZE: 8, GLX_DEPTH_SIZE: 24, GLX_STENCIL_SIZE: 8, GLX_DOUBLEBUFFER: 1, GLX_SAMPLE_BUFFERS: 0, GLX_SAMPLES: 0
fbconfigs[1]: 0000000001c395d0, GLX_RED_SIZE: 8, GLX_GREEN_SIZE: 8, GLX_BLUE_SIZE: 8, GLX_ALPHA_SIZE: 8, GLX_DEPTH_SIZE: 24, GLX_STENCIL_SIZE: 8, GLX_DOUBLEBUFFER: 1, GLX_SAMPLE_BUFFERS: 0, GLX_SAMPLES: 0
Segmentation fault (core dumped)

This is after removing 524 and 525.

$ ./main
Assertion failed: fbconfigs_count != 0 (./gpulib.h: GpuSysX11Window: 532)
Aborted (core dumped)

Looks like you're correct -- fbconfigs_count is 0 for some reason.

Same result, unfortunately...

$ ./main
Assertion failed: fbconfig != NULL (./gpulib.h: GpuSysX11Window: 583)
Aborted (core dumped)

$ ./build.sh
TextEditor.cpp:209:32: error: use of undeclared identifier 'floor'
        int lineNo = std::max(0, (int)floor(local.y / mCharAdvance.y));
                                      ^
TextEditor.cpp:210:37: error: use of undeclared identifier 'round'
        int columnCoord = std::max(0, (int)round(local.x / mCharAdvance.x - cTe...
                                           ^
TextEditor.cpp:503:21: error: use of undeclared identifier 'floor'
        auto lineNo = (int)floor(scrollY / mCharAdvance.y);
                           ^
TextEditor.cpp:504:76: error: use of undeclared identifier 'floor'
  ...lineMax = std::max(0, std::min((int)mLines.size() - 1, lineNo + (int)floor((scr...
                                                                          ^
TextEditor.cpp:1524:22: error: use of undeclared identifier 'ceil'
        auto top = 1 + (int)ceil(scrollY / mCharAdvance.y);
                            ^
TextEditor.cpp:1525:21: error: use of undeclared identifier 'ceil'
        auto bottom = (int)ceil((scrollY + height) / mCharAdvance.y);
                           ^
TextEditor.cpp:1527:19: error: use of undeclared identifier 'ceil'
        auto left = (int)ceil(scrollX / mCharAdvance.x);
                         ^
TextEditor.cpp:1528:20: error: use of undeclared identifier 'ceil'
        auto right = (int)ceil((scrollX + width) / mCharAdvance.x);
                          ^
TextEditor.cpp:1546:14: error: use of undeclared identifier 'floor'
        return (int)floor(height / mCharAdvance.y);
                    ^

I've been getting the errors from `build.sh` since the beginning, just deciding to include them now before bed.


Thanks again. Talk to you tomorrow.

(Edited 1 time)

$ ./build_main.sh -O0 -g

$ ./main
Assertion failed: fbconfig != NULL (./gpulib.h: GpuSysX11Window: 582)
Aborted (core dumped)


i'm going to bed now. i appreciate all the work you're putting into helping me. hopefully we can get it building soon. i'll check back tomorrow during lunch.

$ ./main # after 1ing the static if
Assertion failed: fbconfig != NULL (./gpulib.h: GpuSysX11Window: 582)
Aborted (core dumped)

glxinfol....

https://pastebin.com/qUsgGb0f

Awesome! Can't wait to try it out.

just in case you didn't get notified with my other post. not sure how this board works.

stdlib_assert(glxQueryExtension(<args omitted>) != 0) just confirmed that GL is available for me, it didn't fix anything.

 lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)

I think I'm gonna remove my GPU and see what happens when I use the integrated gpu on my cpu
Created a new topic [v2] Trouble Building...
(Edited 3 times)

Assertion failed: fbconfig != 0 (./gpulib.h: GpuSysX11Window: 547)
I've searched around and rebuilt with stdlib_assert(glxQueryExtension(<args omitted>) != 0) in gpulib.h and it passed. So I'm not sure what's going on.

I have an NVIDIA gpu.