omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

RC jsoncpp 1.9.8 soname bump breaks intel-ipu7-camera 1.0.5

Open iuliansafta opened this issue 2 months ago • 6 comments

System details

  • Dell XPS 14 DA14260, BIOS 1.8.2
  • Intel Core Ultra X7 358H (Panther Lake)
  • Intel Arc B390 (xe)
  • Omarchy stable: 4.0.2-1
  • Omarchy RC tested: 4.0.3rc3-1
  • Kernel: 7.1.8-arch1-2-ptl
  • Camera: IPU7 8086:b05d, OV08X40 / OVTI08F4
  • intel-ipu7-camera 1.0.5-1
  • v4l2-relayd 0.2.0-2.2
  • Stable jsoncpp 1.9.6-3 provides libjsoncpp.so.26
  • RC jsoncpp 1.9.8-1 provides libjsoncpp.so.27

What's wrong?

Switching from stable to the RC repository and updating to Omarchy 4.0.3rc3-1 upgrades jsoncpp from 1.9.6-3 to 1.9.8-1. That removes libjsoncpp.so.26 and installs .27, but the RC repository still serves intel-ipu7-camera 1.0.5-1, whose packaged IPU7 HAL plugin is linked to .26:

$ readelf -d <intel-ipu7-camera-1.0.5-1>/usr/lib/libcamhal/plugins/ipu75xa.so | grep jsoncpp
Shared library: [libjsoncpp.so.26]

The result is that the built-in IPU7 camera stops working after the RC update. The kernel side remains healthy and /dev/video50 exists, but icamerasrc cannot load the HAL and the relay produces no usable stream.

Timeline and correction

The initial version of this report incorrectly said the RC update itself rewrote the HAL binaries to require .27. Further journal inspection showed that was not true. The actual timeline was:

  1. At 09:18, the RC transaction upgraded jsoncpp 1.9.6-3 -> 1.9.8-1, while intel-ipu7-camera remained 1.0.5-1 linked to .26. This is when the initial RC incompatibility was introduced.
  2. At 15:45, during local troubleshooting, a manually rebuilt HAL was explicitly copied over the package-owned files. That local rebuild linked against the then-current .27 ABI.
  3. At 18:43, downgrading to stable restored jsoncpp 1.9.6-3 (.26), but naturally did not restore those manually replaced package files. The local .27 rebuild therefore remained broken after downgrade.
  4. Reinstalling intel-ipu7-camera restored the packaged .26 binaries and fixed the camera on stable.

The manual rebuild explains why pacman -Qkk later reported altered files; it was not performed by Omarchy. Sorry for the incorrect attribution in the original report.

Initial RC failure

With the stock camera package and RC jsoncpp 1.9.8-1, the dependency relationship is:

intel-ipu7-camera 1.0.5-1 ipu75xa.so -> libjsoncpp.so.26
RC jsoncpp 1.9.8-1                    -> libjsoncpp.so.27 only

The camera HAL therefore cannot load unless intel-ipu7-camera is rebuilt for the RC ABI or a compatible .26 library remains available.

Steps to reproduce

  1. Start on stable Omarchy 4.0.2-1 with working intel-ipu7-camera 1.0.5-1 and jsoncpp 1.9.6-3.
  2. Switch to the RC repository and update to 4.0.3rc3-1.
  3. Confirm jsoncpp is now 1.9.8-1 and only libjsoncpp.so.27 exists.
  4. Check the packaged camera plugin with ldd or readelf; it still requires libjsoncpp.so.26.
  5. Try the camera in a browser or with the V4L2 relay; the HAL cannot load and no usable frames are produced.

Stable recovery verification

After returning to stable, reinstalling the camera package restores the matching ABI:

pkexec pacman -S intel-ipu7-camera
pkexec systemctl restart [email protected]
$ ldd /usr/lib/libcamhal/plugins/ipu75xa.so | grep jsoncpp
libjsoncpp.so.26 => /usr/lib/libjsoncpp.so.26

$ pacman -Qkk intel-ipu7-camera
intel-ipu7-camera: 834 total files, 0 altered files

A V4L2 probe then captured 10 complete 1920x1080 NV12 frames (31,104,000 bytes), and applications detected the camera again.

Expected fix

Publish an RC build/revision of intel-ipu7-camera linked against libjsoncpp.so.27, or otherwise keep the required .26 ABI available in the RC package set. The camera package may also benefit from a versioned soname dependency so repository validation catches the mismatch before publication.

iuliansafta avatar Sep 08 '26 17:09 iuliansafta

yep webcam doesnt work anymore and reverting jsoncpp to 1.9.6 fixed it.

klaudworks avatar Sep 08 '26 23:09 klaudworks

Confirming on a second machine: Dell XPS 16 DA16260 (Core Ultra X7 358H, Panther Lake, OV08X40), Omarchy 4.0.3, same package versions. The camera stopped working immediately after the update that carried jsoncpp 1.9.6-3 → 1.9.8-1.

One-line reproduction, no camera hardware needed

$ ldd /usr/lib/libcamhal/plugins/ipu75xa.so | grep -c 'not found'
1
$ ldd /usr/lib/libcamhal/plugins/ipu75xa.so | grep -i json
	libjsoncpp.so.26 => not found

Any system with intel-ipu7-camera 1.0.5-1 and jsoncpp 1.9.8-1 reproduces this deterministically. ipu75xa.so is the only file in the package with an unresolved dependency.

Runtime symptom chain, for anyone searching for the error text

The user-visible failure is the camera going dark; the journal only shows GLib assertions, which do not mention jsoncpp at all:

v4l2-relayd[…]: g_param_spec_enum: assertion 'g_enum_get_value (enum_class, default_value) != NULL' failed
v4l2-relayd[…]: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
v4l2-relayd[…]: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed

The cause only becomes visible when running the source by hand:

$ gst-launch-1.0 icamerasrc num-buffers=5 ! fakesink
CamHAL[ERR] HalAdaptor: load_camera_hal_library, failed to open library:
  /usr/lib/libcamhal/plugins/ipu75xa.so,
  error: libjsoncpp.so.26: cannot open shared object file: No such file or directory
CamHAL[ERR] HalAdaptor: get_number_of_cameras, function call is nullptr
WARNING: erroneous pipeline: could not link camerasrc0 to fakesink0

The empty camera list is why icamerasrc cannot build its device-name enum property, which produces the assertions above.

Workaround note

A symlink libjsoncpp.so.26 → libjsoncpp.so.27 circulates for this, but it asserts ABI compatibility across a soname bump that exists precisely to deny it. Supplying the real .so.26 alongside is equally simple and does not:

tmp=$(mktemp -d) && cd "$tmp"
tar -xf /var/cache/pacman/pkg/jsoncpp-1.9.6-3-x86_64.pkg.tar.zst usr/lib/
sudo install -Dm755 usr/lib/libjsoncpp.so.26 /usr/local/lib/libjsoncpp.so.26
echo /usr/local/lib | sudo tee /etc/ld.so.conf.d/local-lib.conf
sudo ldconfig && sudo systemctl restart v4l2-relayd@ipu7

On this system nothing links against .so.27 (scan of /usr/lib/*.so* and /usr/bin/*: 0 hits), so keeping both costs nothing. Verified: camera delivers frames again afterwards.

Seconding your third suggestion — a versioned libjsoncpp.so=26-64-style dependency would have turned this into an install-time conflict instead of a silent runtime failure.

Unrelated second failure on kernel 7.2, in case it confuses the triage

On 7.2.x this camera is broken a second, independent way: ipu-acpi from ipu7-drivers 1.0.5 no longer creates the sensor's fwnode graph endpoint, so ov08x40 never binds (cat /sys/kernel/debug/devices_deferred → ov08x40: waiting for fwnode graph endpoint) and no sensor entity appears in /dev/media0. Fixing jsoncpp alone will not restore the camera on 7.2; on 7.1.x it does. That half is a driver issue and is filed upstream at intel/ipu7-drivers.

disy-mk avatar Sep 09 '26 09:09 disy-mk

Confirming on Omarchy stable, and two things the thread doesn't yet say.

Dell XPS 14 DA14260 (Panther Lake, OV08X40), Omarchy 4.0.3-1 stable — not RC. jsoncpp 1.9.6-3 → 1.9.8-1 arrived from Arch [extra] in an ordinary omarchy-update on 2026-09-08 (16:45 CDT), with intel-ipu7-camera 1.0.5-1 left in place. Same signature as above: ldd /usr/lib/libcamhal/plugins/ipu75xa.so → libjsoncpp.so.26 => not found, GLib assertion spam from v4l2-relayd, kernel side entirely healthy. So this reaches stable users, not only people who opted into RC.

  1. The rebuild has not been promoted to stable. omarchy-pkgs 72a628ae ("Rebuild Intel IPU7 camera against updated jsoncpp", 2026-09-09 03:05 UTC) produced 1.0.5-2 with rebuild_on: ["jsoncpp"], but a fresh [omarchy] db sync at 2026-09-11 ~21:00 UTC still lists intel-ipu7-camera 1.0.5-1 (built 2026-07-13). Installing the edge 1.0.5-2 artifact by hand (pacman -U, signature verified) restored the camera immediately — same kernel, same jsoncpp; ipu75xa.so now NEEDED libjsoncpp.so.27, and ldd over all 110 shared objects in the package reports no unresolved sonames. Since the jsoncpp bump comes from Arch and reaches stable users at once, a rebuild_on rebuild probably needs to be promoted on the same cadence as the dependency that triggered it.

  2. The merged rebuild did not take the soname dependency from omarchy-pkgs #357. The default-branch PKGBUILD still has bare 'jsoncpp' in depends, so pacman still cannot refuse the next incompatible jsoncpp upgrade. depends=('libjsoncpp.so') (which makepkg resolves to libjsoncpp.so=27-64) would turn the next occurrence into a visible dependency conflict instead of a silently dark camera. #357 is still the change that prevents recurrence; 72a628ae only repairs this instance.

One note for anyone debugging this on a machine where the jsoncpp bump landed in the same transaction as a kernel upgrade (here linux-ptl 7.1.8 → 7.2.3): the kernel took the blame first, for three days. gst-inspect-1.0 icamerasrc 2>&1 | grep 'CamHAL\[ERR\]' — no root, no reboot, one second — names jsoncpp directly and would have settled it before anything was downgraded.

Reported with the help of Claude Code.

nathankramm avatar Sep 11 '26 20:09 nathankramm

1.0.5-2 verified working on a third machine — and both of @nathankramm's points still hold today (2026-09-12).

Dell XPS 16 DA16260 (Panther Lake, OV08X40), Omarchy stable, kernel 7.1.8. I had been running the libjsoncpp.so.26-alongside workaround since 2026-09-09 and have now replaced it with the rebuilt package.

The rebuild works

$ pacman-key --verify intel-ipu7-camera-1.0.5-2-x86_64.pkg.tar.zst.sig
gpg: Good signature from "Omarchy <[email protected]>" [full]

$ objdump -p .../ipu75xa.so | grep -i json
  NEEDED  libjsoncpp.so.27

Every ELF file in the package resolves: 55 shared objects and executables scanned, zero not found. After installing it I removed /usr/local/lib/libjsoncpp.so.26 and /etc/ld.so.conf.d/local-lib.conf, ran ldconfig, and the camera still delivers real frames — 1920x1080, luma mean 121.3, standard deviation 72.2, i.e. actual image content rather than the black warm-up placeholders.

Point 1 — still not in stable, three days on

Both channel databases, fetched today:

channel version build date
stable 1.0.5-1 2026-07-14
edge 1.0.5-2 2026-09-09

So a stable user who hits this today still gets the broken package and has no way to reach the fix through pacman. Worth noting for anyone tempted to install the edge artifact by hand: pacman -Syu will not pull it back, since 1.0.5-1 is the older revision — you simply stay ahead until stable catches up.

Point 2 — confirmed from the built package, not just the PKGBUILD

The %DEPENDS% field in the repo database is the same in both channels:

%DEPENDS%
...
jsoncpp

So the shipped 1.0.5-2 really does carry the unversioned dependency, and pacman still cannot refuse the next incompatible jsoncpp. That makes omarchy-pkgs#357 the change that matters; 72a628ae repairs this instance only.

Side note for anyone carrying the intel_cvs patch

Installing the package reverts local changes under /usr/src/vision-drivers-1.0.5/ and immediately rebuilds DKMS from the fresh source, for every installed kernel. If you applied intel/vision-drivers#41 (the IRQF_ONESHOT one-liner), it is silently gone afterwards — the already-loaded module keeps running, so nothing is visible until the next reboot brings the manage.c:1502 WARNING back. Check with:

for k in $(ls /lib/modules); do
  m=$(find /lib/modules/$k -name 'intel_cvs.ko*' | head -1)
  [ -n "$m" ] && echo "$k $(modinfo "$m" | awk '/^srcversion/{print $2}')"
done

and re-apply plus dkms build --force (not install --force alone — that does not recompile).

disy-mk avatar Sep 12 '26 13:09 disy-mk

This is fixed in what stable and RC ship today. I checked it on a disposable Omarchy 4.0.4 worker against the live package repositories, which carry signatures from [email protected]:

  • Stable and RC both serve intel-ipu7-camera 1.0.6-2, built 2026-09-15. Edge serves 1.0.6-3. Arch [extra] has jsoncpp 1.9.8-1, which provides only libjsoncpp.so.27.
  • With jsoncpp 1.9.8-1 installed, ldd on 1.0.5-1's ipu75xa.so reports libjsoncpp.so.26 => not found, which is the failure reported here. On 1.0.6-2's copy it resolves to /usr/lib/libjsoncpp.so.27, and no file in 1.0.6-2 or 1.0.6-3 asks for .so.26.
  • The rebuild came from omacom/omarchy-pkgs@72a628ae, which also added rebuild_on: ["jsoncpp"]. The package was rebuilt again for 1.0.6.

A camera still on 1.0.5-1 should come right after a normal omarchy-update. Only a machine that skipped or held the package update would stay broken: with IgnorePkg, a partial upgrade, or hand-replaced HAL files, the fix is pacman -S intel-ipu7-camera. Rerunning the hardware installer won't reinstall a package that is already present. This only fixes the jsoncpp half. The separate kernel 7.2 sensor-binding failure mentioned above is not covered here.

One thing remains, and it lives in omacom/omarchy-pkgs rather than here. The package still declares a bare jsoncpp dependency, both in the PKGBUILD on master and in every channel's database, and omacom/omarchy-pkgs#357, which would have made it the libjsoncpp.so soname, was closed unmerged. So pacman still can't refuse the next incompatible jsoncpp, and a future soname bump could darken the camera again until the rebuild reaches each channel. Nothing in this repository causes the mismatch or needs to change for it.

Codex at medium effort reviewed the same evidence separately and agreed on all three points. It added that the installer skips packages already present, so it cannot repair this. It saw the same evidence, so its agreement is not fully independent. The maintainer will decide whether to close this and whether to take up the soname dependency in omarchy-pkgs.

omarchybot avatar Oct 11 '26 09:10 omarchybot

Looks like this is fixed on current stable/RC (intel-ipu7-camera 1.0.6-2 per the bot check in-thread). Safe to close unless anyone still hits it after omarchy update.

jandrusk avatar Oct 13 '26 16:10 jandrusk