QCAD Bugtracker

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)

IDCategoryTask TypeSeverity  ascSummaryStatusProgress
 1086 DocumentationBug ReportLow Spline corner control responding to multiple mouse clic ...Closed
100%
Task Description

I can’t find any documentation (Reference Manual / Book) about the possibility to change the “corner” transition shape for Spline’s (Control Points) with multiple mouse clicks.
1, 2 or 3 clicks = smooth to sharp corner.

1021dwg2pdfFeature RequestLowdwg2pdf: switch to set block to exportAssigned
0%
1 Task Description

Add a command line switch to dwg2pdf to export a given block instead of “*Model_Space”.

 1221 dwg2pdfBug ReportLow dwg2pdf: Cannot create a QWidget Closed
100%
Task Description

dwg2pdf shows error under Windows systems:
Fatal: QWidget: Cannot create a QWidget when no GUI is being used

 1675 dwg2pdfBug ReportLow draw order incorrect using dwg2pdf to convert DXF to PD ...Closed
100%
Task Description

explicit drawing order of objects (such as sending hatch to back and bringing text to front) not respected when export to pdf used, the order of overlapping objects seems to use the order in which they were added to the drawing

this causes problems if we try to export a dxf to pdf and the hatching was drawn after some of the text

observed in Mac OSX El Capitan and Linux

1700dwg2pdfFeature RequestLowdwg2pdf: output multiple layoutsAssigned
0%
Task Description

Add support to specify multiple blocks (layouts) to output (one per page).

 1712 dwg2pdfBug ReportLow dwg2pdf: auto fit fails for blocks Closed
100%
Task Description

Autofit (-a) has no effect when converting a block or layout block (other than Model_Space).

 1531 dwg2svgFeature RequestLow dwg2maptiles: add support for transparent background Closed
100%
Task Description

Trying to create map tiles using dwg2maptiles with a transparent background by adding the option-
-background=’#00FFFFFF’
-background=’transparent’

The output has transparent background but the PNGs get multiplied and scrambled and are not at all as expected.

Attached: original DWG file and an example of the error prone PNG.

1542dwg2svgFeature RequestLowdwg2svg: add switch to show only given layer(s)Assigned
0%
Task Description

Implement a command line switch to only show a list of given layers for dwg2* command line tools.

976dxflibBug ReportLowDXF import errors related to hatches, textsAssigned
0%
Task Description

See:
http://www.qcad.org/rsforum/posting.php?mode=reply&f=30&t=2677

 1139 dxflibBug ReportLow dxflib: leading / trailing spaces are removed from text Closed
100%
1 Task Description

dxflib strips leading / trailing spaces from text when importing DXF files.

 1180 dxflibBug ReportLow dxflib cannot open files with international characters  ...Closed
100%
4 Task Description

With dxflib, QCAD cannot open any file with Chinese file name or path name, it popups a “Important Error” dialog.
But the writing (”Save As” command) with Chinese file name or path name is of no problem.
Does it mean dxflib can only handle single byte characters file name/path name?
WinXP, QCAD 3.8.0

1203dxflibBug ReportLowImages not saved (dxflib)Assigned
0%
Task Description

I am doing a bit of landscaping and using a (big) ortophoto as one of my layers in order to sanity-check on the ground measurements.

The layer contains a point and the image and nothing else.

The image is a 8MB file: “PNG image data, 4200 x 2980, 8-bit/color RGB, non-interlaced” and it is scaled to 210 coordinate units (meter) horizontally in the drawing.

With approx 50% probability the image disappears during Save, as see for instance in this diff of the DXF file:

      @@ -158699,28 +153057,6 @@ AcDbXrecord
        90
       6
         0
      -IMAGEDEF
      -  5
      -A1
      -100
      -AcDbRasterImageDef
      - 90
      -0
      -  1
      -/critter/HTV10/Ortofoto/ortofoto201502f.png
      - 10
      -210.0
      - 20
      -149.0
      - 11
      -1.0
      - 21
      -1.0
      -280
      -1
      -281
      -0
      -  0
       ENDSEC
         0
       EOF

The point in the same layer does not similarly disappear, the bug only seems to affect images.

I have seen this bug from version 3.7.5.0 to git as of yesterday (63e06c778926a803bdfbffdf27b8c24d41511072).

I have not been able to correlate the bug with anything.

Looking closer at the DXF file (attached), there seems to be some residuce of attempts to insert images in protected/invisible layers, so this may be some kind of refcounting issue.

(Any chance of getting FreeBSD into the “Operating System” field ?)

 1246 dxflibBug ReportLow Saving MText with linefeeds in escaped text causes corr ...Closed
100%
Task Description

Saving MText with linefeeds in escaped text causes corruption of file.

See:
http://www.qcad.org/rsforum/viewtopic.php?f=76&t=3593

 1290 dxflibBug ReportLow test code does misspell all api functions containing th ...Closed
100%
Task Description

All such functions in the api seem to be use the spelling Linetype (with lower-case t) while every function call in the test code does use LineType instead.

Report is for version 3.7.5 as it was the only version I found to download on the qcad.org webpage.
Sourceforge also didn’t seem to have any downloads and while I found a few dxflib clones on GitHub, none seemed official or up-to-date.
But maybe I’m just blind :-)

 1305 dxflibPerformance IssueLow Bottleneck in DL_Dxf::toReal caused by std::locale Closed
100%
Task Description

Loading any larger dxf file takes very long because of this line:
istr.imbue(std::locale(”C”));

The call to std::locale is very slow. File-loading can be speed up by approximately factor 5 times on my system when replacing it. I just removed that line and instead added the following in DL_Dxf::in so it is changed only once per file:

std::locale oldLocale = std::locale::global(std::locale(”C”)); // use dot in numbers
while (readDxfGroups(fp, creationInterface)) {}
std::locale::global(oldLocale);

 1321 dxflibBug ReportLow dxflib: Handles not parsed correctly Closed
100%
Task Description

I did noticed a bug in the lib: Indeed, the handle numbers that DL_Dxf is parsing are in most case incorrect.
I believe this is due to the way then handle number is parsed in DL_Dxf::processDXFGroups.
The handle is parsed by calling the function getIntValue, which itself calls the function toInt to convert the handle from std::string to int by calling the function std::strtol(handle, NULL, 10).
However, the handle numbers in a dxf file are stored as hexadecimal.
I wrote a quick and easy fix to this issue, just tell me if you are interested!

 1485 dxflibBug ReportLow dxflib: Lines are on the wrong layer when processing dx ...Closed
100%
Task Description

I create a drawing using QCAD which is stored using dxflib. For some reasons dxflib must be used. This drawing contains arcs and lines on a separate layer. If the dxf file is processed by an other tool only the arcs are referenced to the specific layer. The lines are referenced to the standard layer 0. It doesn’t matter if I’m using the community edition or the pro edition.

After a some investigations I found that the created dxf file is not correct. I manually corrected the dxf file and it works as it should.

For details please refer to the appended files. Take a look to the ENTITY section and the LINE entities, e.g. line 2370. It is just to swap two entities.

Thanks for support.

1506dxflibFeature RequestLowwriteVPort parametersAssigned
0%
Task Description

Add parameters to the function DL_Dxf::writeVPort.
This way users will be able to specify the desired viewport.

Is the github the official repository? Are pull requests sent there accepted?

 1595 dxflibBug ReportLow LWPOLYLINE exports Z values for vertices Closed
100%
Task Description

See also:
https://www.qcad.org/rsforum/viewtopic.php?f=22&t=4925

https://www.autodesk.com/techpubs/autocad/acad2000/dxf/lwpolyline_dxf_06.htm

 1631 dxflibBug ReportLow dxflib: wrong definition of DL_POLYLINE3D flag Closed
100%
Task Description

DL_POLYLINE3D should be 0×8.

 1732 dxflibBug ReportLow Saving dimension with custom text position Closed
100%
Task Description

Custom text position must be written as type flag (code 70, flag 128) as well as in style overrides as codes

1070
279
1070
2
 17 ECMAScriptBug ReportLow RLineEntityPointer doesn't work as function argument of ...Closed
100%
Task Description

Script code (SvgExporter.js):

245 // only export entities on main block "*Model_Space":
246 if (realEntity.getBlockId() == this.doc.getBlockId("*Model_Space")) {
247   RFileExporterAdapter.prototype.exportEntity.call(this, entity, false);
248 }

Script debugger exception:

Uncaught exception at /home/martin/workspace/rsframework/scripts/File/SvgExport/SvgExporter.js:246:
Error: :-1:-1: RExporter: Argument 0 is not of type REntity*.
<native>(RLineEntityPointer(0xb6fb158), false) at -1
<anonymous>(entity = RLineEntityPointer(0xb6fb158), preview = false) at
/home/martin/workspace/rsframework/scripts/File/SvgExport/SvgExporter.js:246
<anonymous>() at /home/martin/workspace/rsframework/scripts/File/SvgExport/SvgExporter.js:211

Workaround: Used exportEntity() with ID as argument instead. However there may be other cases where no alternative method is available.

RFileExporterAdapter.prototype.exportEntity.call(this, realEntity.getId());
 35 ECMAScriptTaskLow Verify ECMAScript code Closed
100%
Task Description

Verify ECMAScript code with:
http://www.javascriptlint.com/download.htm

 82 ECMAScriptTaskLow rename some ECMAScript classes Closed
100%
Task Description

New → FileNew
Close → FileClose
...

 103 ECMAScriptFeature RequestLow Runtime reload script Closed
100%
Task Description

As of TP1, a script once loaded into the runtime, does reflect changes to the file it was loaded from only after a restart of the whole of QCAD. This adds a considerable time overhead to developing scripts. Therefore I want to suggest a reload mechanism, that works kind of like the one known from a web browser.

As there is no clear separation between users custom scripts and ribbonsoft supplied scripts, checking the modification time for every access to any script might prove a performance hit.

Possibly a user script can be written, to invalidate another certain script and have the runtime reload it from file? I could add that to my menu.

Or as some magic, that can be written to “MyAction.init()”?

 149 ECMAScriptBug ReportLow SIGABRT when trying to use entiy.setColor() Closed
100%
Task Description

Script context:
Compare.js#413:

Compare.markDifferences = function(newAndMissingIds) {
...
            entity = Compare.doc1.queryEntity(id);
            entity.setColor(new RColor("green"));
            op = new RModifyObjectOperation(entity.data());
            Compare.di1.applyOperation(op);

ECMA code:

         QScriptValue
        REcmaSharedPointerEntity::setColor
        (QScriptContext* context, QScriptEngine* engine) 
        {
            QScriptValue result = engine->undefinedValue();
                    // public function: can be called from ECMA wrapper of ECMA shell:
                    REntity* self = 
                        getSelf("setColor", context);
=>               Q_ASSERT(self!=NULL);

Stacktrace:

Thread [1] 18673 (Suspended : Signal : SIGABRT:Aborted)	
	__kernel_vsyscall() at 0xffffe424	
	raise() at 0xb4efc8df	
	abort() at 0xb4efe220	
	RMainWindow::messageHandler() at RMainWindow.cpp:63 0x8f3917a	
	qt_message_output() at 0xb5356f65	
	0xb53571ab	
	qFatal() at 0xb53572c9	
	qt_assert() at 0xb5357355	
	REcmaSharedPointerEntity::setColor() at REcmaSharedPointerEntity.cpp:1,360 0x8bc0602	
	0xb6bd813c	
	0xb6ac1f68	
	0xb6a9164c	
	0xa622afd2	
	0xb6a423e3	
	0xb6af06e0	
	0xb6ac201e	
	0xb6be0cd3	
	0xb6be11a9	
	QMetaObject::metacall() at 0xb5478c83	
	QMetaObject::activate() at 0xb5489134	
	<...more frames...>	
 305 ECMAScriptFeature RequestLow executing script at terminal command prompt Closed
100%
Task Description

Hello. My question is: can I run my script under Linux QCAD using Linux command prompt.
Something like this. Print in terminal: “./qcad myscript.qs” And can the script executing without QCAD GUI? I need to make my drawing by printing specific command in linux command prompt without using GUI. So after script end his work I want to have my drawing at destination directory.

Thank you.

 323 ECMAScriptFeature RequestLow Exceptions in headless scripts Closed
100%
Task Description

The capability of running headless, ie. without GUI, is a very welcome addition to QCAD. I suggest one more improvement:

When an exception occurs in a script (running from autostart) and no-gui was opted for on the command line, QCAD should not try to bring up the debugger ever (regardless of any preferences), but print the message of the exception and possibly a backtrace instead.

Otherwise all errors will produce the same messageā€¦

 324 ECMAScriptFeature RequestLow SVG export depends on GUI Closed
100%
Task Description

SvgExporter.js uses PrintPreview to parse the scale string, and therefore depends on the qt GUI part. That should not make maintenance harder to call RMath directly there? Results seem to match from a first look.

--- SvgExporter.js~	2011-10-20 14:11:45.527589416 +0200
+++ SvgExporter.js	2011-10-20 14:12:46.277502814 +0200
@@ -1,6 +1,5 @@
 include("scripts/library.js");
 include("scripts/date.js");
-include("scripts/File/PrintPreview/Print.js");
 
 /**
  * File exporter implementation for the SVG format.
@@ -116,7 +115,7 @@
     this.svgUnitAbbr = ret[1];
 
     // scale
-    this.scale = Print.parseScale(this.scaleStr);
+    this.scale = RMath.parseScale(this.scaleStr);
 
     var bb = this.doc.getBoundingBox();
     var size = bb.getSize();
 357 ECMAScriptBug ReportLow include should raise exception if file not found Closed
100%
Task Description

include() should raise exception if file not found.

This is actually the case but does not seem to work properly.

 358 ECMAScriptFeature RequestLow lfVVCSSMBo Closed
100%
Task Description

Good point. I hadn’t thgouht about it quite that way. :)

 1178 ECMAScriptBug ReportLow scripting definition point and vertical DIMs Closed
100%
Task Description

A regression? In my script I draw stacked dims (depth d):

    var c = RVector.getAverage(a, b); // Zentrum der Messung
    var dim = new RDimRotatedData();
    dim.setExtensionPoint1(a);
    dim.setExtensionPoint2(b);
    c.x = a.x + d * 50 + ( d > 0 ? 50 : -50 );
    dim.setDefinitionPoint(c);
    dim.setRotation(Math.PI / 2);

Curiosly, this would work in 3.7.5 but fail in 3.7.7: the DefinitionPoint would be ignored then, but only in vertical ones, not in horizontal ones!

More curiously still: The DIM gets drawn right as soon as I move the setRotation call before the setDefinitionPoint call!

PS: the debugger proved very helpful again :)

 1493 ECMAScriptBug ReportLow script processing failure using -exec Closed
100%
Task Description

I have just updated from 3.11.0 to 3.15.5. Often, I load a script with the command format ..../qcad -exec ..../dims.js Note that the script filename is dims.

* Everything is satisfactory with 3.11.0 and always has been.

* qcad-3.15.5 runs satisfactorily without an -exec switch

* qcad-3.15.5 -exec same-file-as-for-3.11.0 crashes per the attached screenshot. The screenshot has been generated by adding the -enable-script-debugger switch.

* It appears that the script dims.js runs completely, and the crash happens as the script handler terminates. The qcad window is complete with the contents defined in dims.js, also qcad is usable normally. This qcad disappears when the debugger is terminated.

* This problem is totally repeatable.

 1643 ECMAScriptFeature RequestLow Modify > Explode: make drawing order predictable Closed
100%
Task Description

Usecase:
Multiple entities ( for example polylines ) get exploded...

BUG:
the exploded lines have all the same drawing ids the old entities had, a consequence of this is that when one explodes and then exports to dxf file the line order get’s scrambled wildly
the exported order is “random”!

SUGGESTED FIX:
sort the selected entities by their id first then
after copying attributes ⇒ also set the order of the elements to the default order !
( see fix in sourcecode attached )

 2 QCAD (main)Feature RequestLow PDF Export Closed
100%
Task Description

Add PDF export from print preview.

 9 QCAD (main)Bug ReportLow RSettings.setValue() doesn't work for "GraphicsViewColo ...Closed
100%
Task Description

Context: Needed to set color settings for book images.

RSettings.setValue("GraphicsViewColors/BackgroundColor", new RColor(0xff, 0xfe, 0xfd));
RSettings.setValue("GraphicsViewColors/MetaGridColor", new RColor(0xff, 0xfe, 0xfd));

QCAD3.conf:

BackgroundColor=@Variant(\0\0\0\x7f\0\0\0\aRColor\0\x1\xff\xff\0\0\0\0\0\0\0\0\0\x2)
MetaGridColor  =@Variant(\0\0\0\x7f\0\0\0\aRColor\0\x1\xff\xff\xff\xff\xfe\xfe\xfd\xfd\0\0\0\x2)

Setting the alpha channel value and the color mode for RColor doesn’t change anything.
Using view.setBackgroundColor() instead works for the background color, but not for other colors such as the meta grid color.

 11 QCAD (main)Feature RequestLow File: SVG Export Closed
100%
Task Description

Open

  • ExporterPG (preserve geometry)
    • Texts are exported as text tags, with ‘similar’ font
  • text
    • other formatting
      • exporter for presentation (based on paths): implemented
      • ExporterPG: TODO

Postponed

  • Global Preferences:
    • Number of generated segments for ellipses [postponed]
      • Problem: exported SVG files can be very large under certain circumstances
  • ExporterPG
    • Export layer information if possible / maybe group by layer [postponed]

Done

  • hatches
    • solid fill
    • pattern
  • text
    • line breaks
      • ExporterPG: Since line spacing is rendered differently in SVG, the used text space might be different, too.
    • position broken for some texts
12QCAD (main)Feature RequestLowFile Export FormatsAssigned
0%
Task Description

Open

Postponed

  • SQL
  • DGN
  • Google SketchUp
  • Canonical representation of DXF that would allow for meaningful diffs
  • XML representation of DXF

Not Planned

  • EMF/WMF (use SVG instead or use SVG to EMF converter)

Done

  • SVG
  • PDF
 18 QCAD (main)Bug ReportLow LineRectangleSize.js: options tool bar: alignment point ...Closed
100%
Task Description

Sometimes the popup widget that lets the user choose the alignment point for positioning the rectangle does not close when the user clicks the desired point.

 19 QCAD (main)Feature RequestLow Drawing recovery in case file saving fails Closed
100%
Task Description
  1. before save: copy existing file (drawing.dxf) to temporary file, e.g. “drawing.bak”
  2. save()
    • no crash → remove recovery file
    • crash → file has size of 0 byte now
      1. restore recovery files on next start
for each file in recent files
  if file size == 0
    rename temporary file to actual file name
end
21QCAD (main)Feature RequestLowAdd line weight scale factorAssigned
0%
Task Description

Required for extreme units such as Nanometers or Kilometers. See also FS#20

 22 QCAD (main)Bug ReportLow Improve grid info display for imperial units Closed
100%
Task Description

For inch, foot, .. the grid info display should for example display “1/128” instead of 0.0078125

 26 QCAD (main)ReleaseLow Release Tasks Closed
100%
Task Description

Disable

  • developer menu
  • tests scripts

Adjust Version

Application

  • “About” dialog (automatic)
  • reference manual: support/doc/manual/about.txt / about_de.txt
  • scripts/splashscreen.png
  • scripts/Tools/LibraryBrowser/splashscreen.png
  • src/core/RVersion.h
  • library browser DB file name in LibraryBrowser.js, LibraryBrowser.getDbFile()

Deployment

  • Linux Deployment (support/deployment/linux)
    • deploy.sh: change RUN_FILE, TARGZ_NAME
    • setup.sh: change SETUP_INSTALLPATH
  • Mac OS X:
    • deploy.sh: DMGNAME
    • src/run/Info.plist
    • src/run/InfoLibraryBrowser.plist
    • src/run/InfoTrial.plist
  • Windows:
    • qcad_installer.nsi
    • qcad_trial_installer.nsi

Don't forget

  • file “readme.txt”
    • adjust “Known limitations”
  • update QCAD Application Framework API
  • svn tag revision
  • add version to bug tracker

Check List

  • run automatic tests
  • designer plugins qwebkit (libqwebview.so)
  • text with CAD font
  • hatches
  • insert image
  • user interface translations
  • help (Qt Assistant client)
    • help translations
  • library browser
    • drag-n-drop insert from library browser
  • help - contents
  • help - check for updates
  • templates
  • initial launch (without ini file)
  • printing
  • PDF generation
  • SVG export
  • loading / saving files
  • Help - Show Readme (can file readme.txt be found?)
  • Qt libraries not in debug mode, QCAD binary does not link against debug Qt libraries
  • command line tools

Ports

  • Mac OS X Snow Leopard & Lion (10.6 & 10.7)
  • Mac OS X Leopard x86 (10.5)
  • Mac OS X Leopard ppc (10.5)
  • Linux 32bit
  • Windows 32bit

Plus maybe later:

  • Mac OS X Tiger (10.4)
  • Linux 64bit
  • Windows 64bit
 28 QCAD (main)Bug ReportLow Test Recorder Closed
100%
Task Description
  • copy actual drawing to required (Tab “Results” context menu)
 33 QCAD (main)Bug ReportLow Prints always to A4 Closed
100%
Task Description

Print prints always to A4, regardless of paper size chosen.

 34 QCAD (main)Bug ReportLow Printing tests Closed
100%
Task Description

Iterate through all drawings in a directory and create PDFs from them using the same mechanism as for printing.

 39 QCAD (main)Bug ReportLow print of not found (invalid) layer crashes Closed
100%
Task Description
var layer = EAction.getDocument().queryLayer("dummy");
print(layer);
Thread [1] 23305 (Suspended : Signal : SIGSEGV:Segmentation fault)	
	RLayer::getLinetypeId() at 0x898faae	
	operator<<() at RLayer.cpp:141 0x8df7ce4	
	REcmaSharedPointerLayer::toString() at REcmaSharedPointerLayer.cpp:1,885 0x8b1ab59	
	0xb6bd913c	
	0xb6ac2f68	
	0xb6ac3058	
	0xb6b09fb5	
	0xb69ed8e7	
	0xb6b083d5	
	0xb6a5a992	
	<...more frames...>	
 42 QCAD (main)Bug ReportLow Text Dialog: bold / italic main font Closed
100%
Task Description

bold / italic check box for main font has no effect

 47 QCAD (main)Bug ReportLow Print preview marks drawing as modified Closed
100%
Task Description

Print preview marks drawing as modified

 48 QCAD (main)Bug ReportLow Close drawing from print preview Closed
100%
Task Description

Fails if drawing was modified and user wishes to save drawing.

Showing tasks 101 - 150 of 1806 Page 3 of 37 - 1 - 2 - 3 - 4 - 5 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing