YoannQDQ / qgis-memory-layer-saver

Makes data in memory provider layers persistent between QGIS sessions. Data saved in .mldata file alongside project file.
Other
7 stars 4 forks source link

Error with 32768 length field - OverflowError: argument 1 overflowed: value must be in the range -32768 to 32767 #13

Open AlisterH opened 1 year ago

AlisterH commented 1 year ago
2023-07-21T23:36:37     WARNING    Traceback (most recent call last):
              File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\MemoryLayerSaver\memory_layer_saver.py", line 138, in save_data
              writer.write_layers(layers)
              File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\MemoryLayerSaver\writer.py", line 41, in write_layers
              self.write_layer(layer)
              File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\MemoryLayerSaver\writer.py", line 61, in write_layer
              ds.writeInt16(fld.length())
             OverflowError: argument 1 overflowed: value must be in the range -32768 to 32767

The attached project can be used to reproduce.

test memory layer saver.zip