Page 1 of 1
Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 3:04 pm
by FadeToGrey
The attached bootlog fom a current MX Linux KDE contains some unprintable characters which manage to stop QSI from reading it completely. This one is just an example, it seems to happen at other log files as well, rendering QSI somewhat useless - you need to open the log in /var/log with a text editor to see everything...
Even the KDE clipboard is caused to fail by these characters. In the example file, they occur at the beginning of lines, 53, 61, 90, 125, 133 and 163. QSI and KED clipboard both stop displaying / copying anything after the first occurrence of this character.
Does anyone happen to know where this comes from and how to solve it?
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 3:06 pm
by Eadwine Rose
According to the forum rules (please read): Please provide full Quick System Info, use copy for forum button, no edits.
LiveUSB version is OK if needed.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 3:23 pm
by fehlix
FadeToGrey wrote: Tue Feb 04, 2025 3:04 pm
The attached bootlog fom a current MX Linux KDE contains some unprintable characters which manage to stop QSI from reading it completely. this one is just an example, it seems to happen at other log files as well, rendering QSI somewhat useless - you need to open the log in /var/log with a text editor to see everything...
Even the KDE clipboard is caused to fail by these characters. In the example file, they occur at the beginning of lines, 53, 61, 90, 125, 133 and 163. QSI and KED clipboard both stop displaying / copying anything after the first occurrence of this character.
Does anyone happen to know where this comes from and how to solve it?
Would the cli qsi tool work?
Running on the terminal command line as normal user:
If so, perhaps post it.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 3:35 pm
by FadeToGrey
Sorry, here it is:
Code: Select all
System:
Kernel: 6.1.0-30-amd64 [6.1.124-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-30-amd64 root=UUID=<filter> ro
quiet splash resume=UUID=<filter> resume_offset=125800448
Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 7 dm: SDDM
Distro: MX-23.5_KDE_x64 Libretto July 31 2023 base: Debian GNU/Linux 12
(bookworm)
Machine:
Type: Desktop Mobo: ASRock model: B450 Gaming-ITX/ac
serial: <superuser required> UEFI: American Megatrends v: P3.70
date: 11/18/2019
Battery:
Device-1: wacom_battery_0 model: Wacom Intuos Pro M serial: N/A charge: 100%
status: full
CPU:
Info: model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ gen: 2
level: v3 note: check built: 2018-21 process: GF 12nm family: 0x17 (23)
model-id: 8 stepping: 2 microcode: 0x800820D
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB desc: 6x512 KiB
L3: 16 MiB desc: 2x8 MiB
Speed (MHz): avg: 1550 min/max: 1550/3400 boost: enabled scaling:
driver: acpi-cpufreq governor: ondemand cores: 1: 1550 2: 1550 3: 1550
4: 1550 5: 1550 6: 1550 7: 1550 8: 1550 9: 1550 10: 1550 11: 1550 12: 1550
bogomips: 81589
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA TU117 [GeForce GTX 1650] vendor: Micro-Star MSI
driver: nvidia v: 535.216.03 non-free: 530.xx+
status: current (as of 2023-03) arch: Turing code: TUxxx
process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 0a:00.0 chip-ID: 10de:1f82 class-ID: 0300
Device-2: Polycom EagleEye Mini Camera type: USB
driver: hid-generic,usbhid,uvcvideo bus-ID: 1-7.3:9 chip-ID: 095d:3001
class-ID: 0300 serial: <filter>
Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9
compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia display-ID: :0
screens: 1
Screen-1: 0 s-res: 3840x1440 s-dpi: 107 s-size: 912x342mm (35.91x13.46")
s-diag: 974mm (38.35")
Monitor-1: DP-0 pos: primary,top-left res: 2560x1440 hz: 60 dpi: 109
size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
Monitor-2: DVI-D-0 pos: top-left res: 2560x1440 hz: 60 dpi: 109
size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
Monitor-3: HDMI-0 pos: bottom-r res: 1280x1024 hz: 60 dpi: 87
size: 375x300mm (14.76x11.81") diag: 480mm (18.91") modes: N/A
API: OpenGL v: 4.6.0 NVIDIA 535.216.03 renderer: NVIDIA GeForce GTX
1650/PCIe/SSE2 direct-render: Yes
Audio:
Device-1: NVIDIA vendor: Micro-Star MSI driver: snd_hda_intel bus-ID: 3-3:2
v: kernel pcie: chip-ID: 0b0e:245e gen: 3 class-ID: 0300 speed: 8 GT/s
serial: <filter> lanes: 16 bus-ID: 0a:00.1 chip-ID: 10de:10fa
class-ID: 0403
Device-2: AMD Family 17h HD Audio vendor: ASRock driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 0c:00.3
chip-ID: 1022:1457 class-ID: 0403
Device-3: GN Netcom Jabra Link 370 type: USB
driver: jabra,snd-usb-audio,usbhid
API: ALSA v: k6.1.0-30-amd64 status: kernel-api tools: alsamixer,amixer
Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: N/A
modules: iwlwifi pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 08:00.0
chip-ID: 8086:24fb class-ID: 0280
Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 09:00.0
chip-ID: 8086:1539 class-ID: 0200
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth:
Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 1-6:3 chip-ID: 8087:0aa7 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 0 state: down bt-service: N/A
rfk-block: hardware: no software: yes address: <filter>
Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff
link-mode: peripheral accept
Drives:
Local Storage: total: 4.1 TiB used: 1.04 TiB (25.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 PRO 512GB
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 1B2QEXP7 temp: 48.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 EVO 2TB
size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 3B6Q scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 870 EVO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 2B6Q scheme: GPT
ID-4: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 860 EVO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 4B6Q scheme: GPT
ID-5: /dev/sdd maj-min: 8:48 type: USB model: USB007 mini-USB6BU
size: 28 MiB block-size: physical: 512 B logical: 512 B type: N/A
serial: <filter> rev: 1.16
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 877 GiB size: 862.16 GiB (98.31%) used: 80.38 GiB (9.3%)
fs: ext4 dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 650 MiB size: 648.7 MiB (99.80%)
used: 292 KiB (0.0%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 800 GiB size: 786.37 GiB (98.30%)
used: 77.36 GiB (9.8%) fs: ext4 dev: /dev/sda3 maj-min: 8:3
Swap:
Kernel: swappiness: 25 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: file size: 40 GiB used: 0 KiB (0.0%) priority: -2
file: /swap/swap
ID-2: swap-2 type: zram size: 256 MiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 39.2 C mobo: N/A gpu: nvidia temp: 40 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 30%
Repos:
Packages: 3097 pm: dpkg pkgs: 3079 libs: 1705
tools: apt,apt-get,aptitude,nala pm: rpm pkgs: 0 pm: flatpak pkgs: 18
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://mirror.plusserver.com/debian/debian bookworm-updates main contrib non-free non-free-firmware
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://mirror.plusserver.com/debian/debian bookworm main contrib non-free non-free-firmware
2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm main non-free
2: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm ahs
Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
No active apt repos in: /etc/apt/sources.list.d/skype-stable.list
Active apt repos in: /etc/apt/sources.list.d/softmaker.list
1: deb [signed-by=/etc/apt/keyrings/softmaker.gpg] https://shop.softmaker.com/repo/apt stable non-free
Active apt repos in: /etc/apt/sources.list.d/surfshark.list
1: deb https://ocean.surfshark.com/debian stretch main
Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https://linux.teamviewer.com/deb stable main
Active apt repos in: /etc/apt/sources.list.d/termius.list
1: deb [arch=amd64 signed-by=/usr/share/keyrings/termius-2023.gpg,/usr/share/keyrings/termius-2026.gpg] https://deb.termius.com squeeze main
Active apt repos in: /etc/apt/sources.list.d/vivaldi.list
1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:
Processes: 358 Uptime: 2h 8m wakeups: 3 Memory: 31.27 GiB
used: 6.66 GiB (21.3%) Init: SysVinit v: 3.06 runlevel: 5 default: graphical
tool: systemctl Compilers: gcc: 12.2.0 alt: 12 Shell: quick-system-in
default: fish v: 3.6.0 running-in: quick-system-in inxi: 3.3.26
Boot Mode: UEFI
This part of QSI works both in command line and in GUI - it's the log files that cause the trouble.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 3:40 pm
by fehlix
FadeToGrey wrote: Tue Feb 04, 2025 3:35 pm
Sorry, here it is:
This part of QSI works both in command line and in GUI - it's the log files that cause the trouble.
Ahh ok, thanks, that was not clear to me, b/c both the tool and sometimes the report are referenced as "QSI".
Any other logs involved or only syslog?
Also any other observation or changes you made recently, which caused the tool to not work on some logs.
Perhaps what the size of those failing logs?
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 3:46 pm
by FadeToGrey
I have observed seemingly outdated logs for a while now but only now found out that the logs are actually there but are not displayed completely. Let me check if there are currently others which are not displayed - I fear I did not find out yet how to search for that coluprit character via command line.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 3:59 pm
by FadeToGrey
Apart from boot.log I found:
- user.log
- opensnitchd.log (Opensnitch is however nothing you provide, thus I see it als "for sake of completeness only" ;-) )
- syslog
- kern.log
- /cups/access_log
I think that's it - opening each log file in the same instance of Kate lets you search for the character.
Edit: interestingly, in some of those logs there are a lot of those characters an a row - access:log for example contains 184 of those in a row, kern.log has a row of 313 of those...
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 4:11 pm
by timkb4cq
I wonder if the issue is using fish as your default shell instead of bash or dash.
Fish isn't fully Posix compliant so some system shell scripts may not be running as intended.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 4:18 pm
by FadeToGrey
timkb4cq wrote: Tue Feb 04, 2025 4:11 pm
I wonder if the issue is using fish as your default shell instead of bash or dash.
Fish isn't fully Posix compliant so some system shell scripts may not be running as intended.
Thanks for pointing that out! Let me try switching system standard back to bash, reboot a couple of times and come back to you.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 4:19 pm
by dolphin_oracle
hmm null characters.
I don't remember, did we stitch together rotated log files? if so, maybe something when combined.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 4:40 pm
by FadeToGrey
timkb4cq wrote: Tue Feb 04, 2025 4:11 pm
I wonder if the issue is using fish as your default shell instead of bash or dash.
Fish isn't fully Posix compliant so some system shell scripts may not be running as intended.
Hm, does not seem so... I switched the default shell back to bash by doing a chsh -s /usr/bin/bash for both my user and the administrator, rebooted... and boot.log contained new instances of those characters. AFAIR shell scripts ought to call "their" shell in the first line anyway (e.g. "#!/bin/bash"), or am I mistaken there?
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 4:56 pm
by fehlix
FadeToGrey wrote: Tue Feb 04, 2025 3:59 pm
Apart from boot.log I found:
- user.log
- opensnitchd.log (Opensnitch is however nothing you provide, thus I see it als "for sake of completeness only" ;-) )
- syslog
- kern.log
- /cups/access_log
I think that's it - opening each log file in the
same instance of Kate lets you search for the character.
Edit: interestingly, in some of those logs there are a lot of those characters an a row - access:log for example contains 184 of those in a row, kern.log has a row of 313 of those...
Maybe could you post some of those, which do not have any sensible data, unmodyfied.
I mean not the one shown by QSI, if they got shown. But the files directly from /var/log...
e.g move/add those into a zip-archive and attach the zip to a post. Note in the file-selection window to add an attachment,
you may need change the default filter to *zip (or all) files. There is a size limit, so choose small ones.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:14 pm
by FadeToGrey
if it helps, here is a list of all the occurrences I found so far:
- boot.log: one between the text "Setting sensors limits..." and "done", one between "Starting cgroup management daemon: cgmanager" and "Setting up console font and keymap...done.", one between "Starting Web Services Dynamic Discovery host daemon: wsdd" and "Starting CUPS Bonjour daemon: cups-browsed."
- user.log: 64 of them in a row between a "shutting down for system reboot" message and an error message regarding zram0 - interestingly that one cannot be reliably repeated, subsequents reboot informations do have the characters between the these two messages
- syslog: a generous amount of 3580 of those characters occurring almost at the same time at the same reboot when the ones in user.log appeared (time stamp in user.log: between 2025-02-04T19:07:55.126367+01:00 and 2025-02-04T19:08:36.845258+01:00, time stamp here: between 2025-02-04T19:07:55.139275+01:00 and 2025-02-04T19:08:36.825676+01:00
- kern.log: once again, one occurrence, 313 in a row, at the same time when the ones in user.log and syslog occurred (between timestamp 2025-02-04T19:07:55.135468+01:00 and 2025-02-04T19:08:36.825676+01:00)
- cups/access_log: and again, one occurrence, 313 in a row, at largely the same time when the ones in user.log and syslog occurred, between [04/Feb/2025:19:07:45 +0100] and [04/Feb/2025:19:08:38 +0100]
This means: apart from the occurrences in boot.log, these characters seem to be connected to a reboot done because of MX Linux loosing its grip on any sound devices (both sound card, Nvidia HDA and bluetooth connector for my headphones) - which again seems to be triggered by my KVM switch if the computer is inactive but running for an extended period of time. Wonderful... some kind of uncaught timeout error entry while waiting for the device?

Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:17 pm
by fehlix
fehlix wrote: Tue Feb 04, 2025 4:56 pm
FadeToGrey wrote: Tue Feb 04, 2025 3:59 pm
Apart from boot.log I found:
- user.log
- opensnitchd.log (Opensnitch is however nothing you provide, thus I see it als "for sake of completeness only" ;-) )
- syslog
- kern.log
- /cups/access_log
I think that's it - opening each log file in the
same instance of Kate lets you search for the character.
Edit: interestingly, in some of those logs there are a lot of those characters an a row - access:log for example contains 184 of those in a row, kern.log has a row of 313 of those...
Maybe could you post some of those, which do not have any sensible data, unmodyfied.
I mean not the one shown by QSI, if they got shown. But the files directly from /var/log...
e.g move/add those into a zip-archive and attach the zip to a post. Note in the file-selection window to add an attachment,
you may need change the default filter to *zip (or all) files. There is a size limit, so choose small ones.
I tried you log.file you posted in #1 it doesn't crash. OK some "chars" like "null"-char/bytes are not properly filtered.
But no crash .
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:19 pm
by fehlix
FadeToGrey wrote: Tue Feb 04, 2025 5:14 pm
if it helps, here is a list of all the occurrences I found so far:
- boot.log: one between the text "Setting sensors limits..." and "done", one between "Starting cgroup management daemon: cgmanager" and "Setting up console font and keymap...done.", one between "Starting Web Services Dynamic Discovery host daemon: wsdd" and "Starting CUPS Bonjour daemon: cups-browsed."
- user.log: 64 of them in a row between a "shutting down for system reboot" message and an error message regarding zram0 - interestingly that one cannot be reliably repeated, subsequents reboot informations do have the characters between the these two messages
- syslog: a generous amount of 3580 of those characters occurring almost at the same time at the same reboot when the ones in user.log appeared (time stamp in user.log: between 2025-02-04T19:07:55.126367+01:00 and 2025-02-04T19:08:36.845258+01:00, time stamp here: between 2025-02-04T19:07:55.139275+01:00 and 2025-02-04T19:08:36.825676+01:00
- kern.log: once again, one occurrence, 313 in a row, at the same time when the ones in user.log and syslog occurred (between timestamp 2025-02-04T19:07:55.135468+01:00 and 2025-02-04T19:08:36.825676+01:00)
- cups/access_log: and again, one occurrence, 313 in a row, at largely the same time when the ones in user.log and syslog occurred, between [04/Feb/2025:19:07:45 +0100] and [04/Feb/2025:19:08:38 +0100]
This means: apart from the occurrences in boot.log, these characters seem to be connected to a reboot done because of MX Linux loosing its grip on any sound devices (both sound card, Nvidia HDA and bluetooth connector for my headphones) - which again seems to be triggered by my KVM switch if the computer is inactive but running for an extended period of time. Wonderful... some kind of uncaught timeout error entry while waiting for the device?
Maybe post some of those, so we can test, the adjusted "filter" used in QSI?
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:24 pm
by FadeToGrey
fehlix wrote: Tue Feb 04, 2025 4:56 pm
FadeToGrey wrote: Tue Feb 04, 2025 3:59 pm
Apart from boot.log I found:
- user.log
- opensnitchd.log (Opensnitch is however nothing you provide, thus I see it als "for sake of completeness only" ;-) )
- syslog
- kern.log
- /cups/access_log
I think that's it - opening each log file in the
same instance of Kate lets you search for the character.
Edit: interestingly, in some of those logs there are a lot of those characters an a row - access:log for example contains 184 of those in a row, kern.log has a row of 313 of those...
Maybe could you post some of those, which do not have any sensible data, unmodyfied.
I mean not the one shown by QSI, if they got shown. But the files directly from /var/log...
e.g move/add those into a zip-archive and attach the zip to a post. Note in the file-selection window to add an attachment,
you may need change the default filter to *zip (or all) files. There is a size limit, so choose small ones.
boot.log was already attached to the first post, did you see that one? Here are two more - user.log and access_log. syslog and kern.log are a bit painful to check for anything sensible due to their size, therefore I excluded those for now...
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:26 pm
by FadeToGrey
fehlix wrote: Tue Feb 04, 2025 5:17 pm
fehlix wrote: Tue Feb 04, 2025 4:56 pm
FadeToGrey wrote: Tue Feb 04, 2025 3:59 pm
Apart from boot.log I found:
- user.log
- opensnitchd.log (Opensnitch is however nothing you provide, thus I see it als "for sake of completeness only" ;-) )
- syslog
- kern.log
- /cups/access_log
I think that's it - opening each log file in the
same instance of Kate lets you search for the character.
Edit: interestingly, in some of those logs there are a lot of those characters an a row - access:log for example contains 184 of those in a row, kern.log has a row of 313 of those...
Maybe could you post some of those, which do not have any sensible data, unmodyfied.
I mean not the one shown by QSI, if they got shown. But the files directly from /var/log...
e.g move/add those into a zip-archive and attach the zip to a post. Note in the file-selection window to add an attachment,
you may need change the default filter to *zip (or all) files. There is a size limit, so choose small ones.
I tried you log.file you posted in #1 it doesn't crash. OK some "chars" like "null"-char/bytes are not properly filtered.
But no crash .
No, it does not crash. It simply discards everything behind the first of those characters. Check the amount of lines you can see in QSI and in a text editor.
(Edit: since the log files on my computer usually survive several days before they are replaced by a new file, this means QSI often does not show the current log at all)
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:31 pm
by timkb4cq
FadeToGrey wrote: Tue Feb 04, 2025 4:40 pmAFAIR shell scripts ought to call "their" shell in the first line anyway (e.g. "#!/bin/bash"), or am I mistaken there?
If you check the system scripts in /etc/init.d you'll see that most of them begin
#! /bin/sh or
#! /bin/sh -e
They expect /bin/sh to be set to a Posix compliant shell. It defaults to dash in MX-23. Fish is intentionally not Posix compliant. Variables are handled differently. Output from bash scripts will differ from what's expected because of that. Backticks don't work. There are still a number of init.d scripts that use backticks to execute commands. Export doesn't work for environment variables. Some system scripts use that.
I'm not saying I know for certain that fish is the cause of your issues - but I do know the output of some system scripts won't be the same when run with fish, and some of that incorrect output may already be saved in conf files that are still being used.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:35 pm
by FadeToGrey
timkb4cq wrote: Tue Feb 04, 2025 5:31 pm
FadeToGrey wrote: Tue Feb 04, 2025 4:40 pmAFAIR shell scripts ought to call "their" shell in the first line anyway (e.g. "#!/bin/bash"), or am I mistaken there?
If you check the system scripts in /etc/init.d you'll see that most of them begin
#! /bin/sh or
#! /bin/sh -e
They expect /bin/sh to be set to a Posix compliant shell. It defaults to dash in MX-23. Fish is intentionally not Posix compliant. Variables are handled differently. Output from bash scripts will differ from what's expected because of that. Backticks don't work. There are still a number of init.d scripts that use backticks to execute commands. Export doesn't work for environment variables. Some system scripts use that.
I'm not saying I know for certain that fish is the cause of your issues - but I do know the output of some system scripts won't be the same when run with fish, and some of that incorrect output may already be saved in conf files that are still being used.
I understand, but that should be okay here. /bin/sh is still sh (or dash, I admit I do not know the difference of those two), not fish. I quickly learned that makes a difference since I have a 20 year old Cadsoft Eagle PCB router software here and the installer that one uses immediately failed when running in fish after I installed MX.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:41 pm
by fehlix
FadeToGrey wrote: Tue Feb 04, 2025 5:26 pm
fehlix wrote: Tue Feb 04, 2025 5:17 pm
fehlix wrote: Tue Feb 04, 2025 4:56 pm
Maybe could you post some of those, which do not have any sensible data, unmodyfied.
I mean not the one shown by QSI, if they got shown. But the files directly from /var/log...
e.g move/add those into a zip-archive and attach the zip to a post. Note in the file-selection window to add an attachment,
you may need change the default filter to *zip (or all) files. There is a size limit, so choose small ones.
I tried you log.file you posted in #1 it doesn't crash. OK some "chars" like "null"-char/bytes are not properly filtered.
But no crash .
No, it does not crash. It simply discards everything behind the first of those characters. Check the amount of lines you can see in QSI and in a text editor.
(Edit: since the log files on my computer usually survive several days before they are replaced by a new file, this means QSI often does not show the current log at all)
Yes, sorry I meant not displaying properly. So thanks for the other logs. Just to make sure we not only"fixing" the null-byte issue...
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:44 pm
by FadeToGrey
fehlix wrote: Tue Feb 04, 2025 5:41 pm
FadeToGrey wrote: Tue Feb 04, 2025 5:26 pm
fehlix wrote: Tue Feb 04, 2025 5:17 pm
I tried you log.file you posted in #1 it doesn't crash. OK some "chars" like "null"-char/bytes are not properly filtered.
But no crash .
No, it does not crash. It simply discards everything behind the first of those characters. Check the amount of lines you can see in QSI and in a text editor.
(Edit: since the log files on my computer usually survive several days before they are replaced by a new file, this means QSI often does not show the current log at all)
Yes, sorry I meant not displaying properly. So thanks for the other logs. Just to make sure we not only"fixing" the null-byte issue...
You are welcome! I have to thank you for taking a look at my post that fast!
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:58 pm
by DukeComposed
FadeToGrey wrote: Tue Feb 04, 2025 5:26 pm
No, it does not crash. It simply discards everything behind the first of those characters. Check the amount of lines you can see in QSI and in a text editor.
Since the early days of UNIX, the null byte (0x00) was used to represent the end of a string. Because UNIX (and the Linux kernel) is written in C, and since C does not have a string datatype, text in C software is at its most basic level represented as a character array, often just a pointer to a spot in memory, with ASCII characters.
It's a little like being told to turn to a random page in a book and start reading, but not being told when to stop reading. Without being given an instruction like "Turn to page 52, and read ten words", a computer would normally just start at page 52 and read to the end of the book. And then crash because it ran out of things to read.
The null byte tells most C software to stop reading. It functions a little like a period in that regard, so your eyes have a logical place to know that the sentence has finished. This has problems, though, if something comes after the period, like if you were reading a sentence about U. S. history or P. D. Q. Bach.
If I were writing a naïve text parser, I'd write one that opened the file, looked for a newline (0x0a), and printed everything up to the newline or null byte, and then look for another newline.
timkb4cq wrote: Tue Feb 04, 2025 5:31 pm
I'm not saying I know for certain that fish is the cause of your issues - but I do know the output of some system scripts won't be the same when run with fish, and some of that incorrect output may already be saved in conf files that are still being used.
As a regular fish-shell user on multiple machines since the MX-19 days, I can state that my choice of shell has never had an effect on log files in /var/log. Granted, I leave the built-in scripts alone. When I write system scripts, I use #!/bin/sh as nature intended or, sometimes, execlineb.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 5:59 pm
by juwido
,,,Just to make sure we not only"fixing" the null-byte issue...
there are ESC in as well...
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 6:02 pm
by FadeToGrey
I also managed to copy the part of the syslog that contains those null characters, please find it attached as well.
By the way, something partially connected for the wish list. It would be great if QSI could translate the Escape-sequences for colours to coloured text as well (such as the
in the boot.log. Is there some place I can suggest that?
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 6:09 pm
by FadeToGrey
DukeComposed wrote: Tue Feb 04, 2025 5:58 pm
FadeToGrey wrote: Tue Feb 04, 2025 5:26 pm
No, it does not crash. It simply discards everything behind the first of those characters. Check the amount of lines you can see in QSI and in a text editor.
Since the early days of UNIX, the null byte (0x00) was used to represent the end of a string. Because UNIX (and the Linux kernel) is written in C, and since C does not have a string datatype, text in C software is at its most basic level represented as a character array, often just a pointer to a spot in memory, with ASCII characters.
It's a little like being told to turn to a random page in a book and start reading, but not being told when to stop reading. Without being given an instruction like "Turn to page 52, and read ten words", a computer would normally just start at page 52 and read to the end of the book. And then crash because it ran out of things to read.
The null byte tells most C software to stop reading. It functions a little like a period in that regard, so your eyes have a logical place to know that the sentence has finished. This has problems, though, if something comes after the period, like if you were reading a sentence about U. S. history or P. D. Q. Bach.
If I were writing a naïve text parser, I'd write one that opened the file, looked for a newline (0x0a), and printed everything up to the newline or null byte, and then look for another newline.
timkb4cq wrote: Tue Feb 04, 2025 5:31 pm
I'm not saying I know for certain that fish is the cause of your issues - but I do know the output of some system scripts won't be the same when run with fish, and some of that incorrect output may already be saved in conf files that are still being used.
As a regular fish-shell user on multiple machines since the MX-19 days, I can state that my choice of shell has never had an effect on log files in /var/log. Granted, I leave the built-in scripts alone. When I write system scripts, I use #!/bin/sh as nature intended or, sometimes, execlineb.
Whoa. Thanks for that background - and for confirming that fish is not the culprit here

. I would really like to keep that one... but yes, any scripts written by me use things that are there out of the box as well, namely either bash or sh.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 6:42 pm
by DukeComposed
juwido wrote: Tue Feb 04, 2025 5:59 pm
,,,Just to make sure we not only"fixing" the null-byte issue...
there are ESC in as well...
The escape characters are codes for printing text to screen in different colors. I checked, and I have nulls and escape codes in my /var/log/boot.log, too:
Code: Select all
------------ Sat Feb 01 20:36:08 PST 2025 ------------
INIT: version 3.06 booting
INIT: No inittab.d directory found
Using makefile-style concurrent boot in runlevel S.
Starting hotplug events dispatcher: systemd-udevd.
[snip]
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Configuring network interfaces in background...
\0done.
Starting RPC port mapper daemon: rpcbind.
Starting firewall: ufw...Setting kernel variables (/etc/ufw/sysctl.conf)...
\0done.
[snip]
Starting acpi_fakekey daemon...done.
Starting cgroup management daemon: cgmanager
\0Setting up console font and keymap...done.
Starting cgroup management proxy daemon: cgproxy.
Not starting fancontrol; run pwmconfig first. ... [33m(warning).[0m
Not starting NFS kernel daemon: no exports..
Confirmed it in a hex editor. Not really sure what they're doing there, but they don't seem to be hurting anything on my system. Considering that sysvinit doesn't invoke my choice of shell when it's starting the system, and considering that I never really open, edit, or think about boot.log in any capacity before now, I really doubt fish-shell has anything to do with it.
Re: Weird nonprintable characters in log file keep QSI from reading the log completely
Posted: Tue Feb 04, 2025 6:54 pm
by fehlix
FadeToGrey wrote: Tue Feb 04, 2025 6:02 pm
I also managed to copy the part of the syslog that contains those null characters, please find it attached as well.
By the way, something partially connected for the wish list. It would be great if QSI could translate the Escape-sequences for colours to coloured text as well (such as the
in the boot.log. Is there some place I can suggest that?
Yea, thanks I know, something was changed recently ignoring to remove the ansi-escape-color-codes and the null-bytes properly...