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

SIGTRAP triggered on MacOS #422

Open
jafioti opened this issue Sep 6, 2023 · 2 comments
Open

SIGTRAP triggered on MacOS #422

jafioti opened this issue Sep 6, 2023 · 2 comments

Comments

@jafioti
Copy link
Contributor

jafioti commented Sep 6, 2023

I'm trying to summarize some text, and I keep getting the following crash error message when I run inference:

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x0000000427955d04

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [27651]

Notably this only happens after the program has been running a while, doing other things. When the same inference is ran right at the beginning of main() it works fine. I initially thought. it was running out of memory, but I can't see any spike in memory usage occuring.

It's also not a panic, but a crash, meaning the macos "quit unexpectedly" message pops up and no panic backtrace is available.

Has this happened to anyone else?

@jafioti
Copy link
Contributor Author

jafioti commented Sep 6, 2023

Quick update, we are using pdfium_render in our project, and this crash only happens when trying to run inference after we run pdfium to extract images from pdfs.

@jafioti
Copy link
Contributor Author

jafioti commented Sep 6, 2023

More specifically, if you run this line before llm inference, it will crash:

let pdfium = Pdfium::new(Pdfium::bind_to_library(
        Pdfium::pdfium_platform_library_name_at_path("/path/to/pdfium/"),
    )?);

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

1 participant