Let me begin by saying I’m likely missing something small, but I’m at the point of pulling my hair out so here we are.
Technical specs, and such:
Toradex Apalis iMX8QM V1.1 on Apalis Ixora V1.2 Carrier Board
Toardex version: 0037 V1.1E
Architecture: aarch64
Kernel 5.15.148-6.6.1
Distro Name and Version: TorizonCore 6.6.1-build.14
Ubuntu 22.04 LTS
VSCode with TorizonOS IDE
For simplicity of attempting to debug, I’ve created a fresh Qt QML CMake application, and have added 2 new files, a header and source to handle UDP communications. Simply, it binds to a socket, connects, and processes any incoming datagrams. This works perfectly fine in practice on my Windows machine, and on my Ubuntu machine. However, when I move towards testing on the hardware, I am running into trouble.
I believe when I attempt to bind to my socket, I am throwing an error that borks up the program.
Binding code below:
bool result;
result = udpSocket6.bind(QHostAddress::AnyIPv4, 45454);
This returns a failed boolean value. This is immediately followed by two exceptions with unknown sources, but my general thought process is they will be resolved if I can bind this socket. (Yes, is the thrown twice).
"QLibProxyWrappe" hit Catchpoint 3 (exception thrown), 0x0000ffff97b926bc in __cxa_throw () from /lib/aarch64-linux-gnu/libstdc++.so.6
"QLibProxyWrappe" hit Catchpoint 3 (exception thrown), 0x0000ffff97b926bc in __cxa_throw () from /lib/aarch64-linux-gnu/libstdc++.so.6
My inclination is that the port may not be available, because I can’t see any reason IPv4 wouldn’t be. Any initial clues or places for me to start looking at this point?
Thanks in advance.