gkahiu / qrbarcodeitem-plugin

A QGIS plugin that enables QR code and linear barcode items to be added to a print or report layout.
https://gkahiu.github.io/qrbarcodeitem-plugin/
GNU General Public License v3.0
9 stars 1 forks source link

Crash: ctrl+z in layout manager causes a crash, when influecing the plugin #8

Open Binarypasta opened 2 years ago

Binarypasta commented 2 years ago

I experience a full crash when using the undo functionality whilst working in the layout manager.

The specific case to be reproduce this: Working with the QGIS Atlas functionality, and placing an barcode (for internal identification) with the data field specified to [%"Number"%]. Where the attribute is found in the same layer as the polygons that are used for the Atlas production, but not the specific attribute that's used for sorting the atlas. With the code set to "Code 128", i haven't tested other codes, as these can't generated a barcode based on the number system avaible in the attribute.

`## Report Details

Python Stack Trace

Windows fatal exception: stack overflow

Current thread 0x0000642c (most recent call first):
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\layout\abstract_barcode.py", line 119 in evaluate_expression
    exp_ctx = self.createExpressionContext()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\layout\abstract_barcode.py", line 109 in computed_value
    return self.evaluate_expression(self._code_value)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\layout\abstract_barcode.py", line 131 in update_item
    if self.computed_value():
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\layout\linear_barcode_item.py", line 105 in add_checksum
    self.update_item()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 184 in _adapt_ui_item_checksum_properties
    self._barcode_item.add_checksum = False
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 318 in _update_gui_values
    self._adapt_ui_item_checksum_properties()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 58 in __init__
    self._update_gui_values()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\registry.py", line 76 in createItemWidget
    return LinearBarcodeLayoutItemWidget(None, item)
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 205 in _on_add_checksum
    self._barcode_item.endCommand()
  File "C:\Users/webma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrbarcodeitem\gui\linear_barcode_widget.py", line 186 in _adapt_ui_item_checksum_properties
    self._chk_checksum.setCheckState(Qt.Checked)
  ...

Stack Trace No stack trace is available.

QGIS Info QGIS Version: 3.26.3-Buenos Aires QGIS code revision: 65e4edfdada Compiled against Qt: 5.15.3 Running against Qt: 5.15.3 Compiled against GDAL: 3.5.1 Running against GDAL: 3.5.1

System Info CPU Type: x86_64 Kernel Type: winnt Kernel Version: 10.0.19043 `

gkahiu commented 2 years ago

What is the character encoding of the attribute? Is it possible to send a sample subset of the layer?

Binarypasta commented 2 years ago

A string value with a data length of 7, only numbers, i.e. 1234567. the string is either fully "used" with a full length number or null.

Edit: The sample does represent data with IP, which hinders me sharing freely. If no it can not be recreated by you or solved by other means, i might duplicate it at some point with fake data.

The dataset, btw., is a multipolygon in gpkg, other data fields are either strings or dates - should that help.

That was quick, thanks for keeping track of the plugin, i plan to use it quite a lot.

gkahiu commented 2 years ago

OK, the data seems fine. Is this only happening with the 'Code 128' barcode type or others as well? Can you try with any other field and see if you still encounter the issue?