Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QFieldYNC: 4.12 in Linux (Ubuntu 22.04.5 LTS) can #5865

Closed
Hikuritamete opened this issue Dec 3, 2024 · 14 comments
Closed

QFieldYNC: 4.12 in Linux (Ubuntu 22.04.5 LTS) can #5865

Hikuritamete opened this issue Dec 3, 2024 · 14 comments
Labels
QFieldSync It's QFieldSync - close this issue or keep if depending on the QFieldSync issue

Comments

@Hikuritamete
Copy link

Hikuritamete commented Dec 3, 2024

Describe the issue

This maybe take me some time to explain. Sorry for my english.
I use Linux (Ubuntu 22.04.5 LTS) with QGis 3.40, and QField Sync 4.12.
I have a project where desactive the option sort loop from the Widget Value Relation in the Atribute Form. But even that i cant create a workable QField Cloud project.
I have 2 situations, First. When a achievement that the Cloud works, QField Crash when i click a layer of points o others layers.
Second, QFieldSyn creates a corrupted Cloud project. The GPKG that creats is not linked to the .QGS. And shows this message:
"Layer /media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/Salvamento_Puerto_Cuyutlan.gpkg" is outside the project's home directory.This layers may cause issues.Please move the layer within "/media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/QField/Cloud"
1

When a look inside the QGIS File QGS, the Data Source is the original GPKG no the Cloud GPKG.

salvamento_puerto_cuyutlan.zip

Curiously, i can do works when my QGIS files DPKG and QGZ are in diferent paths

@nirvn nirvn added the QFieldSync It's QFieldSync - close this issue or keep if depending on the QFieldSync issue label Dec 3, 2024
@nirvn
Copy link
Member

nirvn commented Dec 3, 2024

@Hikuritamete , we'll need a better description than this :)

@Hikuritamete
Copy link
Author

@Hikuritamete , we'll need a better description than this :)

@nirvn , sorry i publish unfinish post its update now

@nirvn
Copy link
Member

nirvn commented Dec 3, 2024

@Hikuritamete

QField Crash when i click a layer of points o others layers.

This is fixed in #5864 (you can try the APK in there to confirm)

Layer /media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/Salvamento_Puerto_Cuyutlan.gpkg" is outside the project's home directory.

When you create a cloud project, all of your datasets must be within your project file folder. E.g., say your project folder is this: /home/my_cloud_project/project_file.qgz , all of your datasets must be in the /home/my_cloud_project/ folder. To fix your warning, you simply need to move your Salvamento_Puerto_Cuyutlan.gpkg file (and any other gpkg with the same warning) into your local cloud project folder.

@Hikuritamete
Copy link
Author

Hikuritamete commented Dec 3, 2024

@Hikuritamete

QField Crash when i click a layer of points o others layers.

This is fixed in #5864 (you can try the APK in there to confirm)

Layer /media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/Salvamento_Puerto_Cuyutlan.gpkg" is outside the project's home directory.

When you create a cloud project, all of your datasets must be within your project file folder. E.g., say your project folder is this: /home/my_cloud_project/project_file.qgz , all of your datasets must be in the /home/my_cloud_project/ folder. To fix your warning, you simply need to move your Salvamento_Puerto_Cuyutlan.gpkg file (and any other gpkg with the same warning) into your local cloud project folder.

@nirvn , al my dataset, are in: "/media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/".
Are 2 files, a GPKG and a QGZ that works with QGIS. But when a create a QField Cloud project use the path "/media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/QField/Cloud/salvamento_puerto_cuyutlan/". To put the files generated by QFieldSync. And show me the last error message.
When a put the QGZ in other path like: "/media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento1/" and the GPKG stay in 2/media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/" the Cloud proyect works fine without the mentioned Error.

@nirvn
Copy link
Member

nirvn commented Dec 3, 2024

If your cloud project file (i.e. .qgz or .qgs) is in /media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/QField/Cloud/salvamento_puerto_cuyutlan/ then your GPKGs must be in that folder too, not in a parent folder (which is what you are indicating in your text above). Move your GPKGs into /media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/QField/Cloud/salvamento_puerto_cuyutlan/ and make sure your cloud project use these GPKGs.

@Hikuritamete
Copy link
Author

If your cloud project file (i.e. .qgz or .qgs) is in /media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/QField/Cloud/salvamento_puerto_cuyutlan/ then your GPKGs must be in that folder too, not in a parent folder (which is what you are indicating in your text above). Move your GPKGs into /media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/QField/Cloud/salvamento_puerto_cuyutlan/ and make sure your cloud project use these GPKGs.

But i use the option "Convert currently project to Cloud Project" and this create bot files the GPKG an the QGS in /media/Archivos/Archivo/Trabajo/Proyectos/2024/Puerto_Cuyutlan/SIG/QGIS/Salvamento/QField/Cloud/salvamento_puerto_cuyutlan/.
Even so there are a GPKG created by QField i need no copy the Parent GPKG?

@nirvn
Copy link
Member

nirvn commented Dec 3, 2024

@Hikuritamete , ah, if you are converting a project into a cloud project, then yes this should all be taken care of. You can check that the resulting cloud project relies on layers copied into the cloud project folder. If for some reason that isn't happening, let us know with maybe a sample project + steps to reproduce when using the 'convert project to cloud project'.

@Hikuritamete
Copy link
Author

Sample Dataset:
Salvamento.zip

I use QField withe the option "Convert currently project to Cloud Project", but this shows a error:
1

Project generated by QFile Sync:
salvamento_puerto_cuyutlan.zip

@nirvn
Copy link
Member

nirvn commented Dec 3, 2024

@Hikuritamete , I'm able to convert this project properly over here, using QFieldSync 4.12. When you convert your project, are there error messages being pushed into QGIS' message logs panel? You can see them by clicking here:

image

@Hikuritamete
Copy link
Author

@nirvn This show:

2024-12-02T21:17:09 INFO Layer "Administracion-Arqueologos" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Administracion-Trabajadores" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Area_de_Estudio" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Excavacion-Atributos" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Excavacion-Bolsas_de_Materiales" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Excavacion-Estratigrafia" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Excavacion-Muestras" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Excavacion-Puntos-Inmueble" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Excavacion-Unidades" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Geografico-Curvas_de_Nivel" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Geografico-INEGI_Cartas" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Perimetro" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Prospeccion-Atributos" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Prospeccion-Bolsas_de_Materiales" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Prospeccion-Lineas_Inmueble" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Prospeccion-Poligonos" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Prospeccion-Puntos_Inmueble" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Prospeccion-Puntos_Mueble" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Prospeccion-Tracks" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Recintos_Portuarios" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Reticula_1Ha" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Sitios_con_Registro" will use attribute "fid" as a primary key.
2024-12-02T21:17:09 INFO Layer "Sitios_sin_Registro" will use attribute "fid" as a primary key.

@nirvn
Copy link
Member

nirvn commented Dec 3, 2024

@Hikuritamete , I'm at lost as to what's happening here, I have roughly the same system as you and I can make a cloud project out of converting Salvamento.zip.

I hope it won't bother you too much to do the conversion manually :)

@Hikuritamete
Copy link
Author

Hikuritamete commented Dec 3, 2024

When i use the option "Create a new empty QFieldCloud Project" works great with the QField 5864 dont crash anymore. let me do more tests.
After more tests everything looks goog. Only one thing whem i create a new feature in a layer with the option Value Relation active there is no more in QField a text field for search an atribute, only a list and so before i have 2 columns and despite in QGiS are indicate 2 colums in Qfield are only one

@nirvn
Copy link
Member

nirvn commented Dec 3, 2024

@Hikuritamete , good to know the crash is gone, thanks for the confirmation. A new version of QField on the play store with this crash fixed should emerge within the next 24 hours.

QField's value relation editor widget doesn't yet support multi-column layout.

I'm inclined to close this issue now as some of the problems here have been fixed, and enhancement request should be filed separately. Is that OK with you?

@Hikuritamete
Copy link
Author

@nirvn its ok

@nirvn nirvn closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QFieldSync It's QFieldSync - close this issue or keep if depending on the QFieldSync issue
Projects
None yet
Development

No branches or pull requests

2 participants