Skip to content

One test fails on 32-bit: Error: cannot allocate vector of size 381.5 Mb #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
barracuda156 opened this issue Apr 20, 2023 · 1 comment

Comments

@barracuda156
Copy link

R version 4.2.3 (2023-03-15) -- "Shortstop Beagle"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.8.0 (32-bit)

> # MixtComp version 4.0  - july 2019
> # Copyright (C) Inria - Université de Lille - CNRS
> 
> # This program is free software: you can redistribute it and/or modify
> # it under the terms of the GNU Affero General Public License as
> # published by the Free Software Foundation, either version 3 of the
> # License, or (at your option) any later version.
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> # GNU Affero General Public License for more details.
> #
> # You should have received a copy of the GNU Affero General Public License
> # along with this program.  If not, see <https://www.gnu.org/licenses/>
> 
> 
> library(testthat)
> library(RMixtCompIO)
> 
> test_check("RMixtCompIO")
R(17741,0xa0dfb620) malloc: *** mmap(size=400003072) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(17741,0xa0dfb620) malloc: *** mmap(size=400003072) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(17741,0xa0dfb620) malloc: *** mmap(size=400003072) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
        partition
zPredict 1 2
       1 0 3
       2 3 0
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 50 ]

══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.run.R:174:3'): NegativeBinomial model works ────────────────────
Error: cannot allocate vector of size 381.5 Mb
Backtrace:
    ▆
 1. ├─testthat::expect_gte(rand.index(partition, resGen$z), 0.9) at test.run.R:174:2
 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
 3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
 4. └─RMixtCompIO:::rand.index(partition, resGen$z)

[ FAIL 1 | WARN 0 | SKIP 0 | PASS 50 ]
Error: Test failures
Execution halted
@Quentin62
Copy link
Collaborator

Also fails on r-oldrel-windows-x86_64

══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure ('test.run.R:172:3'): NegativeBinomial model works ──────────────────
     resLearn$warnLog not equal to NULL.
     Types not compatible: character is not NULL
     ── Error ('test.run.R:174:3'): NegativeBinomial model works ────────────────────
     Error in `abs(sapply(partition1, function(x) {
     x - partition1
     }))`: non-numeric argument to mathematical function
     Backtrace:
     ▆
     1. ├─testthat::expect_gte(rand.index(partition, resGen$z), 0.9) at test.run.R:174:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─RMixtCompIO:::rand.index(partition, resGen$z)
    
     [ FAIL 2 | WARN 0 | SKIP 0 | PASS 49 ]
     Error: Test failures
     Execution halted
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants