libcamera v0.1.0 & imx477 - std::allocator<libcamera::utils:

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

libcamera v0.1.0 & imx477 - std::allocator<libcamera::utils:

Postby Torxed » Sun Aug 13, 2023 7:40 am

Hi.

After talking to the libcamera people, it appears there's some issue regarding packaging or building of libcamera.
To quote from the IRC:
[quote]
Torxed: libcamera::ipa::RPi::IpaBase::applyAGC(AgcStatus) means the red m fault could be in parsing the tuning files on Rpi
You could post that information to raspberry pi's tracker as it's directly related to them. Or to whatever arch uses
[/quote]

A related issue has been created at raspberrypi's upstream libcamera github issue tracker:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://github.com/raspberrypi/libcamera/issues/64', '', ' class="postlink"')

But as noted from the libcamera people, this appears to be related to the packaging of libcamera in our repos.
I'm not sure how to debug this or how this setup works, but any help would be appreciated in debugging this (where to place debug symbols etc)

Relevant log output:
[code]
[0:02:07.096160075] [385] DEBUG IPARPI ipa_base.cpp:1296 Applying AGC Exposure: 19989.67us (Shutter lines: 1318, AGC requested 20000.00us) Gain: 1 (Gain Code: 0)
/usr/include/c++/12.1.0/bits/stl_deque.h:1576: void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = libcamera::utils::Duration; _Alloc = std::allocator<libcamera::utils::Duration>]: Assertion '!this->empty()' failed.
Aborted
[/code]

Stacktrace:
[code]
[Switching to Thread 0xb5a9f100 (LWP 848)]
0xb66de310 in ?? () from /usr/lib/libc.so.6
(gdb) bt
#0 0xb66de310 in ?? () from /usr/lib/libc.so.6
#1 0xb6694708 in raise () from /usr/lib/libc.so.6
#2 0xb667d66c in abort () from /usr/lib/libc.so.6
#3 0xb68e2040 in std::__glibcxx_assert_fail (file=<optimized out>, line=<optimized out>, function=<optimized out>, condition=<optimized out>) at /usr/src/debug/gcc/libstdc++-v3/src/c++11/debug.cc:60
#4 0xb5250380 in libcamera::ipa::RPi::IpaBase::applyAGC(AgcStatus const*, libcamera::ControlList&) () from /usr/lib/libcamera/ipa_rpi_vc4.so
#5 0xb5251204 in libcamera::ipa::RPi::IpaBase::configure(libcamera::IPACameraSensorInfo const&, libcamera::ipa::RPi::ConfigParams const&, libcamera::ipa::RPi::ConfigResult*) () from /usr/lib/libcamera/ipa_rpi_vc4.so
#6 0xb6f5174c in libcamera::RPi::CameraData::configureIPA(libcamera::CameraConfiguration const*, libcamera::ipa::RPi::ConfigResult*) () from /usr/lib/libcamera.so.0.1
#7 0xb6f51c38 in libcamera::RPi::PipelineHandlerBase::configure(libcamera::Camera*, libcamera::CameraConfiguration*) () from /usr/lib/libcamera.so.0.1
#8 0xb6ec5e98 in libcamera::BoundMethodArgs<int, libcamera::Camera*, libcamera::CameraConfiguration*>::invokePack(libcamera::BoundMethodPackBase*) () from /usr/lib/libcamera.so.0.1
#9 0xb6e07c28 in libcamera::Object::message(libcamera::Message*) () from /usr/lib/libcamera-base.so.0.1
#10 0xb6e0a5b8 in libcamera::Thread::dispatchMessages(libcamera::Message::Type) () from /usr/lib/libcamera-base.so.0.1
#11 0xb6dff474 in libcamera::EventDispatcherPoll::processEvents() () from /usr/lib/libcamera-base.so.0.1
#12 0xb6e09f24 in libcamera::Thread::exec() () from /usr/lib/libcamera-base.so.0.1
#13 0xb6ec89fc in libcamera::CameraManager::Private::run() () from /usr/lib/libcamera.so.0.1
#14 0xb68e6a88 in std::execute_native_thread_routine (__p=0x46e138) at /usr/src/debug/gcc/libstdc++-v3/src/c++11/thread.cc:82
#15 0xb66dc140 in ?? () from /usr/lib/libc.so.6
#16 0xb675dd1c in ?? () from /usr/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
[/code]
Torxed
 
Posts: 8
Joined: Mon Aug 05, 2013 3:40 pm

Re: libcamera v0.1.0 & imx477 - std::allocator<libcamera::ut

Postby Torxed » Sun Aug 13, 2023 8:05 am

And just to confirm, if running the compile manually libcamera works:
[code]
$ git clonemake_clickable_callback(MAGIC_URL_FULL, ' ', 'https://git.libcamera.org/libcamera/libcamera.git', '', ' class="postlink"')
$ cd libcamera
$ meson setup build
# ninja -C build install
# ln -s /usr/local/share/libcamera /usr/lib/libcamera
# ln -s /usr/local/lib/* /usr/lib/
# pacman -S sdl2
# LIBCAMERA_LOG_LEVELS=*:DEBUG cam --camera 1 --capture=10 --file=./ --stream height=1080,width=2028,role=still
[/code]

Traceback:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://gist.github.com/Torxed/7b623462c90bab54ef379a700680758d', '', ' class="postlink"')
Torxed
 
Posts: 8
Joined: Mon Aug 05, 2013 3:40 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 27 guests

cron