Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WRAPPER] Rework on libharfbuzz wrapper #836

Merged
merged 10 commits into from
Jun 13, 2023
Merged

[WRAPPER] Rework on libharfbuzz wrapper #836

merged 10 commits into from
Jun 13, 2023

Conversation

ksco
Copy link
Collaborator

@ksco ksco commented Jun 13, 2023

for #832.

The app is still not working, but I think it's not related to libharfbuzz.

Full log of running apk-editor-studio below, with or w/o BOX64_EMULATED_LIBS=libharfbuzz.so.0 produces the same result.

ksco@Asahi:~/Downloads 132$ BOX64_ROLLING_LOG=1 ./apk-editor-studio_linux_1.7.1.AppImage                 
Rolling log, showing last 16 function call on signals
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:16384 Running on - - with 8 Cores
Params database has 24 entries
Box64 with Dynarec v0.2.3 1d8ef061 built on Jun 14 2023 00:48:55
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 72 Env var
Looking for ./apk-editor-studio_linux_1.7.1.AppImage
Rename process to "apk-editor-studio_linux_1.7.1.AppImage"
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libz.so.1
Using native(wrapped) libfuse.so.2
Rolling log, showing last 16 function call on signals
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:16384 Running on - - with 8 Cores
Params database has 24 entries
Box64 with Dynarec v0.2.3 1d8ef061 built on Jun 14 2023 00:48:55
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 76 Env var
Looking for /tmp/.mount_apk-edKDQJy4/AppRun
Rename process to "apk-editor-studio"
Using emulated /tmp/.mount_apk-edKDQJy4/usr/bin/../lib/libQt5Xml.so.5
Using emulated /tmp/.mount_apk-edKDQJy4/usr/bin/../lib/libQt5Widgets.so.5
Using emulated /tmp/.mount_apk-edKDQJy4/usr/bin/../lib/libQt5Gui.so.5
Using emulated /tmp/.mount_apk-edKDQJy4/usr/bin/../lib/libQt5Network.so.5
Using emulated /tmp/.mount_apk-edKDQJy4/usr/bin/../lib/libQt5DBus.so.5
Using emulated /tmp/.mount_apk-edKDQJy4/usr/bin/../lib/libQt5Core.so.5
Using native(wrapped) libglib-2.0.so.0
Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libz.so.1
Using emulated /tmp/.mount_apk-edKDQJy4/usr/lib/libicui18n.so.60
Using emulated /tmp/.mount_apk-edKDQJy4/usr/lib/libicuuc.so.60
Using native(wrapped) libdl.so.2
Using native(wrapped) libm.so.6
Using emulated /tmp/.mount_apk-edKDQJy4/usr/lib/libicudata.so.60
Using native(wrapped) libGL.so.1
Using native(wrapped) libpng16.so.16
Using native(wrapped) libharfbuzz.so.0
Using native(wrapped) libdbus-1.so.3
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/platforms/libqxcb.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5
Using native(wrapped) libfontconfig.so.1
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libX11-xcb.so.1
Using native(wrapped) libxcb-icccm.so.4
Using native(wrapped) libxcb-image.so.0
Using native(wrapped) libxcb-shm.so.0
Using native(wrapped) libxcb-keysyms.so.1
Using native(wrapped) libxcb-randr.so.0
Using native(wrapped) libxcb-render-util.so.0
Using native(wrapped) libxcb-render.so.0
Using native(wrapped) libxcb-shape.so.0
Using native(wrapped) libxcb-sync.so.1
Using native(wrapped) libxcb-xfixes.so.0
Using native(wrapped) libxcb-xinerama.so.0
Using native(wrapped) libxcb-xkb.so.1
Using emulated /tmp/.mount_apk-edKDQJy4/usr/lib/libxcb-xinput.so.0
Using native(wrapped) libxcb.so.1
Using native(wrapped) libX11.so.6
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libxkbcommon-x11.so.0
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libXcursor.so.1
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so
APK Editor Studio v1.7.1
Platform: Linux
Qt 5.15.2
Starting APK Editor Studio...
Initializing menus...
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/bearer/libqconnmanbearer.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/bearer/libqgenericbearer.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/bearer/libqnmbearer.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqgif.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqicns.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqico.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqjpeg.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/../../lib/libjpeg.so.8
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqmng.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/../../lib/libmng.so.2
Using emulated /tmp/.mount_apk-edKDQJy4/usr/lib/liblcms2.so.2
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqsvg.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/../../lib/libQt5Svg.so.5
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqtga.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqtiff.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/../../lib/libtiff.so.5
Using native(wrapped) liblzma.so.5
Using emulated /tmp/.mount_apk-edKDQJy4/usr/lib/libjbig.so.0
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqwbmp.so
Using emulated /tmp/.mount_apk-edKDQJy4/usr/plugins/imageformats/libqwebp.so
libpng error: Read Error
Last calls
6893|PltResolver "png_set_longjmp_fn" => return 0x48FE23F0
6893|0x1030d6b73: Calling png_set_longjmp_fn (/usr/lib/libpng16.so.16)(0x48F7CC40, 0x53780, 0xC8, ...) => return 0x48F7CC40
6893|PltResolver "_setjmp" => return 0x48F7CC40
6893|0x1030d6b7b: Calling my__setjmp (/tmp/.mount_apk-edKDQJy4/AppRun)(0x48F7CC40, 0x53780, 0xC8, ...) => return 0x0
6893|PltResolver "png_set_read_fn" => return 0x0
6893|0x1030d6b9b: Calling my16_png_set_read_fn (/tmp/.mount_apk-edKDQJy4/AppRun)(0x48F7CC40, 0x48FE23F0, 0x1030D5BB0, ...) => return 0x0
6893|PltResolver "png_read_info" => return 0x0
6893|0x1030d6ba8: Calling png_read_info (/usr/lib/libpng16.so.16)(0x48F7CC40, 0x48FE2480, 0x1030D5BB0, ...) => return 
6893|PltResolver "png_get_io_ptr" => return 0x0
6893|0x1030d5bda: Calling png_get_io_ptr (/usr/lib/libpng16.so.16)(0x48F7CC40, 0x48FE24AC, 0x100000008, ...) => return 0x48FE23F0
6893|PltResolver "_ZN9QIODevice4readEPcx" => return 0x48FA4A30
6893|0x103f09eaf: Calling memcpy (/usr/lib/libc.so.6)(0x48FE24AC, 0x496CF828, 0xDC, ...) => return 0x48FE24AC
6893|0x103f32a22: Calling free (/tmp/.mount_apk-edKDQJy4/AppRun)(0x496CF810, 0x1, 0x8, ...) => return 0x104216D58
6893|PltResolver "png_error" => return 0x0
6893|0x1030d5ccc: Calling png_error (/usr/lib/libpng16.so.16)(0x48F7CC40, 0x1034C65BC, 0x0, ...) => return 
6893|0x1030d6b4c: Calling png_create_info_struct (/usr/lib/libpng16.so.16)(0x48F7CC40, 0x2, 0x3, ...) => return 0x48FE25F0
6893|SIGILL @0x53780 (???(0x53780)) (x64pc=0xe0393/???:"???", rsp=0x10242e3e8, stack=0x101c30000:0x102430000 own=(nil) fp=0x48fa4a30), for accessing 0x53780 (code=1/prot=27), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x0000000048fe24ac RSP-0x18:0x0000000048f7cc40 RSP-0x10:0x000000004725f220 RSP-0x08:0x000000000000020a
RSP+0x00:0x00000001030d5ccc RSP+0x08:0x0000000000000013 RSP+0x10:0xb229bab891314800 RSP+0x18:0x0000000048fe23f0
RAX:0x0000000000000000 RCX:0x0000000000000000 RDX:0x0000000000000000 RBX:0x00000000ffffff2c 
RSP:0x000000010242e3e8 RBP:0x0000000048fa4a30 RSI:0x00000001034c65bc RDI:0x0000000048f7cc40 
 R8:0x0000000000000000  R9:0x000000000000001c R10:0x0000000000001101 R11:0x0000000000000000 
R12:0x0000000048fe24ac R13:0x0000000048f7cc40 R14:0x0000000048fe23f0 R15:0x000000010242e9c0  opcode=CC 53 43 E0 BD A9 34 00 (C3 00 00 00 00)
[1]    6893 illegal hardware instruction (core dumped)  BOX64_ROLLING_LOG=1 ./apk-editor-studio_linux_1.7.1.AppImage

@ksco
Copy link
Collaborator Author

ksco commented Jun 13, 2023

With BOX64_EMULATED_LIBS=libpng16.so.16, the app starts. So something is wrong with libpng wrapper.

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 13, 2023

Yeah, error handling with libpng use setjmp, so it's of course complicated (like with libjpg)

@ptitSeb ptitSeb merged commit e0dc494 into ptitSeb:main Jun 13, 2023
@ksco ksco deleted the harfbuzz branch June 14, 2023 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants