Skip to content
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

Assertion failed #6

Closed
TorHou opened this issue Oct 22, 2021 · 9 comments
Closed

Assertion failed #6

TorHou opened this issue Oct 22, 2021 · 9 comments

Comments

@TorHou
Copy link

TorHou commented Oct 22, 2021

Very nice project. I saw a working version of this program and it seems very promising. However,
I get errors when I try to compile gfaestus with RUST_BACKTRACE=full cargo build --release

error[E0277]:` `[gff::Gff3Column; 3]` is not an iterator
   --> src/gui.rs:449:18
    |
449 |             list.set_default_columns(
    |                  ^^^^^^^^^^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
    |
    = help: the trait `std::iter::Iterator` is not implemented for `[gff::Gff3Column; 3]`
    = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
    = note: required because of the requirements on the impl of `IntoIterator` for `[gff::Gff3Column; 3]`

error[E0277]: `[gff::Gff3Column; 4]` is not an iterator
   --> src/gui.rs:451:17
    |
451 |                 [Gff::SeqId, Gff::Start, Gff::End, Gff::Strand],
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |                 |
    |                 expected an implementor of trait `IntoIterator`
    |                 help: consider borrowing here: `&[Gff::SeqId, Gff::Start, Gff::End, Gff::Strand]`
    |
    = note: the trait bound `[gff::Gff3Column; 4]: IntoIterator` is not satisfied
    = note: required because of the requirements on the impl of `IntoIterator` for `[gff::Gff3Column; 4]`

error[E0277]: `[_; 0]` is not an iterator
   --> src/gui.rs:466:18
    |
466 |             list.set_default_columns([], [Bed::Chr, Bed::Start, Bed::End]);
    |                  ^^^^^^^^^^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
    |
    = help: the trait `std::iter::Iterator` is not implemented for `[_; 0]`
    = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
    = note: required because of the requirements on the impl of `IntoIterator` for `[_; 0]`

error[E0277]: `[bed::BedColumn; 3]` is not an iterator
   --> src/gui.rs:466:42
    |
466 |             list.set_default_columns([], [Bed::Chr, Bed::Start, Bed::End]);
    |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |                                          |
    |                                          expected an implementor of trait `IntoIterator`
    |                                          help: consider borrowing here: `&[Bed::Chr, Bed::Start, Bed::End]`
    |
    = note: the trait bound `[bed::BedColumn; 3]: IntoIterator` is not satisfied
    = note: required because of the requirements on the impl of `IntoIterator` for `[bed::BedColumn; 3]`

I do not know any Rust... so I don't know how to properly fix it. When I outcomment the offending lines the code compiles though

@subwaystation
Copy link

Which version of rust are you using @TorHou ?

@TorHou
Copy link
Author

TorHou commented Oct 25, 2021

Ah good point. I'm using the version in the apt repository for Ubuntu 18.04. I will try it with the 20.04 standard version.

@TorHou
Copy link
Author

TorHou commented Oct 25, 2021

I get the same issue. The rust version is 1.51.0

@subwaystation
Copy link

If possible, could you please try https://rustup.rs/ and rust version 1.55.0? Thanks!

@TorHou
Copy link
Author

TorHou commented Oct 25, 2021

Allright with version 1.56.0 it compiles. However, now I get the following problem when executing

gfaestus: vendor/src/vk_mem_alloc.h:11791: void VmaDeviceMemoryBlock::Destroy(VmaAllocator): Assertion `m_pMetadata->IsEmpty() && "Some allocations were not freed before destruction of this memory block!"' failed.

@AndreaGuarracino
Copy link

Hi @TorHou, I had the same problem. Take a look at #4 (comment), maybe it could work also for you.

@TorHou
Copy link
Author

TorHou commented Oct 25, 2021

Hi @AndreaGuarracino
I have tried it:

 export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json; export RUST_BACKTRACE=1; ./target/release/gfaestus ~/Projects/MHC/simonstools/mhcs.fa.a2fb268.4030258.792e66f.smooth.1.gfa ~/Projects/MHC/simonstools/mhcs.fa.a2fb268.4030258.792e66f.smooth.og.tsv

but the problem persists

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: -1000011001', src/main.rs:331:10
stack backtrace:
   0: rust_begin_unwind
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:517:5
   1: core::panicking::panic_fmt
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/panicking.rs:101:14
   2: core::result::unwrap_failed
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/result.rs:1617:5
   3: gfaestus::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
gfaestus: vendor/src/vk_mem_alloc.h:11791: void VmaDeviceMemoryBlock::Destroy(VmaAllocator): Assertion `m_pMetadata->IsEmpty() && "Some allocations were not freed before destruction of this memory block!"' failed.
Aborted (core dumped)

@TorHou TorHou changed the title Compilation Issue Assertion failed Oct 25, 2021
@chfi
Copy link
Owner

chfi commented Oct 26, 2021

@TorHou I merged the dev branch with master today, which includes a number of compatibility fixes, see if it works now.

If that still doesn't work, please run it with RUST_BACKTRACE=full, give gfaestus the --debug flag, and send me the log file that it saves, and the output of running vulkaninfo, thanks

@TorHou
Copy link
Author

TorHou commented Oct 27, 2021

Hi @chfi

Perfect, it works for me now. It's really neat. I am currently testing the annotation feature.

@TorHou TorHou closed this as completed Oct 27, 2021
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

4 participants