Issue 1480 in tesseract-ocr: opencl runtime malloc error

64 views
Skip to first unread message

tesser...@googlecode.com

unread,
May 29, 2015, 11:14:16 PM5/29/15
to tesserac...@googlegroups.com
Status: New
Owner: ----

New issue 1480 by mevi...@gmail.com: opencl runtime malloc error
https://code.google.com/p/tesseract-ocr/issues/detail?id=1480

What steps will reproduce the problem?
1. tesseract 3.04-rc1 with opencl
2. on Macbookpror
3.

What is the expected output? What do you see instead?

I got it compiled and spanish training set, and when executing:

Tesseract Open Source OCR Engine v3.04.00 with Leptonica
[DS] Profile file not available (tesseract_opencl_profile_devices.dat);
performing profiling.

[DS] Device: "Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz" (OpenCL)
evaluation...
OpenCL error code is -33 at when clGetDeviceInfo .
tesseract(82038,0x7fff7ac9f310) malloc: ***
mach_vm_map(size=1125865547108352) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
OpenCL error code is -54 at when clEnqueueNDRangeKernel .
OpenCL error code is -54 at when clEnqueueNDRangeKernel
kernel_HistogramRectAllChannels .
OpenCL error code is -54 at when clEnqueueNDRangeKernel
kernel_HistogramRectAllChannelsReduction .
OpenCL error code is -54 at when clEnqueueNDRangeKernel
kernel_ThresholdRectToPix .
[DS] Device: "Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz" (OpenCL) evaluated
[DS] composeRGBPixel: 2460497087.848977 (w=1.2)
[DS] HistogramRect: 2460497087.848977 (w=2.4)
[DS] ThresholdRectToPix: 2460497087.848977 (w=4.5)
[DS] getLineMasksMorph: 237205990.150991 (w=5.0)
[DS] Score: 21116057600.000000

[DS] Device: "HD Graphics 4000" (OpenCL) evaluation...
OpenCL error code is -33 at when clGetDeviceInfo .
tesseract(82038,0x7fff7ac9f310) malloc: ***
mach_vm_map(size=1125865547108352) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
[DS] Device: "HD Graphics 4000" (OpenCL) evaluated
[DS] composeRGBPixel: 2460497087.848977 (w=1.2)
[DS] HistogramRect: 2460497087.848977 (w=2.4)
[DS] ThresholdRectToPix: 2460497087.848977 (w=4.5)
[DS] getLineMasksMorph: 237205990.150991 (w=5.0)
[DS] Score: 21116057600.000000

[DS] Device: "GeForce GT 650M" (OpenCL) evaluation...
OpenCL error code is -33 at when clGetDeviceInfo .
tesseract(82038,0x7fff7ac9f310) malloc: ***
mach_vm_map(size=1125865547108352) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
[DS] Device: "GeForce GT 650M" (OpenCL) evaluated
[DS] composeRGBPixel: 2460497087.848977 (w=1.2)
[DS] HistogramRect: 2460497087.848977 (w=2.4)
[DS] ThresholdRectToPix: 2460497087.848977 (w=4.5)
[DS] getLineMasksMorph: 237205990.150991 (w=5.0)
[DS] Score: 21116057600.000000

[DS] Device: "(null)" (Native) evaluation...
[DS] Device: "(null)" (Native) evaluated
[DS] composeRGBPixel: 256.000000 (w=1.2)
[DS] HistogramRect: 256.000000 (w=2.4)
[DS] ThresholdRectToPix: 256.000000 (w=4.5)
[DS] getLineMasksMorph: 4294966736.000000 (w=5.0)
[DS] Score: 21474836480.000000
[DS] Scores written to file (tesseract_opencl_profile_devices.dat).
[DS] Device[1] 1:Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz score is
21116057600.000000
[DS] Device[2] 1:HD Graphics 4000 score is 21116057600.000000
[DS] Device[3] 1:GeForce GT 650M score is 21116057600.000000
[DS] Device[4] 0:(null) score is 21474836480.000000
[DS] Selected Device[1]: "Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz"
(OpenCL)
OpenCL error code is -33 at when clGetDeviceInfo .
tesseract(82038,0x7fff7ac9f310) malloc: ***
mach_vm_map(size=1125865547108352) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug


Please use labels and text to provide additional information.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

tesser...@googlecode.com

unread,
May 31, 2015, 5:56:32 AM5/31/15
to tesserac...@googlegroups.com
Updates:
Labels: opencl

Comment #1 on issue 1480 by zde...@gmail.com: opencl runtime malloc error
https://code.google.com/p/tesseract-ocr/issues/detail?id=1480

(No comment was entered for this change.)

tesser...@googlecode.com

unread,
Aug 24, 2015, 9:17:12 AM8/24/15
to tesserac...@googlegroups.com

Comment #2 on issue 1480 by zde...@gmail.com: opencl runtime malloc error
https://code.google.com/p/tesseract-ocr/issues/detail?id=1480

can you check current code from https://github.com/tesseract-ocr/tesseract
and report issue there?

tesser...@googlecode.com

unread,
Aug 24, 2015, 11:08:52 AM8/24/15
to tesserac...@googlegroups.com

Comment #3 on issue 1480 by mevi...@gmail.com: opencl runtime malloc error
https://code.google.com/p/tesseract-ocr/issues/detail?id=1480

Will do tonight. Thanks.
Reply all
Reply to author
Forward
0 new messages