opengisch/qfieldsync

RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted

BoswachterMarc opened this issue · 3 comments

I am getting this error since I made following changes in a QFieldCloud project (and testing offline, making a package manually with QFieldSync). I was

  • adding a one to many relation
  • making a non spatial layer for the data on the many side
  • changing the settings of a certain text field in QGis to work with the one to many relation (adding the relation/widget type 'relation editor')

I see there was a similar problem before: #502

image
image

I am working on Ubuntu 22.04.2 LTS, QGis 3.30.3 's Hertogenbosch c006973ad1 and QFieldSync 4.4.9

Is this error a problem on my side or is it a bug?
Will this error pollute the QfieldCloud project when I synchronize it?
Can I get rid of this error popping up?

I don't have a small sample project to share. I don't know if I can reproduce the problem.


Update: I copied the project to another Ubuntu 23.04 pc (Gnome version 44 - Wayland) with the same QGis version and when making a small change in a attribute form of a polygon layer (setting a field from editable to not editable), the error pops up again...

afbeelding

Hi @BoswachterMarc we are about to release a new fixed version.
Could you install https://github.com/opengisch/qfieldsync/releases/download/v4.5.0/qfieldsync.v4.5.0.zip via plugin manager and see if it fixed the issue?
Thank you!

@m-kuhn I installed the v4.5.0 and my first impression is that it no longer occurs on the Ubuntu 23.04 (I made some changes in the attribute form, changed background color and stuff like that...).
I can only test it more extensively in a few days...

This should be fixed with 4.5.0, please reopen if this persists after an upgrade. Thank you