Nesting in presence of Tabs: crash

Discussions around the CAM Add-On of QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Indicate the post processor used.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
newyd_cnc
Junior Member
Posts: 22
Joined: Thu Feb 02, 2023 6:06 pm

Nesting in presence of Tabs: crash

Post by newyd_cnc » Thu Oct 26, 2023 1:17 pm

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

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Nesting in presence of Tabs: crash

Post by andrew » Thu Oct 26, 2023 2:23 pm

I couldn't immediately reproduce this. Could you please attach your file? Thanks.

newyd_cnc
Junior Member
Posts: 22
Joined: Thu Feb 02, 2023 6:06 pm

Re: Nesting in presence of Tabs: crash

Post by newyd_cnc » Mon Oct 30, 2023 2:16 pm

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
Attachments
test_nesting.dxf
(102.5 KiB) Downloaded 270 times

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Nesting in presence of Tabs: crash

Post by CVH » Mon Oct 30, 2023 2:26 pm

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. :shock:

Regards,
CVH

newyd_cnc
Junior Member
Posts: 22
Joined: Thu Feb 02, 2023 6:06 pm

Re: Nesting in presence of Tabs: crash

Post by newyd_cnc » Fri Nov 03, 2023 8:19 pm

@andrew could you let us know if this is a difficult bug to fix?

Thank you

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Nesting in presence of Tabs: crash

Post by andrew » Fri Nov 03, 2023 8:35 pm

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?

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Nesting in presence of Tabs: crash

Post by CVH » Sat Nov 04, 2023 7:42 am

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

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Nesting in presence of Tabs: crash

Post by andrew » Mon Nov 06, 2023 2:32 pm

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.

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Nesting in presence of Tabs: crash

Post by CVH » Mon Nov 06, 2023 3:01 pm

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

newyd_cnc
Junior Member
Posts: 22
Joined: Thu Feb 02, 2023 6:06 pm

Re: Nesting in presence of Tabs: crash

Post by newyd_cnc » Fri Dec 01, 2023 10:20 am

andrew wrote:
Mon Nov 06, 2023 2:32 pm
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.
Is there any preliminary date for the new release including this bugfix?
Thank you

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Nesting in presence of Tabs: crash

Post by CVH » Fri Dec 01, 2023 1:03 pm

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

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Nesting in presence of Tabs: crash

Post by CVH » Tue Jan 16, 2024 2:38 pm

Version 3.29 ... 3.29.1 is released.
Should be fixed

Regards,
CVH

Post Reply

Return to “QCAD/CAM”