Skip to content

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

@barracuda156

Description

@barracuda156
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions