Skip to content

Strange magick_image_readpath fail on some linux CRAN tests #408

@BradyAJohnston

Description

@BradyAJohnston

I don't know if this is directly related to {magick}, but I've gotten an email from CRAN around some tests on some linux distributions failing. I can't for the life of me figure out what might be going on, as everything on local machines and GHA runners succeed. Something related to path parsing / reading is failing on a couple of CRAN linux distributions. If anyone has any tips on what might be the problem / solution, I would love to know.

CRAN test results

Details

Check Details

Version: 0.2
Check: tests
Result: ERROR
    Running ‘spelling.R’ [0s/1s]
    Running ‘testthat.R’ [1s/2s]
  Running the tests in ‘tests/testthat.R’ failed.
  Complete output:
    > library(testthat)
    > library(figpatch)
    > 
    > test_check("figpatch")
    [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
    
    ══ Failed tests ════════════════════════════════════════════════════════════════
    ── Error ('test-fig.R:2:3'): Test Reading ──────────────────────────────────────
    <Magick::ErrorMissingDelegate/C++Error/error/condition>
    Error: R: no decode delegate for this image format `' @ error/constitute.c/ReadImage/746
    Backtrace:
         ▆
      1. ├─testthat::expect_error(...) at test-fig.R:2:3
      2. │ └─testthat:::expect_condition_matching(...)
      3. │   └─testthat:::quasi_capture(...)
      4. │     ├─testthat (local) .capture(...)
      5. │     │ └─base::withCallingHandlers(...)
      6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      7. └─figpatch::fig("brokenlink")
      8.   └─magick::image_read(path = path)
      9.     ├─base::withCallingHandlers(...)
     10.     └─magick:::magick_image_readpath(path, density, depth, strip, defines)
    
    [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
    Error: Test failures
    Execution halted
Flavor: [r-devel-linux-x86_64-debian-clang](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/figpatch-00check.html)

Version: 0.2
Check: tests
Result: ERROR
    Running ‘spelling.R’ [0s/0s]
    Running ‘testthat.R’ [1s/1s]
  Running the tests in ‘tests/testthat.R’ failed.
  Complete output:
    > library(testthat)
    > library(figpatch)
    > 
    > test_check("figpatch")
    [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
    
    ══ Failed tests ════════════════════════════════════════════════════════════════
    ── Error ('test-fig.R:2:3'): Test Reading ──────────────────────────────────────
    <Magick::ErrorMissingDelegate/C++Error/error/condition>
    Error: R: no decode delegate for this image format `' @ error/constitute.c/ReadImage/746
    Backtrace:
         ▆
      1. ├─testthat::expect_error(...) at test-fig.R:2:3
      2. │ └─testthat:::expect_condition_matching(...)
      3. │   └─testthat:::quasi_capture(...)
      4. │     ├─testthat (local) .capture(...)
      5. │     │ └─base::withCallingHandlers(...)
      6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      7. └─figpatch::fig("brokenlink")
      8.   └─magick::image_read(path = path)
      9.     ├─base::withCallingHandlers(...)
     10.     └─magick:::magick_image_readpath(path, density, depth, strip, defines)
    
    [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
    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