Page 1 of 1

[Solved] 'Invalid position' error when drawing

Posted: Mon Dec 27, 2021 10:29 pm
by lphilpot
Version: 3.27.0.0 (3.27.0) Pro
Internet: QCAD.org
Build Date: Nov 30 2021
Revision: 62c65de
Qt Version: 5.8.0
Architecture: x86_64
Compiler: gcc 4.8.1

Xubuntu Linux 18.04 LTS

When I try to draw an entity and click the mouse over a non-snappable point, I often get this error:

Image

If I click on a snapped point, it works, but when not over one I can't see the entity being drawn (line, dim, etc.) nor the coordinates I have enabled at the mouse pointer. When it moves over a snap point it shows up, when it moves off it disappears. If I turn snap off, the issue disappears but of course so does snap. :wink:

I noticed it a couple of times last week with other drawings, but restarting QCAD seemed to fix it. This time I even rebooted and it's still doing it. I've attached a very simple file where I was seeing this problem. The only updates to my system have been a couple of non-related applications (no system libs, etc.).

I haven't upgraded to 3.27.1 due to a bug pointed out elsewhere on the forum, although the actual issue escapes me at the moment. If someone else can reproduce the issue I'll be glad to file a bug report. If not, it must be my installation.

Thanks and Happy New Year to everyone.

Cokin P holder rear glare shield.dwg
(21.17 KiB) Downloaded 844 times

Re: 'Invalid position' error when drawing

Posted: Mon Dec 27, 2021 11:23 pm
by Husky
Hi lphilpot, Happy New Year to you too!
lphilpot wrote:
Mon Dec 27, 2021 10:29 pm
If someone else can reproduce the issue I'll be glad to file a bug report. If not, it must be my installation.
Yes to I could reproduce the "issue" and no it isn't a bug. No, your installation is assumingly ok but you have to think about a setting ... :shock:

1. I assume you are in Auto Snap Mode,
2. I assume you're trying to snap to a snap which isn't enabled below Application Preferences / Snap / Auto Snap
3. In the case e.g. "End Points" isn't enabled and you try to snap to an End Point in your drawing it will trigger the warning "Invalid Position".

Makes that sense ...?

Re: 'Invalid position' error when drawing

Posted: Tue Dec 28, 2021 12:11 am
by lphilpot
Yes, that definitely makes sense but... :wink: All geometry snap points are enabled and always have been. The setting hasn't changed yet I just ran into this situation in the last week or less:

Image

(Although I have to admit I'm not 100% clear on what "Free positioning" means in the context of Auto Snap. It seems to be the opposite - How does one auto-snap and free-position at the same time? But that's a different topic...)

As a test I created a new drawing and so far it's not doing it (i.e., it's working correctly). I then opened the drawing I attached and it is doing it (i.e., disappearing). Next, I opened an older drawing from about a month ago that previously was OK and it's doing it there now, too. All three drawings were created from the same template file. I can switch between the three drawings and the behavior of each remains consistent. So is it related to the file(s)? I don't see any per-file snap preferences.

So the setting hasn't changed, it wasn't doing it in the past, but now is intermittently doing it even on files that were OK... If it's not a bug, what setting do I have wrong and why did it just now show up?

Thanks!

Re: 'Invalid position' error when drawing

Posted: Tue Dec 28, 2021 12:36 am
by Husky
To my knowledge the snap settings are not stored in the drawing. But the actual setting below Application Preferences has an effect on all loaded drawings - old or new. I'm wondering why you haven't enabled "Free positioning". I assume that is the culprit for your current issue.

BTW: I've always "Free positioning" enabled in my Auto Snap settings. This said - with that setting I can't reproduce the issue with your example drawing ...

Re: 'Invalid position' error when drawing

Posted: Tue Dec 28, 2021 12:55 am
by lphilpot
I selected Free Positioning and the behavior went away. To be honest I don't remember why it wasn't selected other than I was unclear on its purpose. It's interesting that I wasn't seeing anything amiss on the new drawing, but was on the other two with the same setting. Oh well. Working now - Thanks.

I'll edit the first post's title to reflect the resolution.