haubourg / EasyCustomLabeling

plugin QGIS d'étiquetage manuel simplifié
9 stars 3 forks source link

Qgis crashing when moving labels #9

Open lukaskrieger opened 8 years ago

lukaskrieger commented 8 years ago

I am using qgis 2.12.0 and EasyCustomLabeling v.1.3.3. I can successfully generate labels for multiple points and after the generation I can also move the labels without any problem.

However, there are no leads shown for the labels and I can read this warning in the console when creating the labels: Warning: Loading a style file that was saved with an older version of qgis (saved in 2.0.1-Dufour, loaded in 2.12.0-Lyon). Problems may occur.

I then continue to: Properties -> Style -> Rule based -> New rule -> And just add a Simple Line There is already one empty existing rule. I tried to delete it and left it there with the same behaviour.

After I added the rule, the leads to the previously moved labels are show. However, if I move them now or move any other label, qgis crashes.

I suspect it has to do with the old style that was loaded but I am pretty new to qgis and don't really know how to start debugging.

Thanks for looking at it

haubourg commented 8 years ago

Hi, thanks for raising it. That should be an easy fix. You can try saving qml file in place of existing label_style.qml in your plugin's directory. Will try to fix it as soon as possible. Régis

haubourg commented 8 years ago

Hi, just testing now, impossible to reproduce. The crash seems related to QGIS handling of rules not the plugin. Anyway, I don't understand why you have a ruled based style and not as simple style on your labeling layer. Are you on that layer properties, not on the source layer?

Regarding the callouts/connectors not displaying, maybe it's a projection trouble. What are you CRS for map and layers. Thanks for your feedback Cheers

lukaskrieger commented 8 years ago

Hi,

thanks for the fast reply. I still don't know what happened the last time but I reinstalled the plugin and used a simple style and now it works perfectly. Thanks for your effort.

2015-11-27 16:39 GMT+01:00 Régis Haubourg notifications@github.com:

Hi, just testing now, impossible to reproduce. The crash seems related to QGIS handling of rules not the plugin. Anyway, I don't understand why you have a ruled based style and not as simple style on your labeling layer. Are you on that layer properties, not on the source layer?

Regarding the callouts/connectors not displaying, maybe it's a projection trouble. What are you CRS for map and layers. Thanks for your feedback Cheers

— Reply to this email directly or view it on GitHub https://github.com/haubourg/EasyCustomLabeling/issues/9#issuecomment-160163007 .

haubourg commented 8 years ago

No worries, better raise a false problem than not raising :)