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

raf format causes crash, quickraw panic #560

Open
Stoppedpuma opened this issue Dec 18, 2024 · 2 comments
Open

raf format causes crash, quickraw panic #560

Stoppedpuma opened this issue Dec 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Stoppedpuma
Copy link
Collaborator

Test file can be found here.

thread '<unnamed>' panicked at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/quickraw-0.1.6/src/raw/renderer.rs:60:58:
not implemented
stack backtrace:
   0:     0x55da206f6294 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h7767b02c5430d02b
   1:     0x55da1fdcd7b3 - core::fmt::write::hd9cf23088539bf85
   2:     0x55da206b5c72 - std::io::Write::write_fmt::h516df85bf7181425
   3:     0x55da206f76e2 - std::sys::backtrace::BacktraceLock::print::h5907c3622e037863
   4:     0x55da206f7542 - std::panicking::default_hook::{{closure}}::h13cd352e0714d74b
   5:     0x55da206f7c14 - std::panicking::rust_panic_with_hook::ha12d21b564771d78
   6:     0x55da206f7785 - std::panicking::begin_panic_handler::{{closure}}::h29f91f01f78dfedc
   7:     0x55da206f7719 - std::sys::backtrace::__rust_end_short_backtrace::h1e39edc6648a642b
   8:     0x55da206f770e - rust_begin_unwind
   9:     0x55da1fdcb8df - core::panicking::panic_fmt::hea12f2402e677eaa
  10:     0x55da1fdcd444 - core::panicking::panic::h1582cd2b219d28d1
  11:     0x55da20353c56 - quickraw::export::Export::export_image_data::h9a32d84f5864e212
  12:     0x55da1fc4d468 - oculante::image_loader::load_raw::h6707aa610581fe8e
  13:     0x55da1fc40754 - oculante::image_loader::open_image::h840fa31c209bf6e5
  14:     0x55da1fa6c2c7 - std::sys::backtrace::__rust_begin_short_backtrace::h77549a260b7311fc
  15:     0x55da1fa9f09b - core::ops::function::FnOnce::call_once{{vtable.shim}}::h42f95e06196e431d
  16:     0x55da206f996b - std::sys::pal::unix::thread::Thread::new::thread_start::hbed294d48a38d6d6
  17:     0x734cd94a339d - <unknown>
  18:     0x734cd952849c - <unknown>
  19:                0x0 - <unknown>
fish: Job 1, 'oculante raw-stairway.raf' terminated by signal SIGABRT (Abort)
@Stoppedpuma Stoppedpuma added the bug Something isn't working label Dec 18, 2024
@woelper woelper changed the title raf format causes crash, quickraw panick raf format causes crash, quickraw panic Dec 19, 2024
@woelper
Copy link
Owner

woelper commented Dec 19, 2024

This looks like it is directly coming from quickraw:

quickraw-0.1.6/src/raw/renderer.rs:60:58:
not implemented

I think this should be reported upstream. If you want to be sure, I've made a repo here which you can fork and test in isolation:
https://github.com/woelper/dng-load-error

@Stoppedpuma
Copy link
Collaborator Author

This seems to be a issue with quickraw. I'm guessing that it's due to an unsupported shooting mode, but it probably shouldn't flatout throw a panic and crash. Is this the same library that caused issues with dng being read as tiff? Because I'm able to reproduce that behaviour on the repo you linked with the file linked in the issue. I would suggest looking into rawloader to see if it can handle the majority of formats found in quickraw as a replacement (or maybe to be ran side-by-side and exclude those from quickraw which don't have complete support but do in rawloader) since quickraw doesn't seem to be maintained? At least actively that is. I'll report upstream and see if I can manage a reply as the maintainer doesn't seem to have been on GitHub in months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants