Open jwijffels opened 4 years ago
gcc-UBSAN
R Under development (unstable) (2020-09-15 r79214) -- "Unsuffered Consequences"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> pkgname <- "image.textlinedetector"
> source(file.path(R.home("share"), "R", "examples-header.R"))
> options(warn = 1)
> library('image.textlinedetector')
>
> base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
> base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv')
> cleanEx()
> nameEx("image_textlines_astar")
> ### * image_textlines_astar
>
> flush(stderr()); flush(stdout())
>
> ### Name: image_textlines_astar
> ### Title: Text Line Segmentation based on the A* Path Planning Algorithm
> ### Aliases: image_textlines_astar
>
> ### ** Examples
>
> library(opencv)
> library(magick)
Linking to ImageMagick 6.9.11.27
Enabled features: cairo, fontconfig, freetype, fftw, ghostscript, lcms, pango, rsvg, webp, x11
Disabled features:
Using 24 threads
> library(image.textlinedetector)
> path <- system.file(package = "image.textlinedetector", "extdata", "example.png")
> img <- image_read(path)
> img <- image_resize(img, "x1000")
> areas <- image_textlines_astar(img, morph = TRUE, step = 2, mfactor = 5, trace = TRUE)
- Detecting lines location.. ==> 10 areas found.
- A* path planning algorithm..
line #1 - from [108, 0] to [108, 1276]
rcpp-linelocalization.cpp:296:16: runtime error: signed integer overflow: 108 * 1812433253 cannot be represented in type 'int'
#0 0x7fc2fd6dc63c in std::hash<std::tuple<int, int> >::operator()(std::tuple<int, int> const&) const /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:296
#1 0x7fc2fd6dc63c in std::__detail::_Hash_code_base<std::tuple<int, int>, std::pair<std::tuple<int, int> const, double>, std::__detail::_Select1st, std::hash<std::tuple<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::_M_hash_code(std::tuple<int, int> const&) const /usr/include/c++/10/bits/hashtable_policy.h:1379
#2 0x7fc2fd6dc63c in std::__detail::_Map_base<std::tuple<int, int>, std::pair<std::tuple<int, int> const, double>, std::allocator<std::pair<std::tuple<int, int> const, double> >, std::__detail::_Select1st, std::equal_to<std::tuple<int, int> >, std::hash<std::tuple<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[](std::tuple<int, int> const&) /usr/include/c++/10/bits/hashtable_policy.h:707
#3 0x7fc2fd6f3cbb in std::unordered_map<std::tuple<int, int>, double, std::hash<std::tuple<int, int> >, std::equal_to<std::tuple<int, int> >, std::allocator<std::pair<std::tuple<int, int> const, double> > >::operator[](std::tuple<int, int> const&) /usr/include/c++/10/bits/unordered_map.h:984
#4 0x7fc2fd6f3cbb in void astar_search<Map>(Map const&, Map::Node, Map::Node, std::unordered_map<Map::Node, Map::Node, std::hash<Map::Node>, std::equal_to<Map::Node>, std::allocator<std::pair<Map::Node const, Map::Node> > >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:324
#5 0x7fc2fd690f14 in textlinedetector_astarpath(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int, int, bool) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:407
#6 0x7fc2fd54686a in _image_textlinedetector_textlinedetector_astarpath /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/RcppExports.cpp:250
#7 0x57d35b in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:610
#8 0x58587c in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1281
#9 0x62619b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7117
#10 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#11 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#12 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#13 0x6448fe in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7085
#14 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#15 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#16 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#17 0x66e77f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:846
#18 0x67b009 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2963
#19 0x66eba8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:798
#20 0x6ed63d in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264
#21 0x6edc88 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314
#22 0x6eddd4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1113
#23 0x6ede22 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1120
#24 0x41b388 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29
#25 0x7fc30f43f041 in __libc_start_main (/lib64/libc.so.6+0x27041)
#26 0x41dafd in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41dafd)
rcpp-linelocalization.cpp:296:16: runtime error: signed integer overflow: 106 * 1812433253 cannot be represented in type 'int'
#0 0x7fc2fd6d408b in std::hash<std::tuple<int, int> >::operator()(std::tuple<int, int> const&) const /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:296
#1 0x7fc2fd6d408b in std::__detail::_Hash_code_base<std::tuple<int, int>, std::tuple<int, int>, std::__detail::_Identity, std::hash<std::tuple<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::_M_hash_code(std::tuple<int, int> const&) const /usr/include/c++/10/bits/hashtable_policy.h:1379
#2 0x7fc2fd6d408b in std::_Hashtable<std::tuple<int, int>, std::tuple<int, int>, std::allocator<std::tuple<int, int> >, std::__detail::_Identity, std::equal_to<std::tuple<int, int> >, std::hash<std::tuple<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, true, true> >::count(std::tuple<int, int> const&) const /usr/include/c++/10/bits/hashtable.h:1484
#3 0x7fc2fd6f6043 in std::unordered_set<std::tuple<int, int>, std::hash<std::tuple<int, int> >, std::equal_to<std::tuple<int, int> >, std::allocator<std::tuple<int, int> > >::count(std::tuple<int, int> const&) const /usr/include/c++/10/bits/unordered_set.h:668
#4 0x7fc2fd6f6043 in void astar_search<Map>(Map const&, Map::Node, Map::Node, std::unordered_map<Map::Node, Map::Node, std::hash<Map::Node>, std::equal_to<Map::Node>, std::allocator<std::pair<Map::Node const, Map::Node> > >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:336
#5 0x7fc2fd690f14 in textlinedetector_astarpath(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int, int, bool) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:407
#6 0x7fc2fd54686a in _image_textlinedetector_textlinedetector_astarpath /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/RcppExports.cpp:250
#7 0x57d35b in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:610
#8 0x58587c in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1281
#9 0x62619b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7117
#10 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#11 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#12 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#13 0x6448fe in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7085
#14 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#15 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#16 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#17 0x66e77f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:846
#18 0x67b009 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2963
#19 0x66eba8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:798
#20 0x6ed63d in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264
#21 0x6edc88 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314
#22 0x6eddd4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1113
#23 0x6ede22 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1120
#24 0x41b388 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29
#25 0x7fc30f43f041 in __libc_start_main (/lib64/libc.so.6+0x27041)
#26 0x41dafd in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41dafd)
rcpp-linelocalization.cpp:296:16: runtime error: signed integer overflow: 106 * 1812433253 cannot be represented in type 'int'
#0 0x7fc2fd6d686d in std::hash<std::tuple<int, int> >::operator()(std::tuple<int, int> const&) const /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:296
#1 0x7fc2fd6d686d in std::__detail::_Hash_code_base<std::tuple<int, int>, std::pair<std::tuple<int, int> const, double>, std::__detail::_Select1st, std::hash<std::tuple<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::_M_hash_code(std::tuple<int, int> const&) const /usr/include/c++/10/bits/hashtable_policy.h:1379
#2 0x7fc2fd6d686d in std::_Hashtable<std::tuple<int, int>, std::pair<std::tuple<int, int> const, double>, std::allocator<std::pair<std::tuple<int, int> const, double> >, std::__detail::_Select1st, std::equal_to<std::tuple<int, int> >, std::hash<std::tuple<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::count(std::tuple<int, int> const&) const /usr/include/c++/10/bits/hashtable.h:1484
#3 0x7fc2fd6f4fc5 in std::unordered_map<std::tuple<int, int>, double, std::hash<std::tuple<int, int> >, std::equal_to<std::tuple<int, int> >, std::allocator<std::pair<std::tuple<int, int> const, double> > >::count(std::tuple<int, int> const&) const /usr/include/c++/10/bits/unordered_map.h:938
#4 0x7fc2fd6f4fc5 in void astar_search<Map>(Map const&, Map::Node, Map::Node, std::unordered_map<Map::Node, Map::Node, std::hash<Map::Node>, std::equal_to<Map::Node>, std::allocator<std::pair<Map::Node const, Map::Node> > >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:341
#5 0x7fc2fd690f14 in textlinedetector_astarpath(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int, int, bool) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:407
#6 0x7fc2fd54686a in _image_textlinedetector_textlinedetector_astarpath /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/RcppExports.cpp:250
#7 0x57d35b in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:610
#8 0x58587c in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1281
#9 0x62619b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7117
#10 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#11 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#12 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#13 0x6448fe in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7085
#14 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#15 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#16 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#17 0x66e77f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:846
#18 0x67b009 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2963
#19 0x66eba8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:798
#20 0x6ed63d in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264
#21 0x6edc88 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314
#22 0x6eddd4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1113
#23 0x6ede22 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1120
#24 0x41b388 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29
#25 0x7fc30f43f041 in __libc_start_main (/lib64/libc.so.6+0x27041)
#26 0x41dafd in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41dafd)
rcpp-linelocalization.cpp:296:16: runtime error: signed integer overflow: 106 * 1812433253 cannot be represented in type 'int'
#0 0x7fc2fd6e2675 in std::hash<std::tuple<int, int> >::operator()(std::tuple<int, int> const&) const /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:296
#1 0x7fc2fd6e2675 in std::__detail::_Hash_code_base<std::tuple<int, int>, std::pair<std::tuple<int, int> const, std::tuple<int, int> >, std::__detail::_Select1st, std::hash<std::tuple<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::_M_hash_code(std::tuple<int, int> const&) const /usr/include/c++/10/bits/hashtable_policy.h:1379
#2 0x7fc2fd6e2675 in std::__detail::_Map_base<std::tuple<int, int>, std::pair<std::tuple<int, int> const, std::tuple<int, int> >, std::allocator<std::pair<std::tuple<int, int> const, std::tuple<int, int> > >, std::__detail::_Select1st, std::equal_to<std::tuple<int, int> >, std::hash<std::tuple<int, int> >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[](std::tuple<int, int> const&) /usr/include/c++/10/bits/hashtable_policy.h:707
#3 0x7fc2fd6f50bf in std::unordered_map<std::tuple<int, int>, std::tuple<int, int>, std::hash<std::tuple<int, int> >, std::equal_to<std::tuple<int, int> >, std::allocator<std::pair<std::tuple<int, int> const, std::tuple<int, int> > > >::operator[](std::tuple<int, int> const&) /usr/include/c++/10/bits/unordered_map.h:984
#4 0x7fc2fd6f50bf in void astar_search<Map>(Map const&, Map::Node, Map::Node, std::unordered_map<Map::Node, Map::Node, std::hash<Map::Node>, std::equal_to<Map::Node>, std::allocator<std::pair<Map::Node const, Map::Node> > >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:343
#5 0x7fc2fd690f14 in textlinedetector_astarpath(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int, int, bool) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-linelocalization.cpp:407
#6 0x7fc2fd54686a in _image_textlinedetector_textlinedetector_astarpath /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/RcppExports.cpp:250
#7 0x57d35b in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:610
#8 0x58587c in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1281
#9 0x62619b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7117
#10 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#11 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#12 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#13 0x6448fe in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7085
#14 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#15 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#16 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#17 0x66e77f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:846
#18 0x67b009 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2963
#19 0x66eba8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:798
#20 0x6ed63d in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264
#21 0x6edc88 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314
#22 0x6eddd4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1113
#23 0x6ede22 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1120
#24 0x41b388 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29
#25 0x7fc30f43f041 in __libc_start_main (/lib64/libc.so.6+0x27041)
#26 0x41dafd in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41dafd)
line #2 - from [203, 0] to [203, 1276]
line #3 - from [294, 0] to [294, 1276]
line #4 - from [387, 0] to [387, 1276]
line #5 - from [479, 0] to [479, 1276]
line #6 - from [572, 0] to [572, 1276]
line #7 - from [665, 0] to [665, 1276]
line #8 - from [758, 0] to [758, 1276]
line #9 - from [851, 0] to [851, 1276]
> areas <- lines(areas, img)
> areas$n
[1] 9
> areas$overview
<pointer: 0x60800002ee20>
attr(,"class")
[1] "opencv-image"
> areas$lines
x_from x_to y_from y_to
1 108 108 0 1276
2 203 203 0 1276
3 294 294 0 1276
4 387 387 0 1276
5 479 479 0 1276
6 572 572 0 1276
7 665 665 0 1276
8 758 758 0 1276
9 851 851 0 1276
> areas$textlines[[2]]
<pointer: 0x60800002d320>
attr(,"class")
[1] "opencv-image"
> areas$textlines[[4]]
<pointer: 0x60800002c8a0>
attr(,"class")
[1] "opencv-image"
> combined <- lapply(areas$textlines, FUN=function(x) image_read(ocv_bitmap(x)))
> combined <- do.call(c, combined)
> combined
format width height colorspace matte filesize density
1 PNG 1277 111 sRGB FALSE 0 72x72
2 PNG 1277 104 sRGB FALSE 0 72x72
3 PNG 1277 104 sRGB FALSE 0 72x72
4 PNG 1277 102 sRGB FALSE 0 72x72
5 PNG 1277 97 sRGB FALSE 0 72x72
6 PNG 1277 100 sRGB FALSE 0 72x72
7 PNG 1277 102 sRGB FALSE 0 72x72
8 PNG 1277 106 sRGB FALSE 0 72x72
9 PNG 1277 94 sRGB FALSE 0 72x72
10 PNG 1277 151 sRGB FALSE 0 72x72
> image_append(combined, stack = TRUE)
format width height colorspace matte filesize density
1 PNG 1277 1071 sRGB FALSE 0 72x72
>
> plt <- image_draw(img)
> lapply(areas$paths, FUN=function(line){
+ lines(x = line$x, y = line$y, col = "red")
+ })
[[1]]
NULL
[[2]]
NULL
[[3]]
NULL
[[4]]
NULL
[[5]]
NULL
[[6]]
NULL
[[7]]
NULL
[[8]]
NULL
[[9]]
NULL
> dev.off()
pdf
2
> plt
format width height colorspace matte filesize density
1 PNG 1277 1000 sRGB TRUE 0 300x300
>
>
>
> cleanEx()
detaching ‘package:magick’, ‘package:opencv’
> nameEx("image_textlines_crop")
> ### * image_textlines_crop
>
> flush(stderr()); flush(stdout())
>
> ### Name: image_textlines_crop
> ### Title: Crop an image to extract only the region containing text
> ### Aliases: image_textlines_crop
>
> ### ** Examples
>
> library(opencv)
> library(magick)
Linking to ImageMagick 6.9.11.27
Enabled features: cairo, fontconfig, freetype, fftw, ghostscript, lcms, pango, rsvg, webp, x11
Disabled features:
Using 24 threads
> library(image.textlinedetector)
> path <- system.file(package = "image.textlinedetector", "extdata", "example.png")
> img <- image_read(path)
> image_info(img)
format width height colorspace matte filesize density
1 PNG 2479 1942 Gray FALSE 801936 300x300
> img <- image_textlines_crop(img)
> image_info(img)
format width height colorspace matte filesize density
1 PNG 1852 1799 sRGB FALSE 0 72x72
>
>
>
> cleanEx()
detaching ‘package:magick’, ‘package:opencv’
> nameEx("image_textlines_flor")
> ### * image_textlines_flor
>
> flush(stderr()); flush(stdout())
>
> ### Name: image_textlines_flor
> ### Title: Text Line Segmentation based on valley finding in projection
> ### profiles
> ### Aliases: image_textlines_flor
>
> ### ** Examples
>
> library(opencv)
> library(magick)
Linking to ImageMagick 6.9.11.27
Enabled features: cairo, fontconfig, freetype, fftw, ghostscript, lcms, pango, rsvg, webp, x11
Disabled features:
Using 24 threads
> library(image.textlinedetector)
> path <- system.file(package = "image.textlinedetector", "extdata", "example.png")
> img <- image_read(path)
> img <- image_resize(img, "1000x")
> areas <- image_textlines_flor(img, light = TRUE, type = "sauvola")
LineSegmentation.cpp:33:27: runtime error: load of value 190, which is not a valid value for type 'bool'
#0 0x7fc2fd40c35a in LineSegmentation::sieve() /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/LineSegmentation.cpp:33
#1 0x7fc2fd478a7a in LineSegmentation::LineSegmentation() /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/LineSegmentation.cpp:4
#2 0x7fc2fd73fae5 in textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/rcpp-textline.cpp:47
#3 0x7fc2fd54569c in _image_textlinedetector_textlinedetector_linesegmentation /data/gannet/ripley/R/packages/tests-gcc-SAN/image.textlinedetector/src/RcppExports.cpp:302
#4 0x57c547 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:614
#5 0x58587c in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1281
#6 0x62619b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7117
#7 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#8 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#9 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#10 0x6448fe in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7085
#11 0x66deb7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:723
#12 0x6731a4 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1891
#13 0x675654 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1817
#14 0x66e77f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:846
#15 0x67b009 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2963
#16 0x66eba8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:798
#17 0x6ed63d in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264
#18 0x6edc88 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314
#19 0x6eddd4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1113
#20 0x6ede22 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1120
#21 0x41b388 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29
#22 0x7fc30f43f041 in __libc_start_main (/lib64/libc.so.6+0x27041)
#23 0x41dafd in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41dafd)
> areas <- lines(areas, img)
> areas$n
[1] 10
> areas$overview
<pointer: 0x6080002913a0>
attr(,"class")
[1] "opencv-image"
> combined <- lapply(areas$textlines, FUN=function(x) image_read(ocv_bitmap(x)))
> combined <- do.call(c, combined)
> combined
format width height colorspace matte filesize density
1 PNG 1000 90 sRGB FALSE 0 72x72
2 PNG 1000 82 sRGB FALSE 0 72x72
3 PNG 1000 74 sRGB FALSE 0 72x72
4 PNG 1000 79 sRGB FALSE 0 72x72
5 PNG 1000 80 sRGB FALSE 0 72x72
6 PNG 1000 83 sRGB FALSE 0 72x72
7 PNG 1000 81 sRGB FALSE 0 72x72
8 PNG 1000 84 sRGB FALSE 0 72x72
9 PNG 1000 77 sRGB FALSE 0 72x72
10 PNG 1000 117 sRGB FALSE 0 72x72
> image_append(combined, stack = TRUE)
format width height colorspace matte filesize density
1 PNG 1000 847 sRGB FALSE 0 72x72
>
>
>
> cleanEx()
detaching ‘package:magick’, ‘package:opencv’
> nameEx("image_wordsegmentation")
> ### * image_wordsegmentation
>
> flush(stderr()); flush(stdout())
>
> ### Name: image_wordsegmentation
> ### Title: Find Words by Connected Components Labelling
> ### Aliases: image_wordsegmentation
>
> ### ** Examples
>
> library(opencv)
> library(magick)
Linking to ImageMagick 6.9.11.27
Enabled features: cairo, fontconfig, freetype, fftw, ghostscript, lcms, pango, rsvg, webp, x11
Disabled features:
Using 24 threads
> library(image.textlinedetector)
> path <- system.file(package = "image.textlinedetector", "extdata", "example.png")
> img <- image_read(path)
> img <- image_resize(img, "x1000")
> areas <- image_textlines_flor(img, light = TRUE, type = "sauvola")
> areas$overview
<pointer: 0x608001e12c20>
attr(,"class")
[1] "opencv-image"
> areas$textlines[[6]]
<pointer: 0x608001e76a20>
attr(,"class")
[1] "opencv-image"
> textwords <- image_wordsegmentation(areas$textlines[[6]])
> textwords$n
[1] 5
> textwords$overview
<pointer: 0x608001e7f220>
attr(,"class")
[1] "opencv-image"
> textwords$words[[2]]
<pointer: 0x608001e7f620>
attr(,"class")
[1] "opencv-image"
> textwords$words[[3]]
<pointer: 0x608001e7f520>
attr(,"class")
[1] "opencv-image"
>
>
>
> cleanEx()
detaching ‘package:magick’, ‘package:opencv’
> nameEx("lines.textlines")
> ### * lines.textlines
>
> flush(stderr()); flush(stdout())
>
> ### Name: lines.textlines
> ### Title: Extract the polygons of the textlines
> ### Aliases: lines.textlines
>
> ### ** Examples
>
> ## See the examples in ?image_textlines_astar or ?image_textlines_flor
>
>
>
> ### * <FOOTER>
> ###
> cleanEx()
> options(digits = 7L)
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed: 29.528 2.772 62.203 0 0
> grDevices::dev.off()
null device
1
> ###
> ### Local variables: ***
> ### mode: outline-minor ***
> ### outline-regexp: "\\(> \\)?### [*]+" ***
> ### End: ***
> quit('no')
Valgrind
==3858038== Memcheck, a memory error detector
==3858038== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==3858038== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==3858038== Command: /data/blackswan/ripley/R/R-devel-vg/bin/exec/R --vanilla
==3858038==
R Under development (unstable) (2020-12-19 r79648) -- "Unsuffered Consequences"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> pkgname <- "image.textlinedetector"
> source(file.path(R.home("share"), "R", "examples-header.R"))
> options(warn = 1)
> library('image.textlinedetector')
>
> base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
> base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv')
> cleanEx()
> nameEx("image_textlines_astar")
> ### * image_textlines_astar
>
> flush(stderr()); flush(stdout())
>
> ### Name: image_textlines_astar
> ### Title: Text Line Segmentation based on the A* Path Planning Algorithm
> ### Aliases: image_textlines_astar
>
> ### ** Examples
>
> library(opencv)
> library(magick)
Linking to ImageMagick 6.9.11.27
Enabled features: cairo, fontconfig, freetype, fftw, ghostscript, lcms, pango, rsvg, webp, x11
Disabled features:
Using 32 threads
> library(image.textlinedetector)
> path <- system.file(package = "image.textlinedetector", "extdata", "example.png")
> img <- image_read(path)
> img <- image_resize(img, "x1000")
> areas <- image_textlines_astar(img, morph = TRUE, step = 2, mfactor = 5, trace = TRUE)
- Detecting lines location.. ==> 10 areas found.
- A* path planning algorithm..
line #1 - from [108, 0] to [108, 1276]
line #2 - from [203, 0] to [203, 1276]
line #3 - from [294, 0] to [294, 1276]
line #4 - from [387, 0] to [387, 1276]
line #5 - from [479, 0] to [479, 1276]
line #6 - from [572, 0] to [572, 1276]
line #7 - from [665, 0] to [665, 1276]
line #8 - from [758, 0] to [758, 1276]
line #9 - from [851, 0] to [851, 1276]
> areas <- lines(areas, img)
> areas$n
[1] 9
> areas$overview
<pointer: 0xe9d45f0>
attr(,"class")
[1] "opencv-image"
> areas$lines
x_from x_to y_from y_to
1 108 108 0 1276
2 203 203 0 1276
3 294 294 0 1276
4 387 387 0 1276
5 479 479 0 1276
6 572 572 0 1276
7 665 665 0 1276
8 758 758 0 1276
9 851 851 0 1276
> areas$textlines[[2]]
<pointer: 0xef4cab0>
attr(,"class")
[1] "opencv-image"
> areas$textlines[[4]]
<pointer: 0xf076f20>
attr(,"class")
[1] "opencv-image"
> combined <- lapply(areas$textlines, FUN=function(x) image_read(ocv_bitmap(x)))
> combined <- do.call(c, combined)
> combined
format width height colorspace matte filesize density
1 PNG 1277 111 sRGB FALSE 0 72x72
2 PNG 1277 104 sRGB FALSE 0 72x72
3 PNG 1277 104 sRGB FALSE 0 72x72
4 PNG 1277 102 sRGB FALSE 0 72x72
5 PNG 1277 97 sRGB FALSE 0 72x72
6 PNG 1277 100 sRGB FALSE 0 72x72
7 PNG 1277 102 sRGB FALSE 0 72x72
8 PNG 1277 106 sRGB FALSE 0 72x72
9 PNG 1277 94 sRGB FALSE 0 72x72
10 PNG 1277 151 sRGB FALSE 0 72x72
> image_append(combined, stack = TRUE)
format width height colorspace matte filesize density
1 PNG 1277 1071 sRGB FALSE 0 72x72
>
> plt <- image_draw(img)
> lapply(areas$paths, FUN=function(line){
+ lines(x = line$x, y = line$y, col = "red")
+ })
[[1]]
NULL
[[2]]
NULL
[[3]]
NULL
[[4]]
NULL
[[5]]
NULL
[[6]]
NULL
[[7]]
NULL
[[8]]
NULL
[[9]]
NULL
> dev.off()
pdf
2
> plt
format width height colorspace matte filesize density
1 PNG 1277 1000 sRGB TRUE 0 300x300
>
>
>
> cleanEx()
detaching ‘package:magick’, ‘package:opencv’
> nameEx("image_textlines_crop")
> ### * image_textlines_crop
>
> flush(stderr()); flush(stdout())
>
> ### Name: image_textlines_crop
> ### Title: Crop an image to extract only the region containing text
> ### Aliases: image_textlines_crop
>
> ### ** Examples
>
> library(opencv)
> library(magick)
Linking to ImageMagick 6.9.11.27
Enabled features: cairo, fontconfig, freetype, fftw, ghostscript, lcms, pango, rsvg, webp, x11
Disabled features:
Using 32 threads
> library(image.textlinedetector)
> path <- system.file(package = "image.textlinedetector", "extdata", "example.png")
> img <- image_read(path)
> image_info(img)
format width height colorspace matte filesize density
1 PNG 2479 1942 Gray FALSE 801936 300x300
> img <- image_textlines_crop(img)
> image_info(img)
format width height colorspace matte filesize density
1 PNG 1852 1799 sRGB FALSE 0 72x72
>
>
>
> cleanEx()
detaching ‘package:magick’, ‘package:opencv’
> nameEx("image_textlines_flor")
> ### * image_textlines_flor
>
> flush(stderr()); flush(stdout())
>
> ### Name: image_textlines_flor
> ### Title: Text Line Segmentation based on valley finding in projection
> ### profiles
> ### Aliases: image_textlines_flor
>
> ### ** Examples
>
> library(opencv)
> library(magick)
Linking to ImageMagick 6.9.11.27
Enabled features: cairo, fontconfig, freetype, fftw, ghostscript, lcms, pango, rsvg, webp, x11
Disabled features:
Using 32 threads
> library(image.textlinedetector)
> path <- system.file(package = "image.textlinedetector", "extdata", "example.png")
> img <- image_read(path)
> img <- image_resize(img, "1000x")
> areas <- image_textlines_flor(img, light = TRUE, type = "sauvola")
==3858038== Conditional jump or move depends on uninitialised value(s)
==3858038== at 0x17B34128: LineSegmentation::repairLines() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:257)
==3858038== by 0x17B3599E: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:18)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038== by 0x4F26C3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1823)
==3858038== by 0x4DF55D: bcEval (svn/R-devel/src/main/eval.c:7083)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== Uninitialised value was created by a heap allocation
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B5AC05: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:47)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038== by 0x4F26C3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1823)
==3858038== by 0x4DF55D: bcEval (svn/R-devel/src/main/eval.c:7083)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038==
> areas <- lines(areas, img)
> areas$n
[1] 10
> areas$overview
<pointer: 0xe8e6410>
attr(,"class")
[1] "opencv-image"
> combined <- lapply(areas$textlines, FUN=function(x) image_read(ocv_bitmap(x)))
> combined <- do.call(c, combined)
> combined
format width height colorspace matte filesize density
1 PNG 1000 90 sRGB FALSE 0 72x72
2 PNG 1000 82 sRGB FALSE 0 72x72
3 PNG 1000 74 sRGB FALSE 0 72x72
4 PNG 1000 79 sRGB FALSE 0 72x72
5 PNG 1000 80 sRGB FALSE 0 72x72
6 PNG 1000 83 sRGB FALSE 0 72x72
7 PNG 1000 81 sRGB FALSE 0 72x72
8 PNG 1000 84 sRGB FALSE 0 72x72
9 PNG 1000 77 sRGB FALSE 0 72x72
10 PNG 1000 117 sRGB FALSE 0 72x72
> image_append(combined, stack = TRUE)
format width height colorspace matte filesize density
1 PNG 1000 847 sRGB FALSE 0 72x72
>
>
>
> cleanEx()
detaching ‘package:magick’, ‘package:opencv’
> nameEx("image_wordsegmentation")
> ### * image_wordsegmentation
>
> flush(stderr()); flush(stdout())
>
> ### Name: image_wordsegmentation
> ### Title: Find Words by Connected Components Labelling
> ### Aliases: image_wordsegmentation
>
> ### ** Examples
>
> library(opencv)
> library(magick)
Linking to ImageMagick 6.9.11.27
Enabled features: cairo, fontconfig, freetype, fftw, ghostscript, lcms, pango, rsvg, webp, x11
Disabled features:
Using 32 threads
> library(image.textlinedetector)
> path <- system.file(package = "image.textlinedetector", "extdata", "example.png")
> img <- image_read(path)
> img <- image_resize(img, "x1000")
> areas <- image_textlines_flor(img, light = TRUE, type = "sauvola")
> areas$overview
<pointer: 0xec7a8d0>
attr(,"class")
[1] "opencv-image"
> areas$textlines[[6]]
<pointer: 0xf799510>
attr(,"class")
[1] "opencv-image"
> textwords <- image_wordsegmentation(areas$textlines[[6]])
> textwords$n
[1] 5
> textwords$overview
<pointer: 0x10572450>
attr(,"class")
[1] "opencv-image"
> textwords$words[[2]]
<pointer: 0xfdd9960>
attr(,"class")
[1] "opencv-image"
> textwords$words[[3]]
<pointer: 0xfeb5220>
attr(,"class")
[1] "opencv-image"
>
>
>
> cleanEx()
detaching ‘package:magick’, ‘package:opencv’
> nameEx("lines.textlines")
> ### * lines.textlines
>
> flush(stderr()); flush(stdout())
>
> ### Name: lines.textlines
> ### Title: Extract the polygons of the textlines
> ### Aliases: lines.textlines
>
> ### ** Examples
>
> ## See the examples in ?image_textlines_astar or ?image_textlines_flor
>
>
>
> ### * <FOOTER>
> ###
> cleanEx()
> options(digits = 7L)
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed: 384.076 2.757 388.106 0 0
> grDevices::dev.off()
null device
1
> ###
> ### Local variables: ***
> ### mode: outline-minor ***
> ### outline-regexp: "\\(> \\)?### [*]+" ***
> ### End: ***
> quit('no')
==3858038==
==3858038== HEAP SUMMARY:
==3858038== in use at exit: 160,427,673 bytes in 23,538 blocks
==3858038== total heap usage: 5,778,833 allocs, 5,755,295 frees, 2,470,083,888 bytes allocated
==3858038==
==3858038== 1 bytes in 1 blocks are definitely lost in loss record 226 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B596F4: textlinedetector_crop(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:16)
==3858038== by 0x17B39111: _image_textlinedetector_textlinedetector_crop (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:108)
==3858038== by 0x49CF2F: R_doDotCall (svn/R-devel/src/main/dotcode.c:598)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038== by 0x4F26C3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1823)
==3858038== by 0x4DF55D: bcEval (svn/R-devel/src/main/eval.c:7083)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038==
==3858038== 16 bytes in 1 blocks are possibly lost in loss record 1,439 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CAF56: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5D6: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B0F5E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA127: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038==
==3858038== 16 bytes in 1 blocks are possibly lost in loss record 1,440 of 7,159
==3858038== at 0x483A747: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:306)
==3858038== by 0x483CD32: realloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:834)
==3858038== by 0x1717BA0F: g_realloc (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CAEDC: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5D6: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B0F5E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA127: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 16 bytes in 1 blocks are possibly lost in loss record 1,441 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CAF56: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5D6: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B0FC1: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA127: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038==
==3858038== 16 bytes in 1 blocks are possibly lost in loss record 1,442 of 7,159
==3858038== at 0x483A747: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:306)
==3858038== by 0x483CD32: realloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:834)
==3858038== by 0x1717BA0F: g_realloc (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CAEDC: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5D6: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B0FC1: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA127: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 16 bytes in 1 blocks are possibly lost in loss record 1,443 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CAF56: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5D6: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0BA94F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA131: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038==
==3858038== 16 bytes in 1 blocks are possibly lost in loss record 1,444 of 7,159
==3858038== at 0x483A747: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:306)
==3858038== by 0x483CD32: realloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:834)
==3858038== by 0x1717BA0F: g_realloc (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CAEDC: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5D6: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0BA94F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA131: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 16 bytes in 1 blocks are possibly lost in loss record 1,445 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CAF56: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5D6: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B57EB: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA136: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038==
==3858038== 16 bytes in 1 blocks are possibly lost in loss record 1,446 of 7,159
==3858038== at 0x483A747: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:306)
==3858038== by 0x483CD32: realloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:834)
==3858038== by 0x1717BA0F: g_realloc (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CAEDC: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5D6: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B57EB: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA136: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 88 bytes in 1 blocks are possibly lost in loss record 4,775 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB1AA3: cv::_OutputArray::create(int, int, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19CB2419: cv::Mat::copyTo(cv::_OutputArray const&) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x17B2E655: clone (/usr/include/opencv4/opencv2/core/mat.inl.hpp:811)
==3858038== by 0x17B2E655: Region::calculateCovariance() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:625)
==3858038== by 0x17B2EE19: Region::updateRegion(cv::Mat&, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:575)
==3858038== by 0x17B34B98: LineSegmentation::generateRegions() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:194)
==3858038== by 0x17B35996: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:17)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038==
==3858038== 88 bytes in 1 blocks are possibly lost in loss record 4,776 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x19D5DFD5: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB1AA3: cv::_OutputArray::create(int, int, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19CB2419: cv::Mat::copyTo(cv::_OutputArray const&) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x17B2E655: clone (/usr/include/opencv4/opencv2/core/mat.inl.hpp:811)
==3858038== by 0x17B2E655: Region::calculateCovariance() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:625)
==3858038== by 0x17B2EE19: Region::updateRegion(cv::Mat&, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:575)
==3858038== by 0x17B34B98: LineSegmentation::generateRegions() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:194)
==3858038== by 0x17B35996: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:17)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038==
==3858038== 96 bytes in 1 blocks are possibly lost in loss record 4,835 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0C9C8F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CA36E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA04E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038== by 0x4EBA39B: dlopen_doit (in /usr/lib64/libdl-2.31.so)
==3858038==
==3858038== 96 bytes in 1 blocks are possibly lost in loss record 4,836 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0C9C8F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CA36E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5C8: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B0F5E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA127: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 96 bytes in 1 blocks are possibly lost in loss record 4,837 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0C9C8F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CA36E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5C8: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B0FC1: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA127: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 96 bytes in 1 blocks are possibly lost in loss record 4,838 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0C9C8F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CA36E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5C8: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0BA94F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA131: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 96 bytes in 1 blocks are possibly lost in loss record 4,839 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0C9C8F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CA36E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE5C8: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B57EB: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA136: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 132 bytes in 1 blocks are possibly lost in loss record 4,887 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CB294: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE659: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B0F5E: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA127: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038==
==3858038== 132 bytes in 1 blocks are possibly lost in loss record 4,888 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CB294: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE659: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B0FC1: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA127: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038==
==3858038== 148 bytes in 1 blocks are possibly lost in loss record 4,894 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CB09A: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE659: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0BA94F: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA131: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038==
==3858038== 148 bytes in 1 blocks are possibly lost in loss record 4,895 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x1717B9B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0CB09A: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE659: g_type_register_fundamental (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0B57EB: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA136: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038==
==3858038== 184 bytes in 1 blocks are possibly lost in loss record 5,398 of 7,159
==3858038== at 0x483CCE8: realloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:834)
==3858038== by 0x1717BA0F: g_realloc (in /usr/lib64/libglib-2.0.so.0.6400.6)
==3858038== by 0x1C0C9C04: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0CE87C: g_type_register_static (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0BC612: g_param_type_register_static (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0BF0DA: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x1C0AA13B: ??? (in /usr/lib64/libgobject-2.0.so.0.6400.6)
==3858038== by 0x40117B1: call_init.part.0 (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40118C0: _dl_init (in /usr/lib64/ld-2.31.so)
==3858038== by 0x55511B4: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4015957: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 624 bytes in 1 blocks are possibly lost in loss record 5,592 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x4013CAC: _dl_resize_dtv (in /usr/lib64/ld-2.31.so)
==3858038== by 0x40146ED: _dl_update_slotinfo (in /usr/lib64/ld-2.31.so)
==3858038== by 0x4015D52: dl_open_worker (in /usr/lib64/ld-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x401517D: _dl_open (in /usr/lib64/ld-2.31.so)
==3858038== by 0x4EBA39B: dlopen_doit (in /usr/lib64/libdl-2.31.so)
==3858038== by 0x5551157: _dl_catch_exception (in /usr/lib64/libc-2.31.so)
==3858038== by 0x5551222: _dl_catch_error (in /usr/lib64/libc-2.31.so)
==3858038== by 0x4EBABD8: _dlerror_run (in /usr/lib64/libdl-2.31.so)
==3858038== by 0x4EBA427: dlopen@@GLIBC_2.2.5 (in /usr/lib64/libdl-2.31.so)
==3858038== by 0x41A4A3: AddDLL (svn/R-devel/src/main/Rdynload.c:589)
==3858038==
==3858038== 624 bytes in 1 blocks are possibly lost in loss record 5,593 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x401456A: _dl_allocate_tls (in /usr/lib64/ld-2.31.so)
==3858038== by 0x53FA12E: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.31.so)
==3858038== by 0x53C942A: ??? (in /usr/lib64/libgomp.so.1.0.0)
==3858038== by 0x53C0F40: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==3858038== by 0x16E4182C: ??? (in /usr/lib64/libMagickCore-6.Q16.so.6.0.0)
==3858038== by 0x16E42EB5: ??? (in /usr/lib64/libMagickCore-6.Q16.so.6.0.0)
==3858038== by 0x16E229E9: ??? (in /usr/lib64/libMagickCore-6.Q16.so.6.0.0)
==3858038== by 0x16E45E1E: ??? (in /usr/lib64/libMagickCore-6.Q16.so.6.0.0)
==3858038== by 0x318989DC: ??? (in /usr/lib64/ImageMagick-6.9.11/modules-Q16/coders/png.so)
==3858038== by 0x3189A85A: ??? (in /usr/lib64/ImageMagick-6.9.11/modules-Q16/coders/png.so)
==3858038== by 0x16E6FCC2: ReadImage (in /usr/lib64/libMagickCore-6.Q16.so.6.0.0)
==3858038==
==3858038== 624 bytes in 1 blocks are possibly lost in loss record 5,594 of 7,159
==3858038== at 0x483CAE9: calloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:760)
==3858038== by 0x401456A: _dl_allocate_tls (in /usr/lib64/ld-2.31.so)
==3858038== by 0x53FA12E: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.31.so)
==3858038== by 0x19FB2B2C: ??? (in /usr/lib64/libtbb.so.2)
==3858038== by 0x19FB2E26: ??? (in /usr/lib64/libtbb.so.2)
==3858038== by 0x19FB2ECC: ??? (in /usr/lib64/libtbb.so.2)
==3858038== by 0x53F9431: start_thread (in /usr/lib64/libpthread-2.31.so)
==3858038== by 0x5515912: clone (in /usr/lib64/libc-2.31.so)
==3858038==
==3858038== 804 (160 direct, 644 indirect) bytes in 1 blocks are definitely lost in loss record 5,631 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B59F3B: textlinedetector_wordsegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:83)
==3858038== by 0x17B39FC5: _image_textlinedetector_textlinedetector_wordsegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:163)
==3858038== by 0x49CEE3: R_doDotCall (svn/R-devel/src/main/dotcode.c:607)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038== by 0x4F26C3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1823)
==3858038== by 0x4DF55D: bcEval (svn/R-devel/src/main/eval.c:7083)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038==
==3858038== 16,612 (216 direct, 16,396 indirect) bytes in 3 blocks are definitely lost in loss record 6,634 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B3563A: LineSegmentation::getInitialLines() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:151)
==3858038== by 0x17B3597A: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:14)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038== by 0x4F26C3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1823)
==3858038== by 0x4DF55D: bcEval (svn/R-devel/src/main/eval.c:7083)
==3858038==
==3858038== 32,768 bytes in 4 blocks are possibly lost in loss record 6,859 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B37AEA: allocate (/usr/include/c++/10/ext/new_allocator.h:115)
==3858038== by 0x17B37AEA: allocate (/usr/include/c++/10/bits/alloc_traits.h:460)
==3858038== by 0x17B37AEA: _M_allocate (/usr/include/c++/10/bits/stl_vector.h:346)
==3858038== by 0x17B37AEA: void std::vector<cv::Point_<int>, std::allocator<cv::Point_<int> > >::_M_realloc_insert<cv::Point_<int> >(__gnu_cxx::__normal_iterator<cv::Point_<int>*, std::vector<cv::Point_<int>, std::allocator<cv::Point_<int> > > >, cv::Point_<int>&&) (/usr/include/c++/10/bits/vector.tcc:440)
==3858038== by 0x17B34A3D: emplace_back<cv::Point_<int> > (/usr/include/c++/10/bits/vector.tcc:121)
==3858038== by 0x17B34A3D: push_back (/usr/include/c++/10/bits/stl_vector.h:1204)
==3858038== by 0x17B34A3D: Line::generateInitialPoints(int, int, int, std::map<int, Valley*, std::less<int>, std::allocator<std::pair<int const, Valley*> > >) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:540)
==3858038== by 0x17B35695: LineSegmentation::getInitialLines() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:153)
==3858038== by 0x17B3597A: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:14)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038==
==3858038== 144,373 bytes in 1 blocks are possibly lost in loss record 7,083 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D85816: ??? (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x17B2E9C3: operator= (/usr/include/opencv4/opencv2/core/mat.inl.hpp:3358)
==3858038== by 0x17B2E9C3: Region::updateRegion(cv::Mat&, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:562)
==3858038== by 0x17B34B98: LineSegmentation::generateRegions() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:194)
==3858038== by 0x17B359A6: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:19)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038==
==3858038== 234,261 (464 direct, 233,797 indirect) bytes in 2 blocks are definitely lost in loss record 7,109 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B34B77: LineSegmentation::generateRegions() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:193)
==3858038== by 0x17B35996: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:17)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038== by 0x4F26C3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1823)
==3858038== by 0x4DF55D: bcEval (svn/R-devel/src/main/eval.c:7083)
==3858038==
==3858038== 267,037 bytes in 2 blocks are possibly lost in loss record 7,112 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D85816: ??? (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x17B2E9C3: operator= (/usr/include/opencv4/opencv2/core/mat.inl.hpp:3358)
==3858038== by 0x17B2E9C3: Region::updateRegion(cv::Mat&, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:562)
==3858038== by 0x17B34C7F: LineSegmentation::generateRegions() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:207)
==3858038== by 0x17B359A6: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:19)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038==
==3858038== 1,903,341 (4,176 direct, 1,899,165 indirect) bytes in 18 blocks are definitely lost in loss record 7,136 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B34C5C: LineSegmentation::generateRegions() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:206)
==3858038== by 0x17B35996: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:17)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038== by 0x4F26C3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1823)
==3858038== by 0x4DF55D: bcEval (svn/R-devel/src/main/eval.c:7083)
==3858038==
==3858038== 3,132,072 bytes in 1 blocks are possibly lost in loss record 7,139 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB0643: cv::_OutputArray::create(cv::Size_<int>, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x198F7C8B: cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int) (in /usr/lib64/libopencv_imgproc.so.4.2.0)
==3858038== by 0x17B2AC01: Binarization::getEdge(cv::Mat) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:317)
==3858038== by 0x17B2B7C2: Binarization::lightDistribution(cv::Mat&) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:208)
==3858038== by 0x17B2D132: Binarization::binarize(cv::Mat, cv::Mat&, bool, int) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:15)
==3858038== by 0x17B59BC8: textlinedetector_binarization(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:38)
==3858038== by 0x17B3A4A6: _image_textlinedetector_textlinedetector_binarization (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:133)
==3858038== by 0x49CEFF: R_doDotCall (svn/R-devel/src/main/dotcode.c:604)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038==
==3858038== 5,108,072 bytes in 1 blocks are possibly lost in loss record 7,146 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB0643: cv::_OutputArray::create(cv::Size_<int>, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19CA49F9: cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19CAFB14: cv::normalize(cv::_InputArray const&, cv::_InputOutputArray const&, double, double, int, int, cv::_InputArray const&) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x17B28D7E: Binarization::getCEI(cv::Mat) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:288)
==3858038== by 0x17B2B715: Binarization::lightDistribution(cv::Mat&) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:207)
==3858038== by 0x17B2D132: Binarization::binarize(cv::Mat, cv::Mat&, bool, int) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:15)
==3858038== by 0x17B59BC8: textlinedetector_binarization(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:38)
==3858038== by 0x17B3A4A6: _image_textlinedetector_textlinedetector_binarization (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:133)
==3858038== by 0x49CEFF: R_doDotCall (svn/R-devel/src/main/dotcode.c:604)
==3858038==
==3858038== 5,108,072 bytes in 1 blocks are possibly lost in loss record 7,147 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB0643: cv::_OutputArray::create(cv::Size_<int>, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19CA49F9: cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D6C589: ??? (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x17B29AB0: operator cv::Mat (/usr/include/opencv4/opencv2/core/mat.inl.hpp:3426)
==3858038== by 0x17B29AB0: Binarization::scale(cv::Mat) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:335)
==3858038== by 0x17B2A8F8: Binarization::getEdge(cv::Mat) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:316)
==3858038== by 0x17B2B7C2: Binarization::lightDistribution(cv::Mat&) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:208)
==3858038== by 0x17B2D132: Binarization::binarize(cv::Mat, cv::Mat&, bool, int) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:15)
==3858038== by 0x17B59BC8: textlinedetector_binarization(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:38)
==3858038== by 0x17B3A4A6: _image_textlinedetector_textlinedetector_binarization (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:133)
==3858038==
==3858038== 5,108,072 bytes in 1 blocks are possibly lost in loss record 7,148 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB0643: cv::_OutputArray::create(cv::Size_<int>, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x1987DD5D: ??? (in /usr/lib64/libopencv_imgproc.so.4.2.0)
==3858038== by 0x1987E7BC: cv::erode(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Point_<int>, int, int, cv::Scalar_<double> const&) (in /usr/lib64/libopencv_imgproc.so.4.2.0)
==3858038== by 0x17B297BB: Binarization::getTLI(cv::Mat) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:327)
==3858038== by 0x17B2B872: Binarization::lightDistribution(cv::Mat&) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:209)
==3858038== by 0x17B2D132: Binarization::binarize(cv::Mat, cv::Mat&, bool, int) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:15)
==3858038== by 0x17B59BC8: textlinedetector_binarization(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:38)
==3858038== by 0x17B3A4A6: _image_textlinedetector_textlinedetector_binarization (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:133)
==3858038== by 0x49CEFF: R_doDotCall (svn/R-devel/src/main/dotcode.c:604)
==3858038==
==3858038== 5,108,072 bytes in 1 blocks are possibly lost in loss record 7,149 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB0643: cv::_OutputArray::create(cv::Size_<int>, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x197DF252: cv::filter2D(cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&, cv::Point_<int>, double, int) (in /usr/lib64/libopencv_imgproc.so.4.2.0)
==3858038== by 0x17B2C438: Binarization::lightDistribution(cv::Mat&) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:247)
==3858038== by 0x17B2D132: Binarization::binarize(cv::Mat, cv::Mat&, bool, int) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:15)
==3858038== by 0x17B59BC8: textlinedetector_binarization(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:38)
==3858038== by 0x17B3A4A6: _image_textlinedetector_textlinedetector_binarization (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:133)
==3858038== by 0x49CEFF: R_doDotCall (svn/R-devel/src/main/dotcode.c:604)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038==
==3858038== 6,180,144 bytes in 2 blocks are possibly lost in loss record 7,152 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB0643: cv::_OutputArray::create(cv::Size_<int>, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x197311D4: ??? (in /usr/lib64/libopencv_imgproc.so.4.2.0)
==3858038== by 0x1970427D: cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int) (in /usr/lib64/libopencv_imgproc.so.4.2.0)
==3858038== by 0x17B32CDD: LineSegmentation::getContours() (/usr/include/opencv4/opencv2/core/mat.inl.hpp:88)
==3858038== by 0x17B3596A: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:12)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038==
==3858038== 6,537,030 (96 direct, 6,536,934 indirect) bytes in 2 blocks are definitely lost in loss record 7,153 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B342EC: allocate (/usr/include/c++/10/ext/new_allocator.h:115)
==3858038== by 0x17B342EC: allocate (/usr/include/c++/10/bits/alloc_traits.h:460)
==3858038== by 0x17B342EC: _M_get_node (/usr/include/c++/10/bits/stl_tree.h:584)
==3858038== by 0x17B342EC: _M_create_node<const std::piecewise_construct_t&, std::tuple<int const&>, std::tuple<> > (/usr/include/c++/10/bits/stl_tree.h:634)
==3858038== by 0x17B342EC: std::_Rb_tree_iterator<std::pair<int const, Valley*> > std::_Rb_tree<int, std::pair<int const, Valley*>, std::_Select1st<std::pair<int const, Valley*> >, std::less<int>, std::allocator<std::pair<int const, Valley*> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<int const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<int const, Valley*> >, std::piecewise_construct_t const&, std::tuple<int const&>&&, std::tuple<>&&) [clone .isra.0] (/usr/include/c++/10/bits/stl_tree.h:2461)
==3858038== by 0x17B353A1: operator[] (/usr/include/c++/10/bits/stl_map.h:501)
==3858038== by 0x17B353A1: Chunk::findPeaksValleys(std::map<int, Valley*, std::less<int>, std::allocator<std::pair<int const, Valley*> > >&) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:494)
==3858038== by 0x17B3559C: LineSegmentation::getInitialLines() (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:136)
==3858038== by 0x17B3597A: LineSegmentation::segment(cv::Mat&, std::vector<cv::Mat, std::allocator<cv::Mat> >&, int, int) (packages/tests-vg/image.textlinedetector/src/LineSegmentation.cpp:14)
==3858038== by 0x17B5AD34: textlinedetector_linesegmentation(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, int, int, int, int, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:50)
==3858038== by 0x17B39D62: _image_textlinedetector_textlinedetector_linesegmentation (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:149)
==3858038== by 0x49CEA3: R_doDotCall (svn/R-devel/src/main/dotcode.c:614)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038==
==3858038== 8,240,144 bytes in 2 blocks are possibly lost in loss record 7,156 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19DB0643: cv::_OutputArray::create(cv::Size_<int>, int, int, bool, cv::_OutputArray::DepthMask) const (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x198F7C8B: cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int) (in /usr/lib64/libopencv_imgproc.so.4.2.0)
==3858038== by 0x17B28DE9: Binarization::getCEI(cv::Mat) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:289)
==3858038== by 0x17B2B715: Binarization::lightDistribution(cv::Mat&) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:207)
==3858038== by 0x17B2D132: Binarization::binarize(cv::Mat, cv::Mat&, bool, int) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:15)
==3858038== by 0x17B59BC8: textlinedetector_binarization(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:38)
==3858038== by 0x17B3A4A6: _image_textlinedetector_textlinedetector_binarization (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:133)
==3858038== by 0x49CEFF: R_doDotCall (svn/R-devel/src/main/dotcode.c:604)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038==
==3858038== 8,240,144 bytes in 2 blocks are possibly lost in loss record 7,157 of 7,159
==3858038== at 0x483A809: malloc (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:307)
==3858038== by 0x19C4DEF8: cv::fastMalloc(unsigned long) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D5DFC8: cv::Mat::create(int, int const*, int) (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x19D85816: ??? (in /usr/lib64/libopencv_core.so.4.2.0)
==3858038== by 0x17B28FBD: operator= (/usr/include/opencv4/opencv2/core/mat.inl.hpp:3358)
==3858038== by 0x17B28FBD: Binarization::getTLI(cv::Mat) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:321)
==3858038== by 0x17B2B872: Binarization::lightDistribution(cv::Mat&) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:209)
==3858038== by 0x17B2D132: Binarization::binarize(cv::Mat, cv::Mat&, bool, int) (packages/tests-vg/image.textlinedetector/src/Binarization.cpp:15)
==3858038== by 0x17B59BC8: textlinedetector_binarization(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:38)
==3858038== by 0x17B3A4A6: _image_textlinedetector_textlinedetector_binarization (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:133)
==3858038== by 0x49CEFF: R_doDotCall (svn/R-devel/src/main/dotcode.c:604)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038==
==3858038== 17,639,704 (1,552 direct, 17,638,152 indirect) bytes in 2 blocks are definitely lost in loss record 7,159 of 7,159
==3858038== at 0x483AE7D: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.16.1/coregrind/m_replacemalloc/vg_replace_malloc.c:342)
==3858038== by 0x17B59AFF: textlinedetector_binarization(Rcpp::XPtr<cv::Mat, Rcpp::PreserveStorage, &(finalize_mat(cv::Mat*)), true>, bool, int) (packages/tests-vg/image.textlinedetector/src/rcpp-textline.cpp:36)
==3858038== by 0x17B3A4A6: _image_textlinedetector_textlinedetector_binarization (packages/tests-vg/image.textlinedetector/src/RcppExports.cpp:133)
==3858038== by 0x49CEFF: R_doDotCall (svn/R-devel/src/main/dotcode.c:604)
==3858038== by 0x49D3E3: do_dotcall (svn/R-devel/src/main/dotcode.c:1281)
==3858038== by 0x4D34A6: bcEval (svn/R-devel/src/main/eval.c:7115)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038== by 0x4F26C3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1823)
==3858038== by 0x4DF55D: bcEval (svn/R-devel/src/main/eval.c:7083)
==3858038== by 0x4EFFB7: Rf_eval (svn/R-devel/src/main/eval.c:727)
==3858038== by 0x4F19CD: R_execClosure (svn/R-devel/src/main/eval.c:1897)
==3858038==
==3858038== LEAK SUMMARY:
==3858038== definitely lost: 6,665 bytes in 29 blocks
==3858038== indirectly lost: 26,325,088 bytes in 462 blocks
==3858038== possibly lost: 46,672,370 bytes in 41 blocks
==3858038== still reachable: 87,423,550 bytes in 23,006 blocks
==3858038== of which reachable via heuristic:
==3858038== newarray : 1,536 bytes in 16 blocks
==3858038== suppressed: 0 bytes in 0 blocks
==3858038== Reachable blocks (those to which a pointer was found) are not shown.
==3858038== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==3858038==
==3858038== For lists of detected and suppressed errors, rerun with: -s
==3858038== ERROR SUMMARY: 85 errors from 42 contexts (suppressed: 0 from 0)
M1Mac
* installing *source* package ‘image.textlinedetector’ ...
** package ‘image.textlinedetector’ successfully unpacked and MD5 sums checked
** using staged installation
This is pkg-config 0.28
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local
Using PKG_LIBS=-L/usr/local/lib -lopencv_dnn -lopencv_gapi -lopencv_highgui -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_video -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_videoio -lopencv_imgcodecs -lopencv_imgproc -lopencv_core
** libs
rm -f image.textlinedetector.so Binarization.o LineSegmentation.o RcppExports.o Scanner.o WordSegmentation.o base-extra.o base.o rcpp-linelocalization.o rcpp-textline.o sieve.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c Binarization.cpp -o Binarization.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c LineSegmentation.cpp -o LineSegmentation.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c Scanner.cpp -o Scanner.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c WordSegmentation.cpp -o WordSegmentation.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c base-extra.cpp -o base-extra.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c base.cpp -o base.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c rcpp-linelocalization.cpp -o rcpp-linelocalization.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c rcpp-textline.cpp -o rcpp-textline.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include/opencv4 -D_DATA_PREFIX=/usr/local -I'/Users/ripley/R/Library/Rcpp/include' -I/usr/local/include -fPIC -g -O2 -c sieve.cpp -o sieve.o
clang++ -target arm64-apple-macos11 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Users/ripley/R/R-devel/lib -L/usr/local/lib -o image.textlinedetector.so Binarization.o LineSegmentation.o RcppExports.o Scanner.o WordSegmentation.o base-extra.o base.o rcpp-linelocalization.o rcpp-textline.o sieve.o -L/usr/local/lib -lopencv_dnn -lopencv_gapi -lopencv_highgui -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_video -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_videoio -lopencv_imgcodecs -lopencv_imgproc -lopencv_core -L/Users/ripley/R/R-devel/lib -lR -Wl,-framework -Wl,CoreFoundation
installing to /Users/ripley/R/packages/tests-devel/image.textlinedetector.Rcheck/00LOCK-image.textlinedetector/00new/image.textlinedetector/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘image.textlinedetector’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/ripley/R/packages/tests-devel/image.textlinedetector.Rcheck/00LOCK-image.textlinedetector/00new/image.textlinedetector/libs/image.textlinedetector.so':
dlopen(/Users/ripley/R/packages/tests-devel/image.textlinedetector.Rcheck/00LOCK-image.textlinedetector/00new/image.textlinedetector/libs/image.textlinedetector.so, 6): Symbol not found: ___itt_api_version_ptr__3_0
Referenced from: /Users/ripley/R/packages/tests-devel/image.textlinedetector.Rcheck/00LOCK-image.textlinedetector/00new/image.textlinedetector/libs/image.textlinedetector.so
Expected in: flat namespace
in /Users/ripley/R/packages/tests-devel/image.textlinedetector.Rcheck/00LOCK-image.textlinedetector/00new/image.textlinedetector/libs/image.textlinedetector.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/ripley/R/packages/tests-devel/image.textlinedetector.Rcheck/image.textlinedetector’
using log directory ‘/srv/hornik/tmp/CRAN/image.textlinedetector.Rcheck’
* using R Under development (unstable) (2021-01-14 r79827)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* checking for file ‘image.textlinedetector/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘image.textlinedetector’ version ‘0.1.3’
* package encoding: UTF-8
* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Jan Wijffels <jan.wijffels@vub.be>’
Found the following (possibly) invalid DOIs:
DOI: 10.1117/12.704538
From: DESCRIPTION
Status: Internal Server Error
Message: 500
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking serialization versions ... OK
* checking whether package ‘image.textlinedetector’ can be installed ... [62s/62s] OK
* checking package directory ... OK
* checking for future file timestamps ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... NOTE
‘configure’: ‘env bash’ is not portable as bash need not be installed
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [4s/4s] OK
* checking Rd files ... [0s/0s] OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking line endings in shell scripts ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking line endings in Makefiles ... OK
* checking compilation flags in Makevars ... OK
* checking for GNU extensions in Makefiles ... OK
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking use of PKG_*FLAGS in Makefiles ... OK
* checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
* checking pragmas in C/C++ headers and code ... OK
* checking compilation flags used ... OK
* checking compiled code ... OK
* checking examples ... [8s/6s] OK
* checking PDF version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* DONE
Status: 2 NOTEs
Current CRAN status: NOTE: 6, OK: 4
See: <https://CRAN.R-project.org/web/checks/check_results_image.textlinedetector.html>
Additional issues:
valgrind <https://www.stats.ox.ac.uk/pub/bdr/memtests/valgrind/image.textlinedetector>
Version: 0.1.2
Check: top-level files, Result: NOTE
‘configure’: ‘env bash’ is not portable as bash need not be installed
See: <https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/image.textlinedetector-00check.html>
Version: 0.1.2
Check: installed package size, Result: NOTE
installed size is 26.2Mb
sub-directories of 1Mb or more:
libs 15.7Mb
share 9.7Mb
See: <https://www.r-project.org/nosvn/R.check/r-devel-windows-ix86+x86_64/image.textlinedetector-00check.html>,
<https://www.r-project.org/nosvn/R.check/r-release-macos-x86_64/image.textlinedetector-00check.html>,
<https://www.r-project.org/nosvn/R.check/r-release-windows-ix86+x86_64/image.textlinedetector-00check.html>,
<https://www.r-project.org/nosvn/R.check/r-oldrel-macos-x86_64/image.textlinedetector-00check.html>,
<https://www.r-project.org/nosvn/R.check/r-oldrel-windows-ix86+x86_64/image.textlinedetector-00check.html>
Fedora: r-devel-linux-x86_64-fedora-clang