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

Label move not possible after delete of auxiliary data #46403

Closed
2 tasks
xcaeag opened this issue Dec 7, 2021 · 4 comments · Fixed by #47085
Closed
2 tasks

Label move not possible after delete of auxiliary data #46403

xcaeag opened this issue Dec 7, 2021 · 4 comments · Fixed by #47085
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore

Comments

@xcaeag
Copy link
Contributor

xcaeag commented Dec 7, 2021

What is the bug or the crash?

Some of our users, on some projects, some layers, can't move the labels. Auxiliary data (positionX, positionY) is not created.

By reducing the project to its strict minimum, we discover that the incriminated layers have already carried auxiliary data, since deleted. However, the placement of the labels still use a reference to these auxiliary fields (expression).

An attempt at positioning should theoretically re-enrich the auxiliary table with the labeling_positionx and positiony fields, but this fails for some unknown reason. These fields stay disabled in the "label properties" window.

The gif shows the phenomenon, on a newly created memory layer.
labeling

Steps to reproduce the issue

1.creation of the layer in memory (punctual, with text)
2.moving a label
3.deleting the auxiliary table
4. label move -> IMPOSSIBLE!

Versions

3.10 to 3.22.1

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@xcaeag xcaeag added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 7, 2021
@gioman gioman added Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore labels Dec 7, 2021
@gioman
Copy link
Contributor

gioman commented Dec 7, 2021

@xcaeag I can replicate on 3.22.1 but not on 3.16.14 (is a regression).

@antoniolocandro
Copy link
Contributor

if you go to label placement options a coalesce wrap is usually added that needs to be deleted in order for it to allow labels to move, this has been my experience. Have you checked this?

@gioman
Copy link
Contributor

gioman commented Dec 8, 2021

Have you checked this?

@antoniolocandro I have. The expression is removed, but still on 3.22 moving labels does not work anymore (is ok on 3.16).

@gioman
Copy link
Contributor

gioman commented Dec 8, 2021

But is related to those expressions: are removed when the aux storage is removed, recreated when picking the move label tool, but are not working. If they the expression are manually removed then the move label tool start to work again.

@nyalldawson nyalldawson self-assigned this Jan 31, 2022
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Jan 31, 2022
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Jan 31, 2022
nyalldawson added a commit that referenced this issue Jan 31, 2022
qgis-bot pushed a commit that referenced this issue Jan 31, 2022
nyalldawson added a commit that referenced this issue Feb 2, 2022
nyalldawson added a commit that referenced this issue Feb 20, 2022
nyalldawson added a commit that referenced this issue Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore
Projects
None yet
4 participants