Paper size error?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Paper size error?

kc8oye
i noticed tonight the scaling features seemed to be behaving differently than they did the last time i had this file open, and i noticed the following error ...

[code]Warning:: Paper size less than 10mm. Paper is too small for fitting to page
Please set paper size by Menu: Edit->Current Drawing Preferences->Paper
RS_ActionPrintPreview::fit(): Invalid paper size[/code]

paper size is set to 'letter'  and 'land scape'
it seems to print ok.. but i'm not sure why this error is popping up?

[code]
Version: 2.1.3
Compiler: GNU GCC 9.3.0
Compiled on: Mar 23 2020
Qt Version: 5.12.8
Boost Version: 1.71.0
System: Linux Mint 20.3
[/code]

i've attached the .DXF just in case.
canned_goods_cabinet_doors.dxf
Reply | Threaded
Open this post in threaded view
|

Re: Paper size error?

SIFPD_Admin
I am having this exact error as well.

LibreCAD version: 2.2.1.2
Windows 11 Pro
10.0.26100 Build 26100

As you can see in the image below, my paper size is set correctly to 'Letter', and on the right hand side you can see the error message. Why is it showing up?



Reply | Threaded
Open this post in threaded view
|

Re: Paper size error?

dxli
Sounds like a bug to me.

I will do a troubleshooting

SIFPD_Admin wrote
I am having this exact error as well.

LibreCAD version: 2.2.1.2
Windows 11 Pro
10.0.26100 Build 26100

As you can see in the image below, my paper size is set correctly to 'Letter', and on the right hand side you can see the error message. Why is it showing up?

Reply | Threaded
Open this post in threaded view
|

Re: Paper size error?

SIFPD_Admin
Great!

Please let me know if you wish me to send you the source .dxf file or if I can help in any other way.
Reply | Threaded
Open this post in threaded view
|

Re: Paper size error?

dxli
It's probably due to issues from the local printer driver.

It still helps, if you can upload a minimum dxf here.

SIFPD_Admin wrote
Great!

Please let me know if you wish me to send you the source .dxf file or if I can help in any other way.
Reply | Threaded
Open this post in threaded view
|

Re: Paper size error?

dxli
In reply to this post by SIFPD_Admin
It turned out to be a trivial typo in code, and for some reason, it has been bad for a while without being escalated, as the only bad consequence of the bug is raising spurious warnings.

The short story, the error message is meant to warn against printing sizes smaller than 10 mm x 10 mm, but instead of converting the size from the current unit to mm, it converts from mm to the current unit, so anyone using inches will always see the error message, disregard the valid paper size  used.

The issue is fixed in both 2.2.1 branch and master.


SIFPD_Admin wrote
Great!

Please let me know if you wish me to send you the source .dxf file or if I can help in any other way.
Reply | Threaded
Open this post in threaded view
|

Re: Paper size error?

SIFPD_Admin
dxli wrote
It turned out to be a trivial typo in code, and for some reason, it has been bad for a while without being escalated, as the only bad consequence of the bug is raising spurious warnings.

The short story, the error message is meant to warn against printing sizes smaller than 10 mm x 10 mm, but instead of converting the size from the current unit to mm, it converts from mm to the current unit, so anyone using inches will always see the error message, disregard the valid paper size  used.

The issue is fixed in both 2.2.1 branch and master.
Thank you for fixing this! Sorry that I was not able to respond before now to send you a file, but it looks like you found the bug and squashed it without needing the file.

Well done, and thanks again.