DucktapeEngine / Ducktape

Ducktape - An open source 3d C++ game engine.
MIT License
127 stars 25 forks source link

Ducktape Editor does not launch on Ubuntu #179

Open AshishKingdom opened 1 year ago

AshishKingdom commented 1 year ago

Describe the bug Ducktape Editor does not launch on Ubuntu

To Reproduce Steps to reproduce the behavior:

  1. Clone the repo
  2. Build the files
  3. Start 'DucktapeEditor'
  4. The program crashes immediately

Expected behavior The editor should run fine without crashing.

Screenshots image

Desktop (please complete the following information):

aryanbaburajan commented 1 year ago

Interesting, this is most likely related to the broken code currently pushed to main. I suggest you retry once I fix that. (I'll update you). But also, could you debug the app, in the same directory, and post the output here? gdb DucktapeEditor run then once the program crashes, bt for backtrace. Please do post the output here.

AshishKingdom commented 1 year ago

Here it is

Reading symbols from DucktapeEditor...
(gdb) run
Starting program: /media/ashishkingdom/Games n Stuff/Ashish-DEV/Bedroom/Projects/Ducktape/Build/DucktapeEditor 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[LOG] ResourceManager Constructed
42
[LOG] ContextPtr Initialized
[New Thread 0x7fffea87e640 (LWP 23540)]
[New Thread 0x7fffea07d640 (LWP 23541)]
[New Thread 0x7fffe987c640 (LWP 23542)]
[New Thread 0x7fffe907b640 (LWP 23543)]
[New Thread 0x7fffe887a640 (LWP 23544)]
[New Thread 0x7fffd3fff640 (LWP 23545)]
[New Thread 0x7fffcbfff640 (LWP 23546)]
[New Thread 0x7fffd37fe640 (LWP 23547)]
[New Thread 0x7fffd2ffd640 (LWP 23548)]
[New Thread 0x7fffd27fc640 (LWP 23549)]
[New Thread 0x7fffd1ffb640 (LWP 23550)]
[New Thread 0x7fffd17fa640 (LWP 23551)]
[New Thread 0x7fffd0ff9640 (LWP 23552)]
[New Thread 0x7fffcb7fe640 (LWP 23553)]
[LOG] Created GLFW Window.
[LOG] Initialized GLAD.
[LOG] Window Constructed
[LOG] Loaded shader at /media/ashishkingdom/Games n Stuff/Ashish-DEV/Bedroom/Projects/Ducktape/Resources/Editor/Shaders/Screen.glsl
[LOG] Loaded shader at /media/ashishkingdom/Games n Stuff/Ashish-DEV/Bedroom/Projects/Ducktape/Resources/Editor/Shaders/Skybox.glsl
[LOG] Renderer Constructed
[LOG] Input Constructed
free(): double free detected in tcache 2

Thread 1 "DucktapeEditor" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737352574848) at ./nptl/pthread_kill.c:44
44  ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737352574848) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140737352574848) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140737352574848, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007ffff6c42476 in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
Backtrace stopped: Cannot access memory at address 0x7fffffffce08
(gdb)