# QCAD Bug Report - File Displays Blank but Contains Entities

**URL:** <http://forum.qcad.org/t/qcad-bug-report-file-displays-blank-but-contains-entities/11539>\
**Category:** QCAD Professional\
**Created:** [March 18, 2026, 2:42pm UTC](http://forum.qcad.org/t/qcad-bug-report-file-displays-blank-but-contains-entities/11539 "2026-03-18T14:42:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunlionjun](http://forum.qcad.org/letter_avatar_proxy/v4/letter/s/3ec8ea/32.png) [@sunlionjun](http://forum.qcad.org/u/sunlionjun)\
**Post date:** [March 18, 2026, 2:42pm UTC](http://forum.qcad.org/t/qcad-bug-report-file-displays-blank-but-contains-entities/11539/1 "2026-03-18T14:42:52Z")

</div>

## **Issue Description**

**Problem** : CAD file appears completely blank when opened in QCAD Professional, but displays correctly in AutoCAD and other CAD software.

**Additional Details** : When using QCAD scripts to calculate the Bounding Box (bbox), entities are detected, but all Bounding Box values are 0.

* * *

## **Environment**

- **Software** : QCAD Professional

- **Versions Affected** : 3.32.6, 3.32.3

- **Operating System** : Windows, Linux

- **File Format** : DWG R18 [2004] DWG Drawing [OpenDesign] (\*.dwg)

* * *

## **Steps to Reproduce**

1. Open the attached CAD file in QCAD Professional 3.32.6 or 3.32.3

2. Observe that the viewport shows a completely blank drawing

3. Run a script to iterate through entities and calculate bbox

4. Notice that entities are found, but all bbox values return 0

* * *

## **Expected Behavior**

The drawing should display all entities normally, as it does in AutoCAD.

* * *

## **Actual Behavior**

- Viewport is completely blank

- Entity count \> 0 (entities exist in the file)

- All Bounding Box coordinates are 0 (x1=0, y1=0, x2=0, y2=0)

* * *

## **Additional Information**

- File opens correctly in AutoCAD 2004 (R18)

- File opens correctly in other CAD software

- Issue appears to be specific to QCAD

- Issue occurs on both Windows and Linux platforms

* * *

## **Attachments**

the problematic CAD file:

[https://smbg-test.oss-cn-hangzhou.aliyuncs.com/uat/document/dwg/survey/20260318/1037F7D800E240049E095E1C216E1EDB.dwg](https://smbg-test.oss-cn-hangzhou.aliyuncs.com/uat/document/dwg/survey/20260318/1037F7D800E240049E095E1C216E1EDB.dwg)

---

<div class="post-metadata">

**Author:** ![andrew](http://forum.qcad.org/user_avatar/forum.qcad.org/andrew/32/15013_2.png) [@andrew](http://forum.qcad.org/u/andrew)\
**Post date:** [March 18, 2026, 2:44pm UTC](http://forum.qcad.org/t/qcad-bug-report-file-displays-blank-but-contains-entities/11539/2 "2026-03-18T14:44:57Z")

</div>

The coordinates of this file are at extreme positions:  
e.g. 3’440’898’356’069/-15’219’136’996’555

I can confirm that this is not currently supported by QCAD.

---

<div class="post-metadata">

**Author:** ![sunlionjun](http://forum.qcad.org/letter_avatar_proxy/v4/letter/s/3ec8ea/32.png) [@sunlionjun](http://forum.qcad.org/u/sunlionjun)\
**Post date:** [March 20, 2026, 2:56am UTC](http://forum.qcad.org/t/qcad-bug-report-file-displays-blank-but-contains-entities/11539/5 "2026-03-20T02:56:14Z")

</div>

@andrew Thank you for your previous response regarding the coordinate issue.

The coordinates in the file are at extreme positions:  
e.g., 3’440’898’356’069 / -15’219’136’996’555

You confirmed that this is currently not supported by QCAD.

I would like to ask:

1. **Is there any plan to fix this issue in a future version of QCAD?** If so, when can we expect this to be addressed?

2. **Are there any workarounds or compatibility methods available currently** that would allow us to work with files opening blank?

We have an urgent need to process DWG/DXF files with these large coordinate values. Any information or suggestions you can provide would be greatly appreciated.

Thank you for your time and assistance.

Best regards

---

<div class="post-metadata">

**Author:** ![CVH](http://forum.qcad.org/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@CVH](http://forum.qcad.org/u/CVH)\
**Post date:** [March 20, 2026, 7:11am UTC](http://forum.qcad.org/t/qcad-bug-report-file-displays-blank-but-contains-entities/11539/6 "2026-03-20T07:11:08Z")

</div>

Hi,

The extreme values are probably the issue. QCAD does not support a UCS at the moment.  
In double float such values have hardly some digits left for some accuracy.  
Concerning QCAD, sane numbers are between -1e12 and 1e12.  
Even using an UCS and near the drawing origin of that, there won’t be an accuracy gain.

I had some luck with converting the drawing unit of your file.  
Block “awrser” left lower corner is then at (3440898.33,-15219137.03) in km.

Note that 3 million kilometers is roughly 8 times the distance from the Earth to the Moon … There are no (round) buildings out there. 😉

Regards,  
CVH  
(Using QCAD Forum Dumbcourse)

---

<div class="post-metadata">

**Author:** ![andrew](http://forum.qcad.org/user_avatar/forum.qcad.org/andrew/32/15013_2.png) [@andrew](http://forum.qcad.org/u/andrew)\
**Post date:** [March 20, 2026, 2:28pm UTC](http://forum.qcad.org/t/qcad-bug-report-file-displays-blank-but-contains-entities/11539/7 "2026-03-20T14:28:45Z")

</div>

@sunlionjun I can confirm that this now loads and renders fine in the current development environment.  
Note that there were also issues with Chinese text being legacy Maker Interchange Format encoded (\M+5…).

 ![Screenshot 2026-03-20 at 15.26.33](https://cdn.qcad.org/original/2X/d/d1ddef7a9b7e9193b97e0f55e7fbb8fd06f34519.png)

---

<div class="post-metadata">

**Author:** ![CVH](http://forum.qcad.org/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@CVH](http://forum.qcad.org/u/CVH)\
**Post date:** [March 21, 2026, 10:24am UTC](http://forum.qcad.org/t/qcad-bug-report-file-displays-blank-but-contains-entities/11539/8 "2026-03-21T10:24:42Z")

</div>

You report that ‘loading’ and ‘rendering’ is fine but how does it behaves while editing?  
Note that the hatching engine already fails for entity with handle 0xff, even for solid filled.  
And that many things in the drawing seem to be incomplete.

* * *

The latest commit on GitHub states:  
‘allow for larger values, smaller arc segments’.  
I don’t see the relation of larger values and with that also for shorter arcs.

* * *

The sane number limits within -1e12 to 1e12 are removed.  
RMath::isSane(value) is now reduced to an analog of RMath::isNormal(value).

* * *

Shorter (not smaller) arc segments than 1e-9 rads are endorsed not reverting to a full circular arc.  
(Based on RS::PointTolerance instead of RS::AngleTolerance but both are 1e-9.)  
The new lower limit is now 1e-16 rads when a zero-length is not allowed.

* * *

But may I express my concerns about endorsing longer (not larger) arc segments:  
Before, the maximum limit was 2Pi - RS::PointTolerance (1e-9)  
Now the ‘FIXED’ code compares with 2Pi - 1.0e-16 for reverting to a zero length arc.

* * *

* * *

IMHO, 6.283185307179586 minus 1e-16 remains 6.283185307179586  
Meaning that you can subtract 1e-16 from 2Pi several times over and still end up with 2Pi.  
2Pi - 1e-16 - 1e-16 - 1e-16 - 1e-16 - 1e-16 === 2Pi

1ULP of 2Pi is 8.881784197001252e-16  
Subtracting about half of that would have an influence on the LSB by binary rounding.  
2Pi - 5e-16 = 6.283185307179585  
Each time is questionable because rounding might alternate between up and down.

* * *

This fix is only applied in one place while checking for nearly 2Pi occurs at various places.

* * *

Please explain why we should support things in real world size (A chair, about 500 by 500mm)  
placed at X = 3440898387387.5750mm (+/-1ULP is about +/-0.0005)  
and Y = 15219137016394.785 in mm (+/-1ULP is about +/-0.002)  
I DO NOT consider such coordinate values as sane.  
The longest distance on earth is about 40075017000mm or about 1% and less.  
Note that there are no more decimal places as listed above.

* * *

On the other hand, QCAD does not support short or small arc segments in polylines and that was dismissed as request by a long time user.

* * *

This so-called ‘FIX’ doesn’t changes anything to that.  
But it breaks with well supported resources and features establisched 13 years ago.

* * *

CVH
