Error when syncing project.
@harminius がすでに取り組んでいます。
2026年11月11日 から。
評価
調査の方向性
The traceback points to mergin/merginproject.py in inspect_files() and mergin/utils.py in generate_checksum(). Start by tracing how a mistakenly opened TIFF is included in the files inspected during sync, then reproduce the error and identify which file read fails. Done means syncing recovers without requiring the local project to be deleted and downloaded again.
索引モデルが issue の本文から書いたものです。
説明
If I accidentally open a tiff file from a Mergin project (in the sidebar) instead of the project file and then I try to open the project file and try to do a sync, I get the following error and the project cannot be synced anymore, I have to delete the local project and redownload it.
OSError: [Errno 22] Invalid argument
Traceback (most recent call last):
File "C:\Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python/plugins\Mergin\plugin.py", line 484, in current_project_sync
self.manager.project_status(self.mergin_proj_dir)
File "C:\Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python/plugins\Mergin\projects_manager.py", line 256, in project_status
pull_changes, push_changes, push_changes_summary = self.mc.project_status(project_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python/plugins\Mergin\mergin\client.py", line 1162, in project_status
push_changes = mp.get_push_changes()
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python/plugins\Mergin\mergin\merginproject.py", line 658, in get_push_changes
changes = self.compare_file_sets(self.files(), self.inspect_files())
^^^^^^^^^^^^^^^^^^^^
File "C:\Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python/plugins\Mergin\mergin\merginproject.py", line 324, in inspect_files
"checksum": generate_checksum(abs_path),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python/plugins\Mergin\mergin\utils.py", line 26, in generate_checksum
chunk = f.read(chunk_size)
^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument
Versão do Python: 3.12.14 (main, Aug 19 2026, 09:39:31) [MSC v.1944 64 bit (AMD64)]
Versão do QGIS: 3.44.13-Solothurn Solothurn, 2c8a7782a96
Caminho do Python:
C:/OSGeo4W/apps/qgis-ltr/./python
C:/Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python
C:/Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python/plugins
C:/OSGeo4W/apps/qgis-ltr/./python/plugins
C:\OSGeo4W\bin\python312.zip
C:\OSGeo4W\apps\Python312\DLLs
C:\OSGeo4W\apps\Python312\Lib
C:\OSGeo4W\bin
C:\OSGeo4W\apps\Python312
C:\OSGeo4W\apps\Python312\Lib\site-packages
C:\OSGeo4W\apps\Python312\Lib\site-packages\win32
C:\OSGeo4W\apps\Python312\Lib\site-packages\win32\lib
C:\OSGeo4W\apps\Python312\Lib\site-packages\Pythonwin
C:/Users/adrianearaujo/AppData/Roaming/QGIS/QGIS3\profiles\adriane/python
C:\Users\adrianearaujo\AppData\Roaming\QGIS\QGIS3\profiles\adriane\python\plugins\Mergin\mergin\deps\click-8.1.3-py3-none-any.whl
C:\Users\adrianearaujo\AppData\Roaming\QGIS\QGIS3\profiles\adriane\python\plugins\Mergin\mergin\deps\pygeodiff
C:\Users\adrianearaujo\AppData\Roaming\QGIS\QGIS3\profiles\adriane\python\plugins\Mergin\mergin\deps\python_dateutil-2.8.2-py2.py3-none-any.whl
C:\Users\adrianearaujo\AppData\Roaming\QGIS\QGIS3\profiles\adriane\python\plugins\Mergin\mergin\deps\pytz-2022.1-py2.py3-none-any.whl
C:\Users\adrianearaujo\AppData\Roaming\QGIS\QGIS3\profiles\adriane\python\plugins\Mergin\mergin\deps\six-1.17.0-py2.py3-none-any.whl
C:\Users\adrianearaujo\AppData\Roaming\QGIS\QGIS3\profiles\adriane\python\plugins\Mergin\mergin\deps\truststore-0.10.4-py3-none-any.whl
C:\Users\adrianearaujo\AppData\Roaming\QGIS\QGIS3\profiles\adriane\python\plugins\Mergin\mergin\deps\__init__.py
C:\Users\adrianearaujo\AppData\Roaming\QGIS\QGIS3\profiles\adriane\python\plugins\Mergin\mergin\deps\__pycache__
E:/MerginMaps/Macae_Malvinas_010/macae_os2624010_fisico_tab10```
- 主要言語
- Python
- スター
- 45
- フォーク
- 21
- 平均マージ
- 3日 13時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MerginMaps/qgis-plugin のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
MerginMaps/qgis-plugin#953 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MerginMaps/qgis-plugin#848 · コメント 1 件 ·
-
Project history and Remove locally fail in projects with long paths on Windows (> 260 characters)オープンbug windows
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
MerginMaps/qgis-plugin#967 ·
-
View changes and schema check use the wrong base copy for GeoPackages in subfolders対応中かも @harminius が 6 日前に担当しました。 オープンbug
MerginMaps/qgis-plugin#963 · 担当者 1 名 ·
-
@mm_project_version is not updated対応中かも @harminius が 21 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
MerginMaps/qgis-plugin#947 · 担当者 1 名 ·
MerginMaps/qgis-plugin の issue をすべて見る
似ている issue
-
bug(mcp): handle malformed and partial reranker responses safely対応中かも @KamilEjaz890 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kubeflow/docs-agent#301 ·
メンテナーはふだん 4 日以内に返信
-
Update the demo docsオープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
pulp/pulp_workflow#78 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
pgadmin-org/pgadmin4#10797 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
gcivil-nyu-org/team5-mon-fall26#132 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
gcivil-nyu-org/team4-mon-fall26#291 ·
メンテナーはふだん 1 日以内に返信