<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi all,</p>
    <p>I've been getting the following message after upgrading to the
      latest version of QFieldSync. The problem only occurs when setting
      one or more  layers to 'offline editing'. Setting all layers in
      QField sync to 'copy' works fine. Any ideas what the problem is?:</p>
    <p><span style=" font-weight:600; color:#ff0000;">An error has
        occurred while executing Python code:</span> <br>
    </p>
    <p style=" margin-top:14px; margin-bottom:12px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
        style=" font-size:large; font-weight:600;">RuntimeError: wrapped
        C/C++ object of type QgsVectorLayer has been deleted </span></p>
    <pre style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New';">Traceback (most recent call last):
  File "C:/Users/paull/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qfieldsync\core\offline_converter.py", line 342, in on_offline_editing_next_layer
    msg = self.trUtf8('Packaging layer {layer_name}…').format(layer_name=self.__offline_layers[layer_index - 1].name())
RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted
</span></pre>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br>
      <span style=" font-weight:600;">Python version:</span> 3.7.0
      (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit
      (AMD64)] <br>
      <span style=" font-weight:600;">QGIS version:</span>
      3.16.3-Hannover Hannover, 94ac9f21b8 <br>
    </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br>
    </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">Best
      regards</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br>
    </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">Paul<br>
    </p>
  </body>
</html>