Run bt
(or backtrace
) in gdb to identify where in your code the problem starts. I’d guess there’s a null pointer somewhere but it’s unclear from the messages.
For future reference, it’s easier for use to diagnose and help with issues if fenced code blocks are used to post code snippets and console output. Whilst screenshots show the information, they cannot be copy/pasted, e.g. to show a correction.