Daniel Reetz, the founder of the DIY Book Scanner community, has recently started making videos of prototyping and shop tips. If you are tinkering with a book scanner (or any other project) in your home shop, these tips will come in handy. https://www.youtube.com/channel/UCn0gq8 ... g_8K1nfInQ

Search found 687 matches

by Tulon
04 Apr 2016, 14:00
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

I pushed a fix for build errors. Also, -DCMAKE_CXX_FLAGS=-std=c++11 should no longer be required.

I am still working on a fix for OpenCL crashes, trying to solve performance degradation issues caused by it.
by Tulon
30 Mar 2016, 18:56
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

I'll make a proper fix in a few days then.
by Tulon
30 Mar 2016, 16:51
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

Actually, it turns out that:

Code: Select all

std::max<size_t>(1, device.getInfo<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE>())
is not enough to get rid of that division by zero. Make it:

Code: Select all

std::max<size_t>(16, device.getInfo<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE>())
by Tulon
30 Mar 2016, 16:44
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

It must be some other division then.

Can you make a debug build to get a more precise crash location? You'll need to pass "-DCMAKE_BUILD_TYPE=Debug" option to cmake.
by Tulon
30 Mar 2016, 11:02
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

OK, so it's crashing with a division by zero. I suspect it's caused by CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE being zero. I've seen that on Linux with Mesa drivers. Could you try replacing all instances of: device.getInfo<CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE>() with: std::max<size_t>(1, device.getInfo<C...
by Tulon
30 Mar 2016, 04:59
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

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 ...
by Tulon
06 Mar 2016, 05:40
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

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.
by Tulon
26 Feb 2016, 06:59
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

I would start by adding image support checks to unit tests in order to exclude the Mesa implementation, and then getting unit tests to pass on the AMD implementation.
by Tulon
25 Feb 2016, 19:10
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

I don't like those "OpenCL error: clCreateImage2D" errors you are getting. Perhaps you've allocated too little system memory to your GPU. That's a BIOS setting. I would like to play with code. Where can I enable Mesa for testing textures? The check is here : if (!device.getInfo<CL_DEVICE_IMAGE_SUPPO...
by Tulon
24 Feb 2016, 16:30
Forum: Scan Tailor
Topic: Scan Tailor "Experimental"
Replies: 275
Views: 98873

Re: Scan Tailor "Experimental"

diyfan , The reason the Mesa OpenCL implementation doesn't show up in Scan Tailor is that it doesn't support images (aka textures). A large number of test failures were caused by trying to use the Mesa implementation, as testing code tries to run on all available implementations. As for the AMD imp...