Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘FLSSS-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: arbFLSSS > ### Title: Multidimensional exact subset sum in arbitrary precision and > ### magnitude > ### Aliases: arbFLSSS > > ### ** Examples > > set.seed(1) > N = 200L # Superset size. > len = 20L # Subset size. > V = sapply(1:N, function(i) # Generate a set where every "number" has at most + # 100 digits. + { + a = 0:9 + left = sample(a, size = sample(50, 1), replace = TRUE) + right = sample(a, size = sample(50, 1), replace = TRUE) + x = paste0(paste0(left, collapse = ""), ".", paste0(right, collapse = "")) + if (runif(1) < 0.5) x = paste0("-", x) # Randomly add a negative sign. + x + }) > str(V) chr [1:200] "-6016.1204495968448844198032599533986587867596295" ... > > > sol = sample(N, len) # Make a solution. > target = FLSSS::addNumStrings(V[sol]) # An unexposed helper function. > > > system.time({ + rst = FLSSS::arbFLSSS( + len, V = as.matrix(V), target, solutionNeed = 1, maxCore = 2, + tlimit = 10, ksumK = 0, verbose = TRUE) + }) Transform string input to bit streams and create flsss objects to mine.. ==2326587== ==2326587== Process terminating with default action of signal 15 (SIGTERM) ==2326587== at 0x1FD7F6E8: CharlieThreadPool::parFor(unsigned long, unsigned long, std::function, unsigned long, std::function, std::function) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/charlieThreadPool.hpp:136) ==2326587== by 0x1FDA7C02: stringMatTo64bitIntMat(Rcpp::Matrix<16, Rcpp::PreserveStorage>&, Rcpp::Vector<16, Rcpp::PreserveStorage>&, int, CharlieThreadPool&, std::vector >&, std::vector >&, std::vector >&, std::vector >&, std::vector >&, int&, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/intString2intArray.hpp:394) ==2326587== by 0x1FDAEE5D: bool makeMflsssObjs(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, int, int, CharlieThreadPool&, std::vector, std::allocator > >&, std::vector >, std::allocator > > >&, Shared&, double, std::vector >&, TriM&, KsumLookUpTable&, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/mflsssDecomp.hpp:43) ==2326587== by 0x1FDAFEF3: Rcpp::Vector<19, Rcpp::PreserveStorage> mflsssArb(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, int, CharlieThreadPool&, int, double, Rcpp::Vector<19, Rcpp::PreserveStorage>, int, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/mflsssDecomp.hpp:253) ==2326587== by 0x1FD7D8FF: arbFLSSS(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, SEXPREC*, int, int, double, int, int, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/mflsssArb.cpp:35) ==2326587== by 0x1FD196CD: _FLSSS_arbFLSSS (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/RcppExports.cpp:329) ==2326587== by 0x495D1A3: R_doDotCall (/home/hornik/src/R/src/main/dotcode.c:801) ==2326587== by 0x49A1BDC: bcEval_loop (/home/hornik/src/R/src/main/eval.c:8672) ==2326587== by 0x49A9B35: bcEval (/home/hornik/src/R/src/main/eval.c:7505) ==2326587== by 0x49A9B35: bcEval (/home/hornik/src/R/src/main/eval.c:7490) ==2326587== by 0x49A9EAA: Rf_eval (/home/hornik/src/R/src/main/eval.c:1167) ==2326587== by 0x49ABFAD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2393) ==2326587== by 0x49ACD0C: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2306) ==2326587== ==2326587== HEAP SUMMARY: ==2326587== in use at exit: 59,936,385 bytes in 12,864 blocks ==2326587== total heap usage: 35,849,462 allocs, 35,836,598 frees, 323,790,177 bytes allocated ==2326587== Examples with CPU (user + system) or elapsed time > 5s user system elapsed FLSSS 279.129 9.874 289.066 Post-processing issues found: File: FLSSS-Ex.Rout ==2326587== Memcheck, a memory error detector ==2326587== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==2326587== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info ==2326587== Command: /home/hornik/tmp/R-d-gcc-valg/bin/exec/R --vanilla ==2326587== ==2326587== ==2326587== Process terminating with default action of signal 15 (SIGTERM) ==2326587== at 0x1FD7F6E8: CharlieThreadPool::parFor(unsigned long, unsigned long, std::function, unsigned long, std::function, std::function) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/charlieThreadPool.hpp:136) ==2326587== by 0x1FDA7C02: stringMatTo64bitIntMat(Rcpp::Matrix<16, Rcpp::PreserveStorage>&, Rcpp::Vector<16, Rcpp::PreserveStorage>&, int, CharlieThreadPool&, std::vector >&, std::vector >&, std::vector >&, std::vector >&, std::vector >&, int&, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/intString2intArray.hpp:394) ==2326587== by 0x1FDAEE5D: bool makeMflsssObjs(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, int, int, CharlieThreadPool&, std::vector, std::allocator > >&, std::vector >, std::allocator > > >&, Shared&, double, std::vector >&, TriM&, KsumLookUpTable&, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/mflsssDecomp.hpp:43) ==2326587== by 0x1FDAFEF3: Rcpp::Vector<19, Rcpp::PreserveStorage> mflsssArb(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, int, CharlieThreadPool&, int, double, Rcpp::Vector<19, Rcpp::PreserveStorage>, int, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/mflsssDecomp.hpp:253) ==2326587== by 0x1FD7D8FF: arbFLSSS(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, SEXPREC*, int, int, double, int, int, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/mflsssArb.cpp:35) ==2326587== by 0x1FD196CD: _FLSSS_arbFLSSS (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/RcppExports.cpp:329) ==2326587== by 0x495D1A3: R_doDotCall (/home/hornik/src/R/src/main/dotcode.c:801) ==2326587== by 0x49A1BDC: bcEval_loop (/home/hornik/src/R/src/main/eval.c:8672) ==2326587== by 0x49A9B35: bcEval (/home/hornik/src/R/src/main/eval.c:7505) ==2326587== by 0x49A9B35: bcEval (/home/hornik/src/R/src/main/eval.c:7490) ==2326587== by 0x49A9EAA: Rf_eval (/home/hornik/src/R/src/main/eval.c:1167) ==2326587== by 0x49ABFAD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2393) ==2326587== by 0x49ACD0C: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2306) ==2326587== ==2326587== HEAP SUMMARY: ==2326587== in use at exit: 59,936,385 bytes in 12,864 blocks ==2326587== total heap usage: 35,849,462 allocs, 35,836,598 frees, 323,790,177 bytes allocated ==2326587== ==2326587== LEAK SUMMARY: ==2326587== definitely lost: 0 bytes in 0 blocks ==2326587== indirectly lost: 0 bytes in 0 blocks ==2326587== possibly lost: 16,726 bytes in 49 blocks ==2326587== still reachable: 59,919,659 bytes in 12,815 blocks ==2326587== of which reachable via heuristic: ==2326587== newarray : 98,520 bytes in 25 blocks ==2326587== suppressed: 0 bytes in 0 blocks ==2326587== Rerun with --leak-check=full to see details of leaked memory ==2326587== ==2326587== For lists of detected and suppressed errors, rerun with: -s ==2326587== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)