Scan Tailor "Experimental"

Scan Tailor specific announcements, releases, workflows, tips, etc. NO FEATURE REQUESTS IN THIS FORUM, please.

Moderator: peterZ

whitepage
Posts: 16
Joined: 11 Mar 2015, 18:12
E-book readers owned: Onyx Note Pro, KDX
Number of books owned: 0
Country: New Zealand

Re: Scan Tailor "Experimental"

Post by whitepage »

EDIT After disabling Avast, the installer launched.
Yes, me.
Re-downloaded the files. Re-clicked to install. Still no action whatsoever.
The only way to kill the processes is to reboot.
The only way to install it that I found was to kill my file manager, which seemed to clash with the file.

This never happens.
Will also investigate on the file manager forum.

By the way @Tulon would you consider including the date of the release in the About box? That way we can be sure the right one is running.
Cheers!
onedegree
Posts: 1
Joined: 26 May 2015, 10:18
Number of books owned: 1000
Country: United States

Re: Scan Tailor "Experimental"

Post by onedegree »

Tulon,

First of all, thanks so much for your work on this project, and for coming back! I can't count the hours this has saved me while "scanning" (via camera) my PhD-student-wife's ever-growing collection of scholarly books. Having them all in PDF format on her tablet has been amazing!

I believe I've found a bug in the latest 64-bit version (2016-2-22), running on Windows 10. If a page is auto-split incorrectly such that one side is completely empty of content, ScanTailor will crash when attempting to move to the Select Content phase. Changing the page from a split to single page avoids the issue.

For example, the first file of my document is the cover of the book (which I always use to set my page size, with no margins, so the following interior pages can be evenly centered as necessary), which sometimes is recognized in Auto mode as a 2-page spread, with the cover on the left, and my black tabletop on the right. STEx will run through steps 1-3 without issue, but crash when moving to Select Content.

If you need an example file, or want to see it in action, I'm happy to oblige.

Thanks again!
Tulon
Posts: 687
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: Scan Tailor "Experimental"

Post by Tulon »

onedegree wrote:If a page is auto-split incorrectly such that one side is completely empty of content, ScanTailor will crash when attempting to move to the Select Content phase.
This one will take some time to fix.
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.
louiscan
Posts: 14
Joined: 10 Apr 2015, 17:35
Number of books owned: 0
Country: USA

Re: Scan Tailor "Experimental"

Post by louiscan »

Just for kicks, I thought I would try to reproduce d14b0ll0s's error running STE on Mac OS (2015 retina macbook pro). I have good news and bad news to report.

First, the good news: after a successful build (*caveat below), STE ran successfully through all steps of the process. Jpeg import was fine. I'm not sure what the problem was for d14b0ll0s. While this doesn't help him, it does bode well, I think, for STE on Mac!

Bad news, STE crashed, when I had OpenCL checked and the Intel Iris Graphics 6100 option selected, on step 3 (when page curvature dewarp option was selected) and on step 6. OpenCL with the CPU selected ran without incident.

Caveat on the build: On compiling, I initially got an error (described below). The compiler suggested using static_cast, and with my very limited skills that seemed to work, but maybe that's not a good solution. Tulon, if you have a chance, can you look at this?

Using the release of STE from 2/22, the error I got was:

Code: Select all

/Users/admin/Desktop/scantailor-ExpERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:143:31: error: non-constant-expression cannot be narrowed
      from type 'int' to 'value_type' (aka 'unsigned long') in initializer list [-Wc++11-narrowing]
        std::array<size_t, 3> region{src.width(), src.height(), 1};
                                     ^~~~~~~~~~~
/Users/admin/Desktop/scantailor-ExpERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:143:31: note: insert an explicit cast to silence this issue
        std::array<size_t, 3> region{src.width(), src.height(), 1};
                                     ^~~~~~~~~~~
                                     static_cast<value_type>( )
/Users/admin/Desktop/scantailor-ExpERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:143:44: error: non-constant-expression cannot be narrowed
      from type 'int' to 'value_type' (aka 'unsigned long') in initializer list [-Wc++11-narrowing]
        std::array<size_t, 3> region{src.width(), src.height(), 1};
                                                  ^~~~~~~~~~~~
/Users/admin/Desktop/scantailor-ExpERIMENTAL_2016_02_22/acceleration/opencl/OpenCLDewarp.cpp:143:44: note: insert an explicit cast to silence this issue
        std::array<size_t, 3> region{src.width(), src.height(), 1};
                                                  ^~~~~~~~~~~~
                                                  static_cast<value_type>( )
4 warnings and 2 errors generated.
make[2]: *** [acceleration/opencl/CMakeFiles/opencl.dir/OpenCLDewarp.cpp.o] Error 1
make[1]: *** [acceleration/opencl/CMakeFiles/opencl.dir/all] Error 2
make: *** [all] Error 2
Same problem occurs in OpenCLAfflineTransform.cpp, OpenCLSavGolFilter.cpp, and similar problem in RenderPolynomialSurface.cpp.
d14b0ll0s
Posts: 31
Joined: 17 Aug 2015, 19:37
Number of books owned: 3000
Country: Poland

Re: Scan Tailor "Experimental"

Post by d14b0ll0s »

Thanks for sharing this. No time to investigate in detail, but I've just reinstalled Xcode and Qt, and the compilation process breaks very early (~4%) with a bunch of errors. What version of OS X / Xcode / Qt / cmake are you using, louiscan?
louiscan
Posts: 14
Joined: 10 Apr 2015, 17:35
Number of books owned: 0
Country: USA

Re: Scan Tailor "Experimental"

Post by louiscan »

I'm using:

OS X 10.11.4

Xcode version 7.3

Qt 5.6.0 (installed via homebrew; for some reason, my prior install had problems)

cmake 3.4.3
d14b0ll0s
Posts: 31
Joined: 17 Aug 2015, 19:37
Number of books owned: 3000
Country: Poland

Re: Scan Tailor "Experimental"

Post by d14b0ll0s »

louiscan wrote:I'm using:

OS X 10.11.4

Xcode version 7.3

Qt 5.6.0 (installed via homebrew; for some reason, my prior install had problems)

cmake 3.4.3
Interesting, all same or close to my configuration; I installed Qt via a DMG installer from their website.
I'll try to run some tests and maybe install the homebrew version of Qt after coming back home in mid April.
Did you notice a speed difference compared to an older version of ST for mac (without multi-threading) and the experimental build in Parallels?
louiscan
Posts: 14
Joined: 10 Apr 2015, 17:35
Number of books owned: 0
Country: USA

Re: Scan Tailor "Experimental"

Post by louiscan »

Yeah, it's quite a bit faster than the previous version I was using (ST Featured), about 2x faster on the little test I ran. The OpenCL with CPU selected actually slowed it down, but only by a tiny bit, as some other people have observed.. Biggest gain is the multithreading!
Tulon
Posts: 687
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: Scan Tailor "Experimental"

Post by Tulon »

louiscan,

I seem to remember OSX logs stack traces of crashed applications by default. They should be available in some system log. Can you find and post here a stack trace of ScanTailor crashing when "Intel Iris Graphics 6100" OpenCL device is selected?

As for the build errors, these are trivial to fix. I'll do that in the next few days.
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.
louiscan
Posts: 14
Joined: 10 Apr 2015, 17:35
Number of books owned: 0
Country: USA

Re: Scan Tailor "Experimental"

Post by louiscan »

Thanks for your help!

Here's the error log from running the dewarp operation with Intel Iris 6100 OpenCl selected:
I can put the rest of the log up too, if it helps, but the forum yelled at me for putting too much text in.

Code: Select all

Process:               scantailor [811]
Path:                  /Users/USER/Desktop/*/scantailor
Identifier:            scantailor
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [806]
Responsible:           Terminal [298]
User ID:               501

Date/Time:             2016-03-30 08:16:35.487 -0400
OS Version:            Mac OS X 10.11.4 (15E65)
Report Version:        11
Anonymous UUID:        ACEF52FC-C74B-43CA-793C-AAA294980595

Sleep/Wake UUID:       2A6FC334-73D2-4736-BF6B-8895FC69C117

Time Awake Since Boot: 2900 seconds
Time Since Wake:       560 seconds

System Integrity Protection: disabled

Crashed Thread:        6  Thread (pooled)

Exception Type:        EXC_ARITHMETIC (SIGFPE)
Exception Codes:       EXC_I386_DIV (divide by zero)

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff945671c4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9456668c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation      	0x00007fff94565ed8 CFRunLoopRunSpecific + 296
5   com.apple.HIToolbox           	0x00007fff86640935 RunCurrentEventLoopInMode + 235
6   com.apple.HIToolbox           	0x00007fff8664076f ReceiveNextEventCommon + 432
7   com.apple.HIToolbox           	0x00007fff866405af _BlockUntilNextEventMatchingListInModeWithFilter + 71
8   com.apple.AppKit              	0x00007fff8ceacefa _DPSNextEvent + 1067
9   com.apple.AppKit              	0x00007fff8ceac32a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
10  com.apple.AppKit              	0x00007fff8cea0e84 -[NSApplication run] + 682
11  libqcocoa.dylib               	0x000000011273337f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2191
12  org.qt-project.QtCore         	0x000000010fefe7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
13  org.qt-project.QtCore         	0x000000010ff02a65 QCoreApplication::exec() + 341
14  scantailor                    	0x000000010eab17d6 main + 2886
15  libdyld.dylib                 	0x00007fff91a725ad start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff878a1efa kevent_qos + 10
1   libdispatch.dylib             	0x00007fff80a01165 _dispatch_mgr_invoke + 216
2   libdispatch.dylib             	0x00007fff80a00dcd _dispatch_mgr_thread + 52

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff945671c4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9456668c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation      	0x00007fff94565ed8 CFRunLoopRunSpecific + 296
5   com.apple.AppKit              	0x00007fff8d002e99 _NSEventThread + 149
6   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
7   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
8   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 5:
0   libdispatch.dylib             	0x00007fff809feaa5 _dispatch_worker_thread3 + 0
1   libsystem_pthread.dylib       	0x00007fff8c4094de _pthread_wqthread + 1129
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 6 Crashed:: Thread (pooled)
0   libopencl_plugin.so           	0x000000011b16fe58 opencl::textFilterBank(cl::CommandQueue const&, cl::Program const&, opencl::OpenCLGrid<float> const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, float, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> > const*, std::__1::vector<cl::Event, std::__1::allocator<cl::Event> >*) + 232
1   libopencl_plugin.so           	0x000000011b162153 opencl::OpenCLAcceleratedOperations::textFilterBankUnguarded(Grid<float> const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, float) const + 643
2   libopencl_plugin.so           	0x000000011b161c7a opencl::OpenCLAcceleratedOperations::textFilterBank(Grid<float> const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, std::__1::vector<VecNT<2ul, float>, std::__1::allocator<VecNT<2ul, float> > > const&, float) const + 42
3   libdewarping.dylib            	0x000000010ed763db dewarping::TextLineSegmenter::processDownscaled(imageproc::GrayImage const&, QPolygonF const&, std::__1::shared_ptr<AcceleratableOperations> const&, TaskStatus const&, DebugImages*) + 1307
4   libdewarping.dylib            	0x000000010ed75ada dewarping::TextLineSegmenter::process(imageproc::AffineTransformedImage const&, std::__1::shared_ptr<AcceleratableOperations> const&, TaskStatus const&, DebugImages*) + 1498
5   libdewarping.dylib            	0x000000010ed6d3af dewarping::TextLineTracer::trace(imageproc::AffineTransformedImage const&, dewarping::DistortionModelBuilder&, std::__1::shared_ptr<AcceleratableOperations> const&, TaskStatus const&, DebugImages*) + 79
6   scantailor                    	0x000000010eb3cdcb deskew::Task::processWarpDistortion(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, deskew::Params&) + 283
7   scantailor                    	0x000000010eb3b4c1 deskew::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, OrthogonalRotation const&) + 417
8   scantailor                    	0x000000010eb292a4 page_split::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, OrthogonalRotation const&) + 3572
9   scantailor                    	0x000000010eb07429 fix_orientation::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&) + 697
10  scantailor                    	0x000000010eb93b5f LoadFileTask::operator()() + 607
11  scantailor                    	0x000000010eb933d0 WorkerThreadPool::submitTask(IntrusivePtr<BackgroundTask> const&)::Runnable::run() + 48
12  org.qt-project.QtCore         	0x000000010fd45378 QThreadPoolThread::run() + 120
13  org.qt-project.QtCore         	0x000000010fd4857a QThreadPrivate::start(void*) + 362
14  libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
15  libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
16  libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 7:: QThread
0   libsystem_kernel.dylib        	0x00007fff878a107a __select + 10
1   org.qt-project.QtCore         	0x000000010ff56303 qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore         	0x000000010ff57215 QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) + 693
3   org.qt-project.QtCore         	0x000000010ff583b7 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 231
4   org.qt-project.QtCore         	0x000000010fefe7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
5   org.qt-project.QtCore         	0x000000010fd44afe QThread::exec() + 110
6   org.qt-project.QtCore         	0x000000010fd4857a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 8:: QThread
0   libsystem_kernel.dylib        	0x00007fff878a107a __select + 10
1   org.qt-project.QtCore         	0x000000010ff56303 qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore         	0x000000010ff57215 QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) + 693
3   org.qt-project.QtCore         	0x000000010ff583b7 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 231
4   org.qt-project.QtCore         	0x000000010fefe7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
5   org.qt-project.QtCore         	0x000000010fd44afe QThread::exec() + 110
6   org.qt-project.QtCore         	0x000000010fd4857a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 9:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 6 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000100  rbx: 0x0000000000000100  rcx: 0x00007000004a9d80  rdx: 0x0000000000000000
  rdi: 0x00007000004a9c80  rsi: 0x00007fc4e6700080  rbp: 0x00007000004a9cc0  rsp: 0x00007000004a9a60
   r8: 0x0000000000000004   r9: 0x00007fff8fea9376  r10: 0x00000000a40008ff  r11: 0xfffff03b19da9c00
  r12: 0x00007000004a9d60  r13: 0x00007000004a9d30  r14: 0x0000000000000000  r15: 0x00007fc4e657a1e0
  rip: 0x000000011b16fe58  rfl: 0x0000000000010246  cr2: 0x00007fff8fed9010
  
Logical CPU:     2
Error Code:      0x00000000
Trap Number:     0

Binary Images:

Log from running output (but no dewarp) with same settings:

Code: Select all


Process:               scantailor [895]
Path:                  /Users/USER/Desktop/*/scantailor
Identifier:            scantailor
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [890]
Responsible:           Terminal [298]
User ID:               501

Date/Time:             2016-03-30 08:27:00.996 -0400
OS Version:            Mac OS X 10.11.4 (15E65)
Report Version:        11
Anonymous UUID:        ACEF52FC-C74B-43CA-793C-AAA294980595

Sleep/Wake UUID:       2A6FC334-73D2-4736-BF6B-8895FC69C117

Time Awake Since Boot: 3600 seconds
Time Since Wake:       1100 seconds

System Integrity Protection: disabled

Crashed Thread:        11  Thread (pooled)

Exception Type:        EXC_ARITHMETIC (SIGFPE)
Exception Codes:       EXC_I386_DIV (divide by zero)

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff945671c4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9456668c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation      	0x00007fff94565ed8 CFRunLoopRunSpecific + 296
5   com.apple.HIToolbox           	0x00007fff86640935 RunCurrentEventLoopInMode + 235
6   com.apple.HIToolbox           	0x00007fff8664076f ReceiveNextEventCommon + 432
7   com.apple.HIToolbox           	0x00007fff866405af _BlockUntilNextEventMatchingListInModeWithFilter + 71
8   com.apple.AppKit              	0x00007fff8ceacefa _DPSNextEvent + 1067
9   com.apple.AppKit              	0x00007fff8ceac32a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
10  com.apple.AppKit              	0x00007fff8cea0e84 -[NSApplication run] + 682
11  libqcocoa.dylib               	0x000000010ff3337f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2191
12  org.qt-project.QtCore         	0x000000010d68a7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
13  org.qt-project.QtCore         	0x000000010d68ea65 QCoreApplication::exec() + 341
14  scantailor                    	0x000000010c2467d6 main + 2886
15  libdyld.dylib                 	0x00007fff91a725ad start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff878a1efa kevent_qos + 10
1   libdispatch.dylib             	0x00007fff80a01165 _dispatch_mgr_invoke + 216
2   libdispatch.dylib             	0x00007fff80a00dcd _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 3:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff8789af72 mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff8789a3b3 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff945671c4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9456668c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation      	0x00007fff94565ed8 CFRunLoopRunSpecific + 296
5   com.apple.AppKit              	0x00007fff8d002e99 _NSEventThread + 149
6   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
7   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
8   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 6:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 7:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x000000010d4d5d2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x000000010d4d5b6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x000000010d4d5a42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x000000010d4d153e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x000000010d4d457a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 8:: QThread
0   libsystem_kernel.dylib        	0x00007fff878a107a __select + 10
1   org.qt-project.QtCore         	0x000000010d6e2303 qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore         	0x000000010d6e3215 QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) + 693
3   org.qt-project.QtCore         	0x000000010d6e43b7 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 231
4   org.qt-project.QtCore         	0x000000010d68a7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
5   org.qt-project.QtCore         	0x000000010d4d0afe QThread::exec() + 110
6   org.qt-project.QtCore         	0x000000010d4d457a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 9:: QThread
0   libsystem_kernel.dylib        	0x00007fff878a107a __select + 10
1   org.qt-project.QtCore         	0x000000010d6e2303 qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore         	0x000000010d6e3215 QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) + 693
3   org.qt-project.QtCore         	0x000000010d6e43b7 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 231
4   org.qt-project.QtCore         	0x000000010d68a7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
5   org.qt-project.QtCore         	0x000000010d4d0afe QThread::exec() + 110
6   org.qt-project.QtCore         	0x000000010d4d457a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 10:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x000000010d4d5d2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x000000010d4d5b6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x000000010d4d5a42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x000000010d4d153e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x000000010d4d457a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 11 Crashed:: Thread (pooled)
0   libopencl_plugin.so           	0x0000000112bed8b1 opencl::renderPolynomialSurface(cl::CommandQueue const&, cl::Program const&, int, int, Eigen::Matrix<double, -1, -1, 0, -1, -1> const&) + 257
1   libopencl_plugin.so           	0x0000000112bd8c00 opencl::OpenCLAcceleratedOperations::renderPolynomialSurface(imageproc::PolynomialSurface const&, int, int) + 48
2   scantailor                    	0x000000010c331ee8 estimateBackground(imageproc::GrayImage const&, boost::optional<QPolygonF> const&, std::__1::shared_ptr<AcceleratableOperations> const&, TaskStatus const&, DebugImages*) + 1848
3   scantailor                    	0x000000010c278f1d output::OutputGenerator::normalizeIlluminationGray(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, imageproc::GrayImage const&, imageproc::GrayImage const&, boost::optional<QPolygonF> const&, DebugImages*) + 61
4   scantailor                    	0x000000010c27713f output::OutputGenerator::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, ZoneSet const&, ZoneSet const&, imageproc::BinaryImage*, imageproc::BinaryImage*, DebugImages*) const + 1919
5   scantailor                    	0x000000010c2716bf output::Task::processScaled(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, std::__1::shared_ptr<imageproc::AbstractImageTransform const> const&, QRectF const&, QRectF const&) + 2079
6   scantailor                    	0x000000010c270e20 output::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, std::__1::shared_ptr<imageproc::AbstractImageTransform const> const&, QRectF const&, QRectF const&) + 320
7   scantailor                    	0x000000010c258dd5 page_layout::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, std::__1::shared_ptr<imageproc::AbstractImageTransform const> const&, boost::optional<imageproc::AffineTransformedImage>, ContentBox const&) + 453
8   scantailor                    	0x000000010c2f3707 select_content::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, std::__1::shared_ptr<imageproc::AbstractImageTransform const> const&) + 2903
9   scantailor                    	0x000000010c2d0f56 deskew::Task::processRotationDistortion(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, deskew::Params&) + 2006
10  scantailor                    	0x000000010c2d0493 deskew::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, OrthogonalRotation const&) + 371
11  scantailor                    	0x000000010c2be2a4 page_split::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&, OrthogonalRotation const&) + 3572
12  scantailor                    	0x000000010c29c429 fix_orientation::Task::process(TaskStatus const&, std::__1::shared_ptr<AcceleratableOperations> const&, QImage const&, CachingFactory<imageproc::GrayImage> const&, imageproc::AffineImageTransform const&) + 697
13  scantailor                    	0x000000010c328b5f LoadFileTask::operator()() + 607
14  scantailor                    	0x000000010c3283d0 WorkerThreadPool::submitTask(IntrusivePtr<BackgroundTask> const&)::Runnable::run() + 48
15  org.qt-project.QtCore         	0x000000010d4d1378 QThreadPoolThread::run() + 120
16  org.qt-project.QtCore         	0x000000010d4d457a QThreadPrivate::start(void*) + 362
17  libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
18  libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
19  libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 12:: Thread (pooled)
0   libsystem_kernel.dylib        	0x00007fff878a0db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c40a728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x000000010d4d5d2f QWaitConditionPrivate::wait_relative(unsigned long) + 287
3   org.qt-project.QtCore         	0x000000010d4d5b6b QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore         	0x000000010d4d5a42 QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore         	0x000000010d4d153e QThreadPoolThread::run() + 574
6   org.qt-project.QtCore         	0x000000010d4d457a QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib       	0x00007fff8c40999d _pthread_body + 131
8   libsystem_pthread.dylib       	0x00007fff8c40991a _pthread_start + 168
9   libsystem_pthread.dylib       	0x00007fff8c407351 thread_start + 13

Thread 13:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 14:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 15:
0   libsystem_kernel.dylib        	0x00007fff878a15e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8c409578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff8c407341 start_wqthread + 13

Thread 11 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000100  rbx: 0x0000000000000100  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x000070000052bc08  rsi: 0x00007f9c7ba00080  rbp: 0x000070000052bc40  rsp: 0x000070000052ba60
   r8: 0x0000000000000004   r9: 0x00007fff8fea9376  r10: 0x0000000000396e00  r11: 0xfffff06384b2bb88
  r12: 0x000000000000012c  r13: 0x00000000000000c0  r14: 0x000070000052c228  r15: 0x0000000000000000
  rip: 0x0000000112bed8b1  rfl: 0x0000000000010246  cr2: 0x000000010c594000
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     0

Binary Images:
Post Reply