This is on a bela mini running v0.3.8g and I've tried both master and dev branches of the bela library (now on dev, it fixed a debugging issue where math_neon wasn't getting built in when I used make ... debug)
Latest code I'm trying is here: https://github.com/zeyus/QTM_Bela_Sonification/tree/main/src
Essentially, I'm using a 3rd party SDK which compiles and works fine, in fact I've had it running previously, and I'm struggling to find out what is causing the problem, when I run the project I get a segmentation fault, and buliding with debug and using gdb it doesn't actually seem to be very helpful in this case.
Reading symbols from /root/Bela/projects/QTM_Bela_Sonification/QTM_Bela_Sonification...done.
(gdb) run
Starting program: /root/Bela/projects/QTM_Bela_Sonification/QTM_Bela_Sonification -p32 -C4 -B2 -N0 -G0 -M0 -D0 --audio-input-gain=0 --high-performance-mode -X0 -H0,0 -H1,0 -H2,-30 -H3,-30 -H4,-30 -H5,-30 -H6,-30 -H7,-30
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb6c8f450 (LWP 4182)]
[New Thread 0xb63ce450 (LWP 4183)]
Starting project. SR: 44100.000, ChOut: 2
Thread 1 "QTM_Bela_Sonifi" received signal SIGSEGV, Segmentation fault.
0x00049c84 in CRTProtocol::Connect (this=0x0, pServerAddr=0x9dd6f <setup::serverAddr> "192.168.6.1",
nPort=22222, pnUDPServerPort=0xbefff81c, nMajorVersion=1, nMinorVersion=22, bBigEndian=false)
at /root/Bela/projects/QTM_Bela_Sonification/qsdk/RTProtocol.cpp:102
102 mbBigEndian = bBigEndian;
(gdb)
gdp points to a line which assigns a bool which I'm assuming isn't the actual issue here, but as an inexperienced c++ dev I'm not used to figuring out where this is coming from. I've tried a bunch of things and haven't had success so I'm hoping to someone more experienced it's an obvious bug/fix in my code!
Calling line in render.cpp: https://github.com/zeyus/QTM_Bela_Sonification/blob/main/src/render.cpp#L188
Error line in RTProtocol.cpp: https://github.com/zeyus/QTM_Bela_Sonification/blob/main/src/qsdk/RTProtocol.cpp#L102
Link to the previously working version: (still compiles and runs)
Cheers,
zeyus