Package Details: ttfviewer-bin 0.2.8-3

Git Clone URL: https://aur.archlinux.org/ttfviewer-bin.git (read-only, click to copy)
Package Base: ttfviewer-bin
Description: A small tool for developers to view and preview various ttf font/icon image formats. It is based on Qt and opencv frameworks and supports windows/linux/macos.
Upstream URL: https://github.com/QQxiaoming/TTFviewer
Keywords: preview ttf view
Licenses: GPL-3.0-only
Conflicts: ttfviewer
Provides: ttfviewer
Submitter: zxp19821005
Maintainer: zxp19821005
Last Packager: zxp19821005
Votes: 0
Popularity: 0.000000
First Submitted: 2023-04-06 07:42 (UTC)
Last Updated: 2024-08-30 03:12 (UTC)

Latest Comments

dreieck commented on 2023-07-24 11:21 (UTC) (edited on 2023-07-24 11:27 (UTC) by dreieck)

When I run TTFviewer, it fails for me with

The futex facility returned an unexpected error code.
Aborted

and exitcote 134.

Maybe you compile from source instead of downloading a precompiled binary?

Run with gdb (with debuginfod download of debugging symbols for official packages):

(gdb) run
Starting program: /usr/bin/TTFviewer 
[Thread debugging using libthread_db enabled]                                                                                                                
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff25ff6c0 (LWP 20867)]                                                                                                                      
[New Thread 0x7ffff1c146c0 (LWP 20870)]                                                                                                                      
The futex facility returned an unexpected error code.

Thread 3 "QDBusConnection" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff1c146c0 (LWP 20870)]
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;                                                                      
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff60a0983 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007ffff6051ea8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff603b53d in __GI_abort () at abort.c:79
#4  0x00007ffff603c29e in __libc_message (fmt=fmt@entry=0x7ffff61b33a8 "%s") at ../sysdeps/posix/libc_fatal.c:150
#5  0x00007ffff609441b in __GI___libc_fatal (message=message@entry=0x7ffff61b5b78 "The futex facility returned an unexpected error code.\n")
    at ../sysdeps/posix/libc_fatal.c:159
#6  0x00007ffff609b848 in futex_fatal_error () at ../sysdeps/nptl/futex-internal.h:87
#7  __futex_lock_pi64 (futex_word=futex_word@entry=0x7ffff395b260, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=128)
    at futex-internal.c:203
#8  0x00007ffff60a1926 in __pthread_mutex_lock_full (mutex=0x7ffff395b260) at pthread_mutex_lock.c:441
#9  0x00007ffff3935193 in dbus_threads_init () from /opt/TTFviewer/./lib/libdbus-1.so.3
#10 0x00007ffff5e6bb89 in ?? () from /opt/TTFviewer/./lib/libQt6DBus.so.6
#11 0x00007ffff5e5b42c in ?? () from /opt/TTFviewer/./lib/libQt6DBus.so.6
#12 0x00007ffff67a2e3f in QObject::event(QEvent*) () from /opt/TTFviewer/./lib/libQt6Core.so.6
#13 0x00007ffff6757ce7 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/TTFviewer/./lib/libQt6Core.so.6
#14 0x00007ffff675aaac in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /opt/TTFviewer/./lib/libQt6Core.so.6
#15 0x00007ffff69ad193 in ?? () from /opt/TTFviewer/./lib/libQt6Core.so.6
#16 0x00007ffff5f3817d in g_main_context_dispatch () from /opt/TTFviewer/./lib/libglib-2.0.so.0
#17 0x00007ffff5f38400 in ?? () from /opt/TTFviewer/./lib/libglib-2.0.so.0
#18 0x00007ffff5f384a3 in g_main_context_iteration () from /opt/TTFviewer/./lib/libglib-2.0.so.0
#19 0x00007ffff69acb19 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/TTFviewer/./lib/libQt6Core.so.6
#20 0x00007ffff676370b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/TTFviewer/./lib/libQt6Core.so.6
#21 0x00007ffff685d4d2 in QThread::exec() () from /opt/TTFviewer/./lib/libQt6Core.so.6
#22 0x00007ffff5e59b9a in ?? () from /opt/TTFviewer/./lib/libQt6DBus.so.6
#23 0x00007ffff68d3566 in ?? () from /opt/TTFviewer/./lib/libQt6Core.so.6
#24 0x00007ffff609ebe5 in start_thread (arg=<optimized out>) at pthread_create.c:444
#25 0x00007ffff6120dd0 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

ltrace TTFviewer:

_ZNSt8ios_base4InitC1Ev(0x49dac8, 0x7ffeda751508, 0x7ffeda751518, 736)                           = 2
__cxa_atexit(0x7f47dfac2bd0, 0x49dac8, 0x49d7c8, 736)                                            = 0
strlen("V0.2.4")                                                                                 = 6
_ZN7QString8fromUtf8E14QByteArrayView(0x49dab0, 6, 0x47378c, 1932)                               = 0x49dab0
_ZN10QArrayData8allocateEPPS_xxxNS_16AllocationOptionE(0x7ffeda750180, 24, 8, 2)                 = 0x1992450
_ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE(0x49db00, 0, 0xe1174384f0f16cb7, 896)          = 1
_Znwm(56, 0x7ffeda7513a0, 64, 0)                                                                 = 0x19942d0
_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_(1, 0x1994310, 0x19942e0, 0x19942e0) = 0x1994310
_ZN9QtPrivate14compareStringsE11QStringViewS0_N2Qt15CaseSensitivityE(3, 0x1994290, 11, 0x19942b0) = 0xffffffff
_Z21qRegisterResourceDataiPKhS0_S0_(3, 0x474580, 0x474600, 0x474640)                             = 1
_ZN16QCoreApplication12setAttributeEN2Qt20ApplicationAttributeEb(23, 1, 0x7ffeda751518, 0)       = 0x7f47e042ad39
_ZN12QApplicationC1ERiPPci(0x7ffeda751320, 0x7ffeda75131c, 0x7ffeda751508, 0x60200)              = 1
_ZN12QApplication4fontEv(0x7ffeda751330, 0x19e7680, 0, 0x19b7a40)                                = 0x7ffeda751330
_ZNK5QFont13defaultFamilyEv(0x7ffeda751340, 0x7ffeda751330, 0, 0x7f47df9f1ba0)                   = 0x7ffeda751340
_ZN5QFont9setFamilyERK7QString(0x7ffeda751330, 0x7ffeda751340, 0x19f5200, 0x500000000)           = 0x1d5f200
_ZN5QFont12setPixelSizeEi(0x7ffeda751330, 13, 1, 1)                                              = 0x19ee460
_ZN12QApplication7setFontERK5QFontPKc(0x7ffeda751330, 0, 0, 0xbff0000000000000)                  = 0x20002
_ZN11QMainWindowC2EP7QWidget6QFlagsIN2Qt10WindowTypeEE(0x7ffeda751340, 0, 0, 5)                  = 0x7f47e11bd72f
_ZNK7QObject10objectNameEv(0x7ffeda751140, 0x7ffeda751340, 0x1967010, 2)                         = 0x7ffeda751140
_ZN7QObject13setObjectNameERK7QString(0x7ffeda751340, 0x7ffeda751140, 114, 0)                    = 0
_ZN7QWidget6resizeERK5QSize(0x7ffeda751340, 0x7ffeda751140, 0x7ffeda7510f0, 0x7ffeda7510f0)      = 1
_ZNK7QWidget10sizePolicyEv(0x7ffeda751340, 35, 0, 0x19f8940)                                     = 0x550000
_ZN7QWidget13setSizePolicyE11QSizePolicy(0x7ffeda751340, 0x50000, 0, 0x19f8940)                  = 0
_ZN7QWidget14setMinimumSizeEii(0x7ffeda751340, 600, 195, 0x7f47e155dec0)                         = 0x19f8ad8
_ZN7QWidget14setMaximumSizeEii(0x7ffeda751340, 0xffffff, 195, 0xffffff)                          = 0x19f8ad8
_ZN7QWidgetC1EPS_6QFlagsIN2Qt10WindowTypeEE(0x1d5f520, 0x7ffeda751340, 0, 1)                     = 0x7f47e041efd8
_ZN11QHBoxLayoutC1EP7QWidget(0x1d3d4e0, 0x1d5f520, 0x1967010, 0)                                 = 0x7f47e16cbe20
_ZN9QGroupBoxC1EP7QWidget(0x1aa2760, 0x1d5f520, 0x1967010, 6)                                    = 0x1a55e58
_ZN11QGridLayoutC1EP7QWidget(0x1ba7260, 0x1aa2760, 0x1967010, 4)                                 = 1
_ZN9QComboBoxC1EP7QWidget(0x19f96c0, 0x1aa2760, 0x1967010, 5)                                    = 0x4000
_ZN11QGridLayout9addWidgetEP7QWidgetiiii6QFlagsIN2Qt13AlignmentFlagEE(0x1ba7260, 0x19f96c0, 0, 1) = 99
_ZN12QRadioButtonC1EP7QWidget(0x1c7b950, 0x1aa2760, 0x1967010, 5)                                = 0x19ee460
_ZN10QBoxLayout9addWidgetEP7QWidgeti6QFlagsIN2Qt13AlignmentFlagEE(0x1d3d4e0, 0x1aa2760, 0, 0)    = 3
_ZN11QVBoxLayoutC1EP7QWidget(0x1c7b790, 0x1c7b8f0, 0x1967010, 3)                                 = 0x7f47e16cbfd8
_ZNK9QComboBox5countEv(0x1c7b650, 14, 0x1a459b8, 0)                                              = 0
_ZN5QIconC1Ev(0x7ffeda751138, 0x7ffeda7510e0, -1, 0)                                             = 0
_ZN9QComboBox10insertItemEiRK5QIconRK7QStringRK8QVariant(0x1c7b650, 0, 0x7ffeda751138, 0x7ffeda751140The futex facility returned an unexpected error code.
 <no return ...>
+++ killed by SIGABRT +++

strace TTFviewer:

[...]
openat(AT_FDCWD, "/home/[...]/.fontconfig//5ca8086aeacc9c68e81a71e7ef846b3b-le64.cache-8", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/fonts/encodings/large/.uuid", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
brk(0x1ab8000)                          = 0x1ab8000
brk(0x1ad9000)                          = 0x1ad9000
brk(0x1afa000)                          = 0x1afa000
brk(0x1b1b000)                          = 0x1b1b000
brk(0x1b3c000)                          = 0x1b3c000
brk(0x1b5d000)                          = 0x1b5d000
brk(0x1b7e000)                          = 0x1b7e000
brk(0x1b9f000)                          = 0x1b9f000
brk(0x1bc0000)                          = 0x1bc0000
brk(0x1be1000)                          = 0x1be1000
brk(0x1c02000)                          = 0x1c02000
brk(0x1c23000)                          = 0x1c23000
brk(0x1c44000)                          = 0x1c44000
brk(0x1c65000)                          = 0x1c65000
brk(0x1c86000)                          = 0x1c86000
brk(0x1ca7000)                          = 0x1ca7000
brk(0x1cc8000)                          = 0x1cc8000
brk(0x1ce9000)                          = 0x1ce9000
brk(0x1d0a000)                          = 0x1d0a000
brk(0x1d2b000)                          = 0x1d2b000
brk(0x1d4c000)                          = 0x1d4c000
brk(0x1d6d000)                          = 0x1d6d000
brk(0x1d8e000)                          = 0x1d8e000
brk(0x1daf000)                          = 0x1daf000
brk(0x1dd0000)                          = 0x1dd0000
brk(0x1df1000)                          = 0x1df1000
brk(0x1e12000)                          = 0x1e12000
brk(0x1e33000)                          = 0x1e33000
brk(0x1e54000)                          = 0x1e54000
brk(0x1e75000)                          = 0x1e75000
brk(0x1e96000)                          = 0x1e96000
brk(0x1eb7000)                          = 0x1eb7000
brk(0x1ed8000)                          = 0x1ed8000
brk(0x1efa000)                          = 0x1efa000
readlink("/proc/self/exe", "/opt/TTFviewer/TTFviewer", 4095) = 24
mmap(NULL, 589824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9fd5276000
sysinfo({uptime=333137, loads=[96768, 156832, 138656], totalram=8151453696, freeram=301060096, sharedram=295178240, bufferram=229376, totalswap=0, freeswap=0, procs=1291, totalhigh=0, freehigh=0, mem_unit=1}) = 0
munmap(0x7f9fd5276000, 589824)          = 0
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f9fd4b05000
mprotect(0x7f9fd4b06000, 8388608, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f9fd5305990, parent_tid=0x7f9fd5305990, exit_signal=0, stack=0x7f9fd4b05000, stack_size=0x7ffe80, tls=0x7f9fd53056c0} => {parent_tid=[20267]}, 88) = 20267
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x1c58d58, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7ffe20d3ff00, FUTEX_WAIT_PRIVATE, 0, NULLThe futex facility returned an unexpected error code.
) = ?
+++ killed by SIGABRT +++
Aborted

Regards!

dreieck commented on 2023-07-24 10:03 (UTC)

Please add provides=("ttfviewer=${pkgver}").

Thanks for maintaining!