Closed kbingham closed 4 years ago
Solved thanks to Tomi's fixups.
libcamera-daily$ valgrind ./build/build-clang-10/src/cam/cam -c 3 -C10 ==188975== Memcheck, a memory error detector ==188975== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==188975== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==188975== Command: ./build/build-clang-10/src/cam/cam -c 3 -C10 ==188975== [162:49:50.348921731] [188975] INFO IPAManager ipa_manager.cpp:136 libcamera is not installed. Adding '/home/linuxembedded/iob/libcamera/libcamera-daily/build/build-clang-10/src/ipa' to the IPA search path [162:49:50.473354028] [188975] INFO Camera camera_manager.cpp:292 libcamera v0.0.0+1924-b2b8c4dc [162:49:51.278188183] [188978] INFO IPAProxy ipa_proxy.cpp:122 libcamera is not installed. Loading IPA configuration from '/home/linuxembedded/iob/libcamera/libcamera-daily/src/ipa/vimc/data' Using camera platform/vimc.0 Sensor B [162:49:51.679072374] [188975] INFO VIMC vimc.cpp:212 Skipping unsupported pixel format RGB888 [162:49:51.743390870] [188975] INFO Camera camera.cpp:811 configuring streams: (0) 1920x1080-BGR888 Capture 10 frames 586192.110806 (0.00 fps) stream0 seq: 000000 bytesused: 6220800 586192.149556 (25.81 fps) stream0 seq: 000001 bytesused: 6220800 586192.186044 (27.41 fps) stream0 seq: 000002 bytesused: 6220800 586192.222157 (27.69 fps) stream0 seq: 000003 bytesused: 6220800 586192.270507 (20.68 fps) stream0 seq: 000004 bytesused: 6220800 586192.312244 (23.96 fps) stream0 seq: 000005 bytesused: 6220800 586192.355167 (23.30 fps) stream0 seq: 000006 bytesused: 6220800 586192.394722 (25.28 fps) stream0 seq: 000007 bytesused: 6220800 586192.436829 (23.75 fps) stream0 seq: 000008 bytesused: 6220800 586192.475741 (25.70 fps) stream0 seq: 000009 bytesused: 6220800 ==188975== ==188975== HEAP SUMMARY: ==188975== in use at exit: 0 bytes in 0 blocks ==188975== total heap usage: 9,001 allocs, 9,001 frees, 2,137,733 bytes allocated ==188975== ==188975== All heap blocks were freed -- no leaks are possible ==188975== ==188975== For lists of detected and suppressed errors, rerun with: -s ==188975== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
It appears we're using an uninitalised variable, and valgrind picked up on it.