[Solved] 'Invalid position' error when drawing

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
User avatar
lphilpot
Senior Member
Posts: 119
Joined: Mon Oct 30, 2017 4:03 am
Location: Deep South USA

[Solved] 'Invalid position' error when drawing

Post by lphilpot » Mon Dec 27, 2021 10:29 pm

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
Last edited by lphilpot on Tue Dec 28, 2021 12:56 am, edited 1 time in total.
Len
QCAD Pro

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 5070
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: 'Invalid position' error when drawing

Post by Husky » Mon Dec 27, 2021 11:23 pm

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 ...?
Work smart, not hard: QCad Pro
QcadPro, QcadCam, Win11/64, 64GB RAM, 10-Core, SSD
If a thread is considered as "solved" pls. change the title of the 1. post to "[solved] Title..."

User avatar
lphilpot
Senior Member
Posts: 119
Joined: Mon Oct 30, 2017 4:03 am
Location: Deep South USA

Re: 'Invalid position' error when drawing

Post by lphilpot » Tue Dec 28, 2021 12:11 am

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!
Len
QCAD Pro

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 5070
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: 'Invalid position' error when drawing

Post by Husky » Tue Dec 28, 2021 12:36 am

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 ...
Work smart, not hard: QCad Pro
QcadPro, QcadCam, Win11/64, 64GB RAM, 10-Core, SSD
If a thread is considered as "solved" pls. change the title of the 1. post to "[solved] Title..."

User avatar
lphilpot
Senior Member
Posts: 119
Joined: Mon Oct 30, 2017 4:03 am
Location: Deep South USA

Re: 'Invalid position' error when drawing

Post by lphilpot » Tue Dec 28, 2021 12:55 am

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.
Len
QCAD Pro

Post Reply

Return to “QCAD Troubleshooting and Problems”