qgis-plugin icon indicating copy to clipboard operation
qgis-plugin copied to clipboard

Error after update 2022.5

Open bellanz80 opened this issue 2 years ago • 5 comments

Hi. I had Mergin (qgis plug) version 2022.4.1 installed, both in QGIS 3.22 and 3.26, in windows 10. No problem.

But, after updating the mergin qgis plug to version 2022.5, I had errors when opening the project properties panel, where the GUI becomes unstable and the texts overlap, making it unusable. In fact, the very update of the plug, to version 2022.5, ends with errors, but apparently then it lets you use the mergin and connect to the online account.

I tried a new, clean profile and no more problems, but I can't just use a new profile as the old one worked perfectly with all my settings.

If I go to the plug panel, and deactivate Mergin, the project properties panel works perfectly again.

image image image

https://user-images.githubusercontent.com/38449926/178317492-087c9dab-5e7e-4c6f-a76c-afb5415928e3.mp4

SO: windows 10 QGIS: 3.26 / 3.22 (osgeo)

bellanz80 avatar Jul 11 '22 16:07 bellanz80

Confirmed on my end too, causing crash whenever I open the project setting dialogs in master build, and cause a display error in 3.24 image

roya0045 avatar Jul 13 '22 12:07 roya0045

@bellanz80 Could you please attach a Python Error message which you are getting when this issue occurs?

ldebek avatar Jul 22 '22 14:07 ldebek

@bellanz80 Could you please attach a Python Error message which you are getting when this issue occurs?

I got the following on 3.24 when opening the project properties dialog.

File "C:\Users/_/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\project_settings_widget.py", line 42, in init self.cmb_snapping_mode.addItem("No snapping", 0) AttributeError: 'ProjectConfigWidget' object has no attribute 'cmb_snapping_mode'

And the Mergin tab in the properties dialog doesn't 'contain' anything, the button doesn't seem to trigger a change in the UI.

roya0045 avatar Jul 22 '22 16:07 roya0045

@ldebek Tried to reinstall the plugin got an error. Somehow the changes in the python file occur, but the changes in the ui files are not there. If I try/except the code related to snapping in the confing class, it works fine.

roya0045 avatar Jul 25 '22 12:07 roya0045

2022-07-26T22:37:36 WARNING Traceback (most recent call last): File "C:\Users/Luca/AppData/Roaming/QGIS/QGIS3\profiles\ULTIMO 3.16/python/plugins\Mergin\project_settings_widget.py", line 25, in createWidget return ProjectConfigWidget(parent) File "C:\Users/Luca/AppData/Roaming/QGIS/QGIS3\profiles\ULTIMO 3.16/python/plugins\Mergin\project_settings_widget.py", line 42, in init self.cmb_snapping_mode.addItem("No snapping", 0) AttributeError: 'ProjectConfigWidget' object has no attribute 'cmb_snapping_mode'

bellanz80 avatar Jul 27 '22 03:07 bellanz80