scantailor-advanced icon indicating copy to clipboard operation
scantailor-advanced copied to clipboard

Exception while rendering output of dewarp

Open cmahnke opened this issue 2 years ago • 6 comments

This shouldn't happen, since I now can't work wich my project anymore, since switching to Output mode triggers this

Qt Concurrent has caught an exception thrown from a worker thread.
This is not supported, exceptions thrown in worker threads must be
caught before control returns to Qt Concurrent.
libc++abi: terminating with uncaught exception of type std::invalid_argument: fillMarginsInPlace: the content area exceeds image rect.
Abort trap: 6
 

Edit: Deleting the Section below makes the Project editable again:

Open the project file, look for the file name, get it's id, look it up in the image section take the page id there and look um the page. Usually the page id is the image id + 2.

Anyways this is really annoying...

There is a reference to the issue in another forum as well, but no solution. The source for the problem is here.

cmahnke avatar Nov 25 '22 16:11 cmahnke

@cmahnke Are you on macOS?

ghost avatar Mar 20 '23 19:03 ghost

@lightsilverberryfox: Yes, version 13.2.1.

cmahnke avatar Mar 21 '23 06:03 cmahnke

Okay, I have never seen this issue, so, it could be platform specific.

ghost avatar Mar 21 '23 14:03 ghost

I've had this happen on Windows, for the record, although not since I've started using the builds from here. However, I don't ever really use dewarp, so that might be what accounts for it, rather than it being fixed. IIRC it had to do with a situation where the dewarped image was significantly wider than the original selected area. At least that's how I experienced it.

darnn avatar Mar 21 '23 15:03 darnn

I also have an exception thrown at some dewarped pages.

Qt Concurrent has caught an exception thrown from a worker thread.
This is not supported, exceptions thrown in worker threads must be
caught before control returns to Qt Concurrent.
terminate called after throwing an instance of 'std::invalid_argument'
  what():  fillMarginsInPlace: the content area exceeds image rect.

The system is Linux, Qt is 6

	libQt6Network.so.6 => /usr/lib64/libQt6Network.so.6 (0x00007f8b5503d000)
	libQt6Svg.so.6 => /usr/lib64/libQt6Svg.so.6 (0x00007f8b54fe4000)
	libQt6OpenGLWidgets.so.6 => /usr/lib64/libQt6OpenGLWidgets.so.6 (0x00007f8b54fd4000)
	libQt6Widgets.so.6 => /usr/lib64/libQt6Widgets.so.6 (0x00007f8b548bb000)
	libQt6OpenGL.so.6 => /usr/lib64/libQt6OpenGL.so.6 (0x00007f8b5481a000)
	libQt6Gui.so.6 => /usr/lib64/libQt6Gui.so.6 (0x00007f8b53f42000)
	libQt6Xml.so.6 => /usr/lib64/libQt6Xml.so.6 (0x00007f8b53eb7000)
	libQt6Core.so.6 => /usr/lib64/libQt6Core.so.6 (0x00007f8b5392a000)
	libQt6DBus.so.6 => /usr/lib64/libQt6DBus.so.6 (0x00007f8b52e25000)

ghost avatar Jul 23 '23 03:07 ghost

This happens when you use dewraping with a page that is deskewed and has part of its content box outside the page, like in this the example:

image

kugland avatar Sep 18 '23 03:09 kugland