mmoghimi / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 1 forks source link

opencl runtime malloc error #1480

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by mevi...@gmail.com on 30 May 2015 at 3:14

GoogleCodeExporter commented 9 years ago

Original comment by zde...@gmail.com on 31 May 2015 at 9:56