./minisphere: error while loading shared libraries: libChakraCore.so: cannot open shared object file: No such file or directory
Engine initialized failed.
I finally got some time to compile miniSphere today. It works when I sudo make install, but locally it just goes:Code: [Select]./minisphere: error while loading shared libraries: libChakraCore.so: cannot open shared object file: No such file or directoryThe startup game runs properly if I do a global install.Edit: running a game (Aquatis) from the startup fails with a little popup window with a grammar error though:Code: [Select]Engine initialized failed.The console just segfaults at this point.
I finally got some time to compile miniSphere today. It works when I sudo make install, but locally it just goes:Code: [Select]./minisphere: error while loading shared libraries: libChakraCore.so: cannot open shared object file: No such file or directory
minisphere: malloc.c:2868: mremap_chunk: Assertion `((size + offset) & (GLRO (dl_pagesize) - 1)) == 0' failed.
Quote from: DaVince on September 10, 2017, 06:15:26 amI finally got some time to compile miniSphere today. It works when I sudo make install, but locally it just goes:Code: [Select]./minisphere: error while loading shared libraries: libChakraCore.so: cannot open shared object file: No such file or directory@DaVince That's expected, unfortunately. Unlike Windows, Linux won't just load shared libraries (Linux equivalent to a DLL) from the program directory, you have to install the .so to a known location. And there are no ChakraCore packages for Ubuntu yet, not even a PPA. The final release will be static linked to CC to avoid the issue.And yeah, like @Rhuan said, ExecuteGame() is broken at the moment
#5 0x0000000000418df5 in ensure_space (vector=0x7b42a0, min_items=33) at src/shared/vector.c:192192 if (!(new_buffer = realloc(vector->buffer, new_max * vector->pitch)) && new_max > 0)(gdb) l187 if (min_items > vector->max_items) // is the buffer too small?188 new_max = min_items * 2;189 else if (min_items < vector->max_items / 4) // if item count drops below 1/4 of peak size, shrink the buffer190 new_max = min_items;191 if (new_max != vector->max_items) {192 if (!(new_buffer = realloc(vector->buffer, new_max * vector->pitch)) && new_max > 0)193 return false;194 vector->buffer = new_buffer;195 vector->max_items = new_max;196 }(gdb) p new_max$1 = 66(gdb) p vector->pitch$2 = 140701562626560
I'm getting a (slightly) less obnoxious error message now when building the chakra-js branch in DeianCode: [Select]minisphere: malloc.c:2883: mremap_chunk: Assertion `((size + offset) & (GLRO (dl_pagesize) - 1)) == 0' failed.Aborted
minisphere: malloc.c:2883: mremap_chunk: Assertion `((size + offset) & (GLRO (dl_pagesize) - 1)) == 0' failed.Aborted
{ width:num_pixels, height:num_pixels, data:array_of_pixels}
Ah, that is too bad. Looking into it, this could be fixed by adding -R <path> to the make command. Perhaps this could be added to the makefile in a way too.
Edit: running a game (Aquatis) from the startup fails with a little popup window with a grammar error though:Code: [Select]Engine initialized failed.The console just segfaults at this point.
==3468== Conditional jump or move depends on uninitialised value(s)==3468== at 0x4C32EA6: rawmemchr (vg_replace_strmem.c:1402)==3468== by 0x67DA391: _IO_str_init_static_internal (strops.c:41)==3468== by 0x67CDB66: vsscanf (iovsscanf.c:40)==3468== by 0x67C82D6: sscanf (sscanf.c:32)==3468== by 0xF547E4A: ??? (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0)==3468== by 0xF548182: ??? (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0)==3468== by 0xF54BBF8: drmGetDevice (in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0)==3468== by 0x94932D6: ??? (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)==3468== by 0x9492694: ??? (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)==3468== by 0x9466988: ??? (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)==3468== by 0x9461F10: glXQueryVersion (in /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0)==3468== by 0x5D470B8: ??? (in /usr/lib/x86_64-linux-gnu/liballegro.so.5.2.2)==3468== (Now I press Escape, select Exit and...)==3468== Invalid read of size 4==3468== at 0x1902DE: image_unref (image.c:272)==3468== by 0x1A9A64: screen_free (screen.c:145)==3468== by 0x112797: shutdown_engine (main.c:484)==3468== by 0x111BFD: main (main.c:167)==3468== Address 0x2a10e590 is 0 bytes inside a block of size 112 free'd==3468== at 0x4C2CDDB: free (vg_replace_malloc.c:530)==3468== by 0x190369: image_unref (image.c:282)==3468== by 0x1A81D2: js_Surface_finalize (pegasus.c:4095)==3468== by 0x149B46: duk__handle_call_inner (duk_js_call.c:1619)==3468== by 0x14906F: duk_handle_call_unprotected (duk_js_call.c:1149)==3468== by 0x1185B9: duk_call (duk_api_call.c:60)==3468== by 0x13A10B: duk__finalize_helper (duk_heap_finalize.c:368)==3468== by 0x14AAA4: duk__handle_safe_call_inner (duk_js_call.c:2131)==3468== by 0x14A91B: duk_handle_safe_call (duk_js_call.c:1972)==3468== by 0x118928: duk_safe_call (duk_api_call.c:228)==3468== by 0x13A18A: duk_heap_run_finalizer (duk_heap_finalize.c:430)==3468== by 0x139903: duk__free_run_finalizers (duk_heap_alloc.c:206)==3468== Block was alloc'd at==3468== at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)==3468== by 0x18F787: image_new (image.c:69)==3468== by 0x1A98DB: screen_new (screen.c:100)==3468== by 0x111E9D: main (main.c:227)==3468== ==3468== Invalid write of size 4==3468== at 0x1902E7: image_unref (image.c:272)==3468== by 0x1A9A64: screen_free (screen.c:145)==3468== by 0x112797: shutdown_engine (main.c:484)==3468== by 0x111BFD: main (main.c:167)==3468== Address 0x2a10e590 is 0 bytes inside a block of size 112 free'd==3468== at 0x4C2CDDB: free (vg_replace_malloc.c:530)==3468== by 0x190369: image_unref (image.c:282)==3468== by 0x1A81D2: js_Surface_finalize (pegasus.c:4095)==3468== by 0x149B46: duk__handle_call_inner (duk_js_call.c:1619)==3468== by 0x14906F: duk_handle_call_unprotected (duk_js_call.c:1149)==3468== by 0x1185B9: duk_call (duk_api_call.c:60)==3468== by 0x13A10B: duk__finalize_helper (duk_heap_finalize.c:368)==3468== by 0x14AAA4: duk__handle_safe_call_inner (duk_js_call.c:2131)==3468== by 0x14A91B: duk_handle_safe_call (duk_js_call.c:1972)==3468== by 0x118928: duk_safe_call (duk_api_call.c:228)==3468== by 0x13A18A: duk_heap_run_finalizer (duk_heap_finalize.c:430)==3468== by 0x139903: duk__free_run_finalizers (duk_heap_alloc.c:206)==3468== Block was alloc'd at==3468== at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)==3468== by 0x18F787: image_new (image.c:69)==3468== by 0x1A98DB: screen_new (screen.c:100)==3468== by 0x111E9D: main (main.c:227)==3468== ==3468== Invalid read of size 4==3468== at 0x1902ED: image_unref (image.c:272)==3468== by 0x1A9A64: screen_free (screen.c:145)==3468== by 0x112797: shutdown_engine (main.c:484)==3468== by 0x111BFD: main (main.c:167)==3468== Address 0x2a10e590 is 0 bytes inside a block of size 112 free'd==3468== at 0x4C2CDDB: free (vg_replace_malloc.c:530)==3468== by 0x190369: image_unref (image.c:282)==3468== by 0x1A81D2: js_Surface_finalize (pegasus.c:4095)==3468== by 0x149B46: duk__handle_call_inner (duk_js_call.c:1619)==3468== by 0x14906F: duk_handle_call_unprotected (duk_js_call.c:1149)==3468== by 0x1185B9: duk_call (duk_api_call.c:60)==3468== by 0x13A10B: duk__finalize_helper (duk_heap_finalize.c:368)==3468== by 0x14AAA4: duk__handle_safe_call_inner (duk_js_call.c:2131)==3468== by 0x14A91B: duk_handle_safe_call (duk_js_call.c:1972)==3468== by 0x118928: duk_safe_call (duk_api_call.c:228)==3468== by 0x13A18A: duk_heap_run_finalizer (duk_heap_finalize.c:430)==3468== by 0x139903: duk__free_run_finalizers (duk_heap_alloc.c:206)==3468== Block was alloc'd at==3468== at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)==3468== by 0x18F787: image_new (image.c:69)==3468== by 0x1A98DB: screen_new (screen.c:100)==3468== by 0x111E9D: main (main.c:227)==3468==