Bug 512044

Summary: Unable to use the live data source feature with serial port
Product: [Applications] LabPlot2 Reporter: Mathis Paquet <mathispaquet362>
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED FIXED    
Severity: normal CC: martin.marmsoler, mathispaquet362
Priority: NOR    
Version First Reported In: 2.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 3.0
Sentry Crash Report:
Attachments: Error message
I18N_ARGUMENT_MISSING
Workaround

Description Mathis Paquet 2025-11-13 20:01:56 UTC
Created attachment 186754 [details]
Error message

SUMMARY
When adding a live data source from a serial port, the "Data Format" tab is greyed out and the message "initialization failed: Live: No column modes set" appears at the bottom. I am unable to get data from a serial device.

STEPS TO REPRODUCE
1. Plug a serial device outputting  comma separated data into a USB port.
2. Create a new Labplot project
3. Add a new live data source from a serial port
4. Select the correct port and baud rate
5. Select ASCII Data type

OBSERVED RESULT
Unable to edit the Data Format

EXPECTED RESULT
Able to edit the Data Format

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × 13th Gen Intel® Core™ i9-13900HX
Memory: 32 GiB of RAM (31.1 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 4090 Laptop GPU

ADDITIONAL INFORMATION
Comment 1 Mathis Paquet 2025-11-14 15:14:36 UTC
Created attachment 186786 [details]
I18N_ARGUMENT_MISSING
Comment 2 Mathis Paquet 2025-11-14 15:15:11 UTC
There also seems to be an I18N_ARGUMENT_MISSING error with the column data types
Comment 3 Mathis Paquet 2025-11-14 15:20:04 UTC
The I18N_ARGUMENT_MISSING error is present on the Arch linux build of version 2.12 of Labplot, but not on the 2.12.1 version of the Appimage. The original issue is still present in the Appimage.
Comment 4 Mathis Paquet 2025-11-14 18:00:57 UTC
Created attachment 186791 [details]
Workaround
Comment 5 Mathis Paquet 2025-11-14 18:02:02 UTC
This bug has a very strange workaround, for which I have attached a screen recording.
Comment 6 Martin 2025-11-15 15:47:16 UTC
Thanks for reporting the problem. For serialport only custom shall be available, because the datatypes of all columns must be specified.
Did you get it to work with the workaround?
Comment 7 Mathis Paquet 2025-11-15 15:57:17 UTC
The workaround allows me to input the column names and types, and then it works
 If I don't do what I did in the screen recording, the fields for inputting the column types are greyed out.
It's very odd. First, I have to switch from serial input to something else, like MQTT. Then, I switch back to serial. Then, I have to set the data format to binary, and switch it back to ASCII. Only then can I enter the details concerning the column types and names.
Comment 8 Martin 2025-11-15 16:22:34 UTC
Thanks, I fixed it in https://invent.kde.org/education/labplot/-/merge_requests/789