-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running matrix-udp-rx without options causes a segfault #10
Comments
Yeah, there are some rough edges on the config changes. Somewhere in the receive code it assumes a 512x64 display, but the default config is 256x128. this should be prioritized to be fixed in the next round of updates. |
Maybe this is related- the current head (21b35c2) seems to be crashing, with or without a config file specified. root@beaglebone:/home/debian/LEDscape# bin/matrix-udp-rx tall-cylinder.config gdb suggests it's an address out of bounds in ledscape_matrix_panel_copy: root@beaglebone:/home/debian/LEDscape# gdb --args bin/matrix-udp-rx tall-cylinder.config Program received signal SIGSEGV, Segmentation fault. |
Ok, specifying the new-style command line option here allows it to run without segfault: |
Started in 6dbec3c when getoptified was added:
root@beaglebone:/home/debian/LEDscape# bin/matrix-udp-rx
512 x 64, UDP port 9999
AM33XX
pru_init: PRU 0: data 0xb6c45000 @ 8192 bytes, DMA 0xb6bc5000 / 9f340000 @ 262144 bytes
File ./lib/matrix.bin open passed
waiting for response
got response
Segmentation fault
root@beaglebone:/home/debian/LEDscape# bin/matrix-udp-rx -c sign.config
512 x 64, UDP port 9999
read 8 bytes 'matrix16'
read 9 bytes '0,7 U 0,0'
read 10 bytes '0,6 U 32,0'
read 10 bytes '0,5 U 64,0'
read 10 bytes '0,4 U 96,0'
read 11 bytes '0,3 U 128,0'
AM33XX
pru_init: PRU 0: data 0xb6c32000 @ 8192 bytes, DMA 0xb6bb2000 / 9f340000 @ 262144 bytes
File ./lib/matrix.bin open passed
waiting for response
got response
main:172: received 4 bytes
main:207: WARNING: Received packet 4 bytes, expected 98305
933 usec avg, max 10718.11 fps, actual 0.10 fps (over 1 frames)
2553 usec avg, max 3916.96 fps, actual 57.70 fps (over 577 frames)
Fix is probably to either require some configuration, or give default options that don't cause it to crash.
The text was updated successfully, but these errors were encountered: