Author Topic: CB 1.0+ on Linux crashes when exploding polylines  (Read 21878 times)

Offline Earl Jay

  • Ewok
  • *
  • Posts: 14
    • View Profile
CB 1.0+ on Linux crashes when exploding polylines
« on: December 29, 2024, 09:55:25 am »
CB 1.0+ on Linux crashes when exploding polylines.

This happens often, but not always. Yet another worrying bug. The moment I click on explode, the polyline gets separated into the small segments (I can see in the tree view) but the linux window manager freezes. Have to change to a non graphical console, kill the "mono" task to revive the graphical user interface.
Then restart cambam, try again and da capo...

Offline Earl Jay

  • Ewok
  • *
  • Posts: 14
    • View Profile
Re: CB 1.0+ on Linux crashes when exploding polylines
« Reply #1 on: December 29, 2024, 10:09:23 am »
Btw, this crash also seems to happen frequently when Cambam has to deal with many line segments selected at the same time.
In my file that crashed (see above), exploding worked the second time, but then after I selected half of the resulting line segments and moving them around using the transformation matrix, it suddently crashed again (no response from UI) and I had to kill the process from the text console.
I suppose this is somehow connected to some memory problems, since I deal with fairly huge files (3d operations and complex models).

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: CB 1.0+ on Linux crashes when exploding polylines
« Reply #2 on: December 29, 2024, 23:15:44 pm »
Hello

Quote
I suppose this is somehow connected to some memory problems, since I deal with fairly huge files (3d operations and complex models).

Maybe ..

What CamBam version are you using ?  32 or 64 bits ... the 64 bits should be better for big files. (it is the case on Windows, but not sure Linux has the same behavior)

++
David

Offline Earl Jay

  • Ewok
  • *
  • Posts: 14
    • View Profile
Re: CB 1.0+ on Linux crashes when exploding polylines
« Reply #3 on: December 30, 2024, 10:19:30 am »
I think this is written nowhere, you can just download one sort of Cambam for Linux afaik.
About sais "Cambam plus [1.0] rc-3 Linux".

Jens

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5319
  • Made in England
    • View Profile
Re: CB 1.0+ on Linux crashes when exploding polylines
« Reply #4 on: December 30, 2024, 18:30:41 pm »
On this page, https://cambamcnc.com/ref/ref.linux#devt

there are both 32bit and 64bit versions available.

Over many years I've found that most problems in CamBam are caused by poor quality underlying drawings.
« Last Edit: December 30, 2024, 18:34:07 pm by EddyCurrent »
Filmed in Supermarionation

Offline Earl Jay

  • Ewok
  • *
  • Posts: 14
    • View Profile
Re: CB 1.0+ on Linux crashes when exploding polylines
« Reply #5 on: December 30, 2024, 20:06:17 pm »
Yes I found the file I installed years ago, it is the 64 bit Version.

The "poor drawings" are actually polylines generated by CamBam itself using the Edge detect function.

Jens

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: CB 1.0+ on Linux crashes when exploding polylines
« Reply #6 on: December 30, 2024, 21:44:26 pm »
Re

How many segment has the polyline that you exploded ? (you can see that in the polyline properties, pic0)

I tried on Windows version (32 bits) with a polyline that contain 428150 segments ; it takes 5min to explode ! (i7 4Ghz) no crash but the display at the left side show only the first 34938 segments even with the slider at the bottom (pic1).

Selecting the 34938 first segments in the list ... and no response from CamBam after 1h00 .... I killed the process.

I also tried on Linux (Core 2 duo T7500 2.2Ghz - Ubuntu 14.04 CB V1.0 RC3 - 32 bits) after 1 hour, no crash but still working on explode ....

Some month ago I also have similar problem with a big job, a 3D model about ~ 700000 triangles or more (the scan of a head) that I sliced, the slice works but when I tried to move the resulting polyline, it crashed.

I think CamBam is definitely not designed to works with so big files !!

++
David
« Last Edit: December 30, 2024, 21:47:23 pm by dh42 »

Offline Earl Jay

  • Ewok
  • *
  • Posts: 14
    • View Profile
Re: CB 1.0+ on Linux crashes when exploding polylines
« Reply #7 on: January 01, 2025, 08:32:33 am »
The number of segments is not that high. In this case only 6325.
If the bug doesn't occur, the calculation is finished in 3 or 4 seconds. If it occurs, it crashes the whole window manager so that you can wait forever.