QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
    Andrew
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.16.4
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by jose amaro - 10.01.2017
Last edited by Andrew - 10.01.2017

FS#1529 - File > Save: error if dimension text size is zero

The error shown in the attached figure (print sreen) appears when you try to create a library item from the selection. Versions 3.15.5 and 3.16.4 on Windows 10 and Linux Mint; Sometimes terminates the QCad program.

Closed by  Andrew
10.01.2017 21:59
Reason for closing:  Fixed
Admin
Andrew commented on 10.01.2017 18:58

Thanks for your report. This problem is very likely connected to the file you are working with. Please attach the drawing that drawing file and indicate from what part you are trying to create a library item, thanks.

jose amaro commented on 10.01.2017 19:23

I verified that the font size for dimensions in the file and application preferences was indicating "zero", after changing to "0.15" the problem disappeared.

Admin
Andrew commented on 10.01.2017 21:55

This error occurs if a drawing is saved to file and the dimension text size is set to 0.0.

Alan Stretton commented on 11.02.2017 15:08

I have noticed with version 3.16.5 and version 3.16.4, when there is no value in the text size box then QCAD freezes (I cannot save or do anything else - the only option is to close the program). So if I am work with text size 5 and then I want to change it size 2, if I back space to remove the 5, QCAD freezes. If I type 2 after the 5 (so the text size box shows 52) then I use back space to remove the 5 eveything is ok and I can work normally and save.

This a case of no value as opposed to "zero" value in the text box - if there a "0" in box everthing is ok.

I am using Linux Mint 17 64bit

Admin
Andrew commented on 13.02.2017 07:26
I have noticed with version 3.16.5 and version 3.16.4, when there is no value in the text size box then QCAD freezes

I cannot reproduce this problem here. Could you please attach your DXF/DWG file? Thanks.

Alan Stretton commented on 13.02.2017 12:07

Hi here is the file. It seems to me that maybe the problem is associated with the whole text box.

The other possible alternate is that I should do a clean install of my Linux system. The last few times I have done on line upgrades. Just recently I have noticed problems with Libre Office and web browsers.

Admin
Andrew commented on 13.02.2017 12:21

Thanks. I cannot reproduce the problem here, also with your file.

Here are some other thoughts:
When you delete all text in a text input field where a number is expected, a tool tip is shown "Expression is empty". This tool tip is shown immediately and rendered with red text to indicate this might be a problem.

Questions:
- Does the crash also occur when you enter something invalid (e.g. "abc")? This also triggers an immediate tool tip.
- Does the crash also occur if you start QCAD with an alternative theme instead of the default one? For example:
./qcad -style plastique
or:
./qcad -style windows

Thanks.

Alan Stretton commented on 14.02.2017 20:00

Hi I use only the standard theme, never changed it.

I have feeling it may be my rusty Linux system - I will do a clean install, but I use the computer for work and I have so much extra software over and above standard distribution - I am a bit reluctant to do it. My computer is very slow to boot and for example Thunderbird take a very long time to load.

I have used QCAD for a number of hours today without using the text box - no problems at all.

Just tried it again having read your note above, and with a different file, and the text box freezes just when I open it. Then it seems to unfreeze after a few minutes and I can use it.

So it appears to be a problem with the text box but now it does not seem to be a consistent problem. Sorry may we leavwe this and come back after I have done clean instal of the Linux system.

Admin
Andrew commented on 14.02.2017 20:07
Hi I use only the standard theme, never changed it.

That's what might be the problem. The standard theme for Qt applications might be one that comes with your Linux installation and might be broken. Did you try using the style switch as suggested?

Alan Stretton commented on 15.02.2017 09:24

Tried changing theme - there is no difference. I have deleted all my old version of qcad from the opt directory and re-installed 3.5.16 - no difference

I only have the choice between default and dark themes - I don't like the dark theme are there any more themes?

After playing around a little more it seems the problem affects the large pop screens (such as the text box) It also happened when I opened the "about" text box.

The program does freeze completely - the pop boxes are very very slow to respond, if I wait 2 or 3 mins then the boxes work again. If I right click and click "close" after a few seconds I get the message "script not responding" and the choice of "wait" or "force quit" If I wait then the text box start working again. The text box can also be very slow to open. Could be my Linux system ? Sorry no time to re-install system. I have another Linux desktop with the same Mint system which done from a clean install last (it boots much quicker) I could insrall qcad on that computer and see if the problem replicates.

Admin
Andrew commented on 15.02.2017 09:30

Please note that I am NOT talking about the QCAD themes configurable in the application preferences.

I'm talking about the command line option -style. This option is only available if QCAD is started from a terminal:

./qcad -style plastique

This essentially forces Qt to use a built in (and guaranteed to be compatible) Qt theme or style. Without this option, a Qt style plugin available on your system might be loaded which can break things.

Again, that's:

./qcad -style plastique

Alan Stretton commented on 15.02.2017 09:33

Hi

It is my system. Just tried qcad on the other Linux box (same version Linux) and very thing is ok - the program is responding much quicker - I will have to do a clean system install. Sorry to have wasted your time

Alan Stretton commented on 15.02.2017 09:37

When I use

./qcad -style plastique

I get the answer

bash: ./qcad: No such file or directory

Alan Stretton commented on 15.02.2017 09:40

I get the same

bash: ./qcad: No such file or directory

on the other Linux box

Admin
Andrew commented on 15.02.2017 09:42

You'd have to switch the QCAD installation directory first.
I have to admit that this is somewhat advanced stuff, if you are not used to working in a terminal. So this might be a bit too much to deal with right now.

Anyway, if you still want to try, the commands would be something like:

cd ~/opt/qcad-3.16.5-pro-linux-x86_64
./qcad -style plastique

Alan Stretton commented on 15.02.2017 09:53

Just tried it - same problem. AS soon as I can I will do a clean Linux install

Alan Stretton commented on 15.02.2017 14:43

Hi

I took a deep breath (and did lots of backing up) and did a clean install of Linux Mint 18.1

I have not done much work with QCAD yet, but it seems the problem has gone way - it must have been my system

Again sorry to have wasted your time.

Admin
Andrew commented on 15.02.2017 14:58

No problem, glad it's sorted. And thanks for trying the -style switch. Good to know that this wasn't it.

Alan Stretton commented on 15.02.2017 18:31

Hi

I took a deep breath (and did lots of backing up) and did a clean install of Linux Mint 18.1

I have not done much work with QCAD yet, but it seems the problem has gone way - it must have been my system

Again sorry to have wasted your time.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing