Freeze when cancel segmentation

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
DA523
Posts: 166
Joined: Mon May 25, 2020 4:02 pm

Freeze when cancel segmentation

Post by DA523 »

If you cancel segmentation tool (scissors)
CC will freeze only some functions works
but it freezes
You can not close CC etc

CC 2.12 Alpha (windows 10-64 msvc 1916 qt 5.15.2)
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Freeze when cancel segmentation

Post by daniel »

I can't reproduce this issue.

Can you on your side? If yes, can you share the file and the exact procedure with us? (admin [at] cloudcompare.org)
Daniel, CloudCompare admin
DA523
Posts: 166
Joined: Mon May 25, 2020 4:02 pm

Re: Freeze when cancel segmentation

Post by DA523 »

1- Left mouse click to select area around vertices
2- Before mouse right click to close selection polygon around vertices, press ESC on keyboard to cancel
then CC will partially freezes and it is reproducible
WargodHernandez
Posts: 187
Joined: Tue Mar 05, 2019 3:59 pm

Re: Freeze when cancel segmentation

Post by WargodHernandez »

I've tested with both clouds and meshes and am not able to reproduce, does this always happen with a specific cloud or mesh? If so can you share so we can track down the issue?
DA523
Posts: 166
Joined: Mon May 25, 2020 4:02 pm

Re: Freeze when cancel segmentation

Post by DA523 »

It happened with all clouds at least in my PC
an example cloud is attached
please remember to cancel with keyboard ESC before mouse right click
Attachments
stock.zip
(569.66 KiB) Downloaded 550 times
WargodHernandez
Posts: 187
Joined: Tue Mar 05, 2019 3:59 pm

Re: Freeze when cancel segmentation

Post by WargodHernandez »

Ah I was able to reproduce, first test I thought you meant to right click before esc.

I'll look into it.
WargodHernandez
Posts: 187
Joined: Tue Mar 05, 2019 3:59 pm

Re: Freeze when cancel segmentation

Post by WargodHernandez »

I'll submit a fix today, just need to add closePolyLine(); to the escape key

Code: Select all

case Qt::Key_Escape:
		closePolyLine();
		cancelButton->click();
		return;
This fixed the issue as far as I can tell.

or just directly release the mouse inside the reset function

Code: Select all

void ccGraphicalSegmentationTool::reset()
{
	if (m_somethingHasChanged)
	{
		for (QSet<ccHObject*>::const_iterator p = m_toSegment.constBegin(); p != m_toSegment.constEnd(); ++p)
		{
			ccHObjectCaster::ToGenericPointCloud(*p)->resetVisibilityArray();
		}

		if (m_associatedWin)
		{
			m_associatedWin->redraw(false);
			m_associatedWin->releaseMouse();
		}
		m_somethingHasChanged = false;
	}

	razButton->setEnabled(false);
	validButton->setEnabled(false);
	validAndDeleteButton->setEnabled(false);
	loadSaveToolButton->setDefaultAction(actionUseExistingPolyline);
}
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Freeze when cancel segmentation

Post by daniel »

And I've just updated the latest Windows 2.12.alpha version online!
Daniel, CloudCompare admin
Post Reply