Page 1 of 1
Nesting in presence of Tabs: crash
Posted: Thu Oct 26, 2023 1:17 pm
by newyd_cnc
Hi all,
I'm trying out the CAM-> Nesting function and found it to worked really well UNTIL I added a tabs on the shape to be nested. QCAD crashes after a period of high CPU load.
I tried with simpler shapes (for instant just a circle) and asked to nest in just 4 such instances. Even this simple test makes QCAD crash if the shapes includes a tab. If I remove the tab QCAD nests correctly without crashing.
Is this a known bug?
P.S. I'm on linux ubuntu 64 bits, QCAD 3.27.9
Thank you
Re: Nesting in presence of Tabs: crash
Posted: Thu Oct 26, 2023 2:23 pm
by andrew
I couldn't immediately reproduce this. Could you please attach your file? Thanks.
Re: Nesting in presence of Tabs: crash
Posted: Mon Oct 30, 2023 2:16 pm
by newyd_cnc
Hello Andrew,
thank you for the feedback.
Here's an example file.
Basically if I ask to perform nesting of the circular object with tabs included, QCAD would invariable hang and freeze. If I delete the tabs, nesting works without any issue.
Version:
3.28.2.0 (3.28.2)
Internet:
QCAD.org
Build Date:
Aug 30 2023
Revision:
a8039fc
Qt Version:
5.8.0
Architecture:
x86_64
Compiler:
gcc 4.8.1
Re: Nesting in presence of Tabs: crash
Posted: Mon Oct 30, 2023 2:26 pm
by CVH
Hi,
I can confirm the issue when the selected items to nest contain a TAB.
While writing this answer my browser closed twice and the harddisk is still rambling away.
The nesting attempt was preformed at least 5min. ago.
Regards,
CVH
Re: Nesting in presence of Tabs: crash
Posted: Fri Nov 03, 2023 8:19 pm
by newyd_cnc
@andrew could you let us know if this is a difficult bug to fix?
Thank you
Re: Nesting in presence of Tabs: crash
Posted: Fri Nov 03, 2023 8:35 pm
by andrew
newyd_cnc wrote: ↑Fri Nov 03, 2023 8:19 pm
@andrew could you let us know if this is a difficult bug to fix?
Thank you
I wasn't able to reproduce the problem here yet. It nests just fine. What exact Ubuntu version are you on?
Re: Nesting in presence of Tabs: crash
Posted: Sat Nov 04, 2023 7:42 am
by CVH
Andrew,
Downloaded and installed the latest trial version:
qcadcam-3.28.2-trial-win32-installer.msi
With the provided example:
test_nesting.dxf
- Selected the circle and the rightmost TAB.
Menu CAM .. Nesting
In the Options Toolbar opted for 4 copies.
The other options as default: Rotations=1; Sheet Margin=0.1; Margin=0.5; Tolerance=0.001; Alignment=Left-Bottom; Strategy=Hull
Selected the sheet (red square).
Acknowledged with a right click (Done).
QCAD crashes after a period of high CPU load, about 2 minutes.
And it seems to be a decent crash, the system is unresponsive for an extended period of time.
Other running apps are unresponsive too or fail altogether when addressed. I was unable to close or kill the QCAD process.
Forced a hard reset and rebooted Windows.
As
newyd_cnc initially reported:
Without selecting a TAB all is fine but then you need to add TAB's in a later process, after Nesting.
On the sheet will fit at least 225 such circles and then one would need to add at least 15x15x2+60 TAB's.
A simple task with a uniform item to nest but not straightforward with several irregular shapes, with arbitrary nesting positioning/rotations.
Regards,
CVH
Re: Nesting in presence of Tabs: crash
Posted: Mon Nov 06, 2023 2:32 pm
by andrew
Thanks for the details.
I've added a bug report at:
https://www.qcad.org/rsforum/viewtopic.php?p=42574
The problem should be fixed for the next release.
Re: Nesting in presence of Tabs: crash
Posted: Mon Nov 06, 2023 3:01 pm
by CVH
Thanks Andrew.
Remark that the above link and the Changelog link bring us back to this forum topic.
The link to the (fixed) bug report is:
https://qcad.org/bugtracker/index.php?d ... sk_id=2502
Regards,
CVH
Re: Nesting in presence of Tabs: crash
Posted: Fri Dec 01, 2023 10:20 am
by newyd_cnc
Is there any preliminary date for the new release including this bugfix?
Thank you
Re: Nesting in presence of Tabs: crash
Posted: Fri Dec 01, 2023 1:03 pm
by CVH
newyd_cnc wrote: ↑Fri Dec 01, 2023 10:20 am
Is there any preliminary date for the new release including this bugfix?
Yesterday Andrew has set the open source version to snapshot 3.28.2.6
https://github.com/qcad/qcad/commit/e2c ... 59148fc5bb
A new release is very likely.
Main releases require rigorous testing.
For evaluating purposes you can download the latest snapshot (> 3.28.2.5 if any) from your personal download page.
Regards,
CVH
Re: Nesting in presence of Tabs: crash
Posted: Tue Jan 16, 2024 2:38 pm
by CVH
Version 3.29 ... 3.29.1 is released.
Should be fixed
Regards,
CVH