Bug 1881 - Crash when channel name is empty "Caught exception of type N6sigrok5ErrorE (invalid argument)"
Summary: Crash when channel name is empty "Caught exception of type N6sigrok5ErrorE (i...
Alias: None
Product: PulseView
Classification: Unclassified
Component: UI (show other bugs)
Version: unreleased development snapshot
Hardware: x86 Linux
: Normal normal
Target Milestone: ---
Assignee: Nobody
Depends on:
Reported: 2023-08-03 13:00 CEST by Jernej Jakob
Modified: 2023-08-03 13:00 CEST (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Jernej Jakob 2023-08-03 13:00:33 CEST
Open sigrok. start a new session, fx2lafw. Click on a channel label (on the left side of the main window), e.g. "DO". The window to change its parameters will open with the name already selected. Press backspace to delete the name. Pulseview immediately crashes, printing:
"Caught exception of type N6sigrok5ErrorE (invalid argument)"
The same happens if you click in the name field and backspace one character at a time, once you delete all characters so that the field is empty, it crashes.
Renaming a channel is possible without deleting its name, just start typing the new name instead of pressing backspace, so it's not that critical, I just have to remember to not press backspace or I'll lose the session.

PulseView 0.5.0-git-ae8dd87

Libraries and features:
  PulseView 0.5.0-git-ae8dd87
  Qt 5.15.10
  glibmm 2.66.6
  Boost 1_82
  exprtk 20200101
  libsigrok 0.6.0-git/4:0:0 (rt: 0.6.0-git-395ac73e/4:0:0)
   - glib 2.76.4 (rt: 2.76.4/7604:4)
   - zlib 1.2.13
   - libzip 1.9.2
   - minilzo 2.10
   - libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1)
   - libusb-1.0 API 0x01000109
   - bluez 5.66
   - libftdi 1.5
   - Host x86_64-pc-linux-gnu, little-endian
   - SCPI backends TCP, RPC, serial, USBTMC
  libsigrokdecode 0.6.0-git-df3a4a3/4:0:0 (rt: 0.6.0-git-df3a4a3/4:0:0)
   - glib 2.76.4 (rt: 2.76.4/7604:4)
   - Python 3.11.4 / 0x30b04f0 (API 1013, ABI 3)
   - Host x86_64-pc-linux-gnu, little-endian