skins dir 解析錯誤:app 從 / 找 //common.rcc,
而檔案在 opt/FTNN/skins/。修正後 skins、字體、主題全部載入,
CFTMobileLoginPageView 已實例化,setTheme 完整走完。
| 問題 | 現象 | 根因 | 修法 |
|---|---|---|---|
| UI 資源全缺 | 47 次 FUiResProvider.cpp is undef |
skins dir : / → 找 //common.rcc |
解壓 skins/ 到 chroot,並複製到 /skins |
| OpenGL 失敗 | qglx_findConfig: Failed to finding matching FBConfig |
Xvfb 無合適 GLX FBConfig | LIBGL_ALWAYS_SOFTWARE=1 + GALLIUM_DRIVER=llvmpipe + QT_XCB_GL_INTEGRATION=none |
Info setTheme:theme is 1 (file:FThemesManager.cpp[35]) Info setTheme:setTheme end! theme is 1 (file:FThemesManager.cpp[98]) PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: PAGFont - Register font: style: CFTCrashReport Initialize Url: https://api.futunn.com/apm-system-event-file/v3/upload , from channel: official [15053:15053:20261121,065916.335962:ERROR directory_reader_posix.cc:42] opendir /proc/self/fd: No such file or directory (2) /opt/FTNN/CrashReporter: error while loading shared libraries: libQt5Sql.so.5: cannot open shared object file: No such file or directory PowerNotification Init systemBus fail! StartJankDetect uiJankThresholdMesc: 2400 [FTApm] Init end QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0, type: 1 QLayout: Attempting to add QLayout "" to CFTMobileLoginPageView "", which already has a layout Info setTheme:theme is 1 (file:FThemesManager.cpp[35]) exec (this: QEventLoop(0x7fff12fbf9f0) ): Entering with parameter: QFlags()
關鍵三行:
Info setResFileDir:skins dir : /opt/FTNN/skins <-- 由 "/" 修正為正確路徑 Info setTheme:setTheme end! theme is 1 <-- 主題完整設定完成 QLayout: Attempting to add QLayout "" to CFTMobileLoginPageView "" <-- 登入頁已實例化
| 階段 | 存活 | 狀態 |
|---|---|---|
| 上一份報告 | 未測(程式即退) | 登入 UI 資源請求中 |
| 修 skins 後 | ≥ 30 秒 | 主題設定完成、字體載入 |
| 修 GLX 後 | ≥ 30 秒(t=25 仍 ALIVE) | 登入頁 view 已建 |
存活時間以 kill -0 逐點探測,非估算。
=== SIGNAL 5 (SIGTRAP) === /opt/FTNN/trap.so(+0x11be) /lib/x86_64-linux-gnu/libc.so.6(+0x3fd70) /opt/FTNN/libcef.so(+0x39094d1)
Qt 層已完全通過,SIGTRAP 現在來自 libcef.so 內部。
--enable-logging=stderr --v=1 --no-sandbox --disable-gpu 全部無效——CEF 未及輸出任何日誌即中止。
這說明 CEF 在極早期初始化就觸發了自身 CHECK。
libcef.so 一載入即 SIGTRAP,故 WebView 類內容(包括可能的圖表)不可能運作。apt-get download + dpkg-deb -x + unshare -Ur chroot + Xvfb -noreset + 兩個 LD_PRELOAD shim。# 一次性:把 app + skins 放進 sysroot cp -a opt/FTNN sysroot/opt/ dpkg-deb --fsys-tarfile FTNN.deb | tar -x -C sysroot $(... | grep 'opt/FTNN/skins/') mkdir -p sysroot/skins && cp sysroot/opt/FTNN/skins/*.rcc sysroot/skins/ # 每次跑 unshare -Ur --map-root-user sh -c ' chroot sysroot /usr/bin/Xvfb :99 -screen 0 1600x1000x24 +extension GLX -noreset & sleep 6 chroot sysroot /runit.sh'
其中 sysroot/runit.sh:
#!/bin/sh export LD_PRELOAD=/opt/FTNN/trap.so:/opt/FTNN/combo.so:/opt/FTNN/randspy.so export DISPLAY=:99 HOME=/home/ftnn XDG_RUNTIME_DIR=/home/ftnn export LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=llvmpipe QT_XCB_GL_INTEGRATION=none exec /opt/FTNN/FTNN
combo.so 解除 app 對 /dev/null 的 stderr 靜音;randspy.so 把 /dev/urandom 重定向到本地檔;trap.so 捕捉 SIGTRAP 印出 backtrace。