Compile WebKit GSettings schemas for clean rootfs builds
The live nokia-beatles target exposed two gaps: the phone was still running the baseline webarchy.so/networks.so binaries, and WebKit's network process aborted because apk --no-scripts left gschemas.compiled ungenerated. Deploy the current plugin binaries on the phone and make clean image builds compile the schema database from explicit glib/gsettings-desktop-schemas packages. Add a host test and build guards; live HTTP rendering and Bluetooth discovery now pass.
This commit is contained in:
1 parent
a7b1a75465
commit
f892531df6
11 files changed
+174
-7
No files matched your search
+8
-1
@@ -13,6 +13,13 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
Work since `a1108` has focused on reliable 2720 Flip hardware support and a reproducible boot/flash path. Earlier incremental and superseded diagnostic entries are consolidated here.
|
||||
|
||||
### Live nokia-beatles plugin verification and WebKit GSettings schema fix
|
||||
|
||||
- **Stale live runtime**: the phone was still running the pre-fix `webarchy.so` (`3e3c3ac7...`) and `networks.so` (`97eaae44...`) from the baseline image, while `prebuilt/`, `overlay/rootfs/` and the local `rootfs/` already carried the rebuilt artifacts (`8eb1b493...` and `e12103ee...`). That is why the earlier repository fixes were not visible on the device. The current binaries were deployed, their hashes verified, and both resident plugins restarted.
|
||||
- **Actual WebKit root cause**: with the current `webarchy.so`, `G_MESSAGES_DEBUG=all` exposed `GLib-GIO-ERROR **: No GSettings schemas are installed on the system` in `WebKitNetworkProcess`, immediately followed by `ERROR: WebKit encountered an internal error ... WebLoaderStrategy.cpp(679)`. The rootfs had the `gsettings-desktop-schemas` XML files but no `gschemas.compiled`, because packages are installed with `--no-scripts` and the apk trigger never ran. The earlier renderer-profile fix was necessary but not sufficient. The package set now explicitly contains `glib` and `gsettings-desktop-schemas`; both image containers install host `glib` tools; and `apply-bananarchy-overlay.sh` calls `compile-gsettings-schemas.sh` to produce `usr/share/glib-2.0/schemas/gschemas.compiled`. `scripts/test-webkit-gsettings.py` guards the wiring and compiles a synthetic schema. Live verification: after compiling the schemas, the WebKit internal error disappeared and an HTTP probe rendered 51,420 green pixels in the 240x217 browser viewport.
|
||||
- **Live Bluetooth verification**: starting from `Powered: no`, the deployed `networks.so` powered the WCNSS controller on, ran `bluetoothctl --timeout 15 scan on`, and merged an injected `[NEW] Device AA:BB:CC:DD:EE:FF BT_PROBE` discovery line even though the persistent `bluetoothctl devices` list was deliberately empty. The plugin reported `Found 1 device(s)` and retained `BT_PROBE` in its device list. The controller ended `Powered: yes`.
|
||||
- **Final live state**: the phone has the current plugin binaries, the compiled `gschemas.compiled` database, normal plugin environments with no Bluetooth stub in `PATH`, and no debug-only WebKit environment. Webarchy and Networks were returned to their normal preloaded state; the Bluetooth controller was powered back off.
|
||||
|
||||
### Live 2720 Flip verification and cover DT gating
|
||||
|
||||
- **Live test performed**: the phone was reachable over root SSH (`keys/phone_id_ed25519`). We backed up `/boot` on the phone and the host, deployed the two-panel DTB, a rebuilt `boot.img`, an initramfs containing the external panel firmware and the `mux-core`/`mux-gpio`/`spi-mux` modules, plus the updated cover daemon/scripts, then rebooted. `/dev/fb1` appeared as 240x240 @ 32bpp (stride 960), `card0` internal / `card1` external / `card2` msm, `bananarchy-coverctl STATUS` reported `backend=fb`, and the real framebuffer passed the whole state machine (open = all black, `LID CLOSED` = still black, `BUTTON` = clock/network/battery lit, `LID OPEN` = black again, `BUTTON` while open ignored, 3 s blank timeout = black with `visible=0`). Keypad, Xorg, dwm, backlight and `sxmo_state.sh` stayed healthy at the software level. Loading the mux modules in the initramfs also moved both panel probes from ~27 s to ~1.1 s and removed the `[pmOS-rd] /dev/fb0 did not appear after waiting 10 seconds` error.
|
||||
@@ -57,7 +64,7 @@ Work since `a1108` has focused on reliable 2720 Flip hardware support and a repr
|
||||
|
||||
### Webarchy WebKit renderer
|
||||
|
||||
- **Unexpected WebKit error on the 2720 Flip**: `webarchy.so` used `setenv(..., "0")` for the WebKitGTK presence flags `WEBKIT_DISABLE_COMPOSITING_MODE`, `WEBKIT_DISABLE_DMABUF_RENDERER` and `WEBKIT_SKIA_ENABLE_CPU_RENDERING` while still requesting `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`. WebKitGTK treats the presence of those variables as "disable", so the WebProcess started with conflicting renderer state and died on every navigation, which WebKit reported as an "Unexpected WebKit error". `configureWebkitRenderer()` now unsets all three flags first, enables the CPU renderer only where required, and chooses `WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER` on `nokia,beatles` (and after the first WebProcess crash) while `nokia-argon` keeps `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` and WebGL. Create `~/.config/sxmo/webarchy_software_renderer` to force the software profile on any target. Load failures now report the GError domain/code in the browser status line instead of an opaque message. `scripts/check-rebuild.sh` guards the profile and the rebuilt `webarchy.so`.
|
||||
- **Unexpected WebKit error on the 2720 Flip**: `webarchy.so` used `setenv(..., "0")` for the WebKitGTK presence flags `WEBKIT_DISABLE_COMPOSITING_MODE`, `WEBKIT_DISABLE_DMABUF_RENDERER` and `WEBKIT_SKIA_ENABLE_CPU_RENDERING` while still requesting `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`. WebKitGTK treats the presence of those variables as "disable", so the WebProcess started with conflicting renderer state and died on every navigation, which WebKit reported as an "Unexpected WebKit error". `configureWebkitRenderer()` now unsets all three flags first, enables the CPU renderer only where required, and chooses `WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER` on `nokia,beatles` (and after the first WebProcess crash) while `nokia-argon` keeps `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` and WebGL. Create `~/.config/sxmo/webarchy_software_renderer` to force the software profile on any target. Load failures now report the GError domain/code in the browser status line instead of an opaque message. `scripts/check-rebuild.sh` guards the profile and the rebuilt `webarchy.so`. Live testing later showed this renderer fix was necessary but not sufficient: the shipped rootfs also lacked compiled GSettings schemas (see the live WebKit GSettings schema fix above).
|
||||
|
||||
### Nokia 2720 Flip hardware
|
||||
|
||||
|
||||
Reference in new issue
Block a user