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

Crashes on multiple spawn #3

Open
sidetraxaudio opened this issue Jun 10, 2023 · 1 comment
Open

Crashes on multiple spawn #3

sidetraxaudio opened this issue Jun 10, 2023 · 1 comment

Comments

@sidetraxaudio
Copy link

Amazing work. You've saved my entire project allowing me to do PDF to image processing on an isolate (windows) without relying on flutter plugins that wont work outside the main ui isolate.

The only issue is that at this point, the wrapper won't run on multiple isolates at the same time to parallel process multiple files. It crashes with 'lost connection to device'. It seems to have something to do with the DLL. Duplicating the pdfium DLL itself and creating a second identical method that points to the duplicated dll allows launching multiple isolates, however it doesn't work any other way. Effectively to get 8 threads, I'd need to have 8 copies of the same dll.

Any ideas? Thanks again for your efforts.

@insinfo
Copy link
Owner

insinfo commented Jun 13, 2023

I think you should open an issue in the dart-sdk repository and report this problem linking to this issue, because from what you are saying it seems to be a dart ffi problem, I think I also came across this problem in another circumstance but in epoca solve it in another way and I didn't focus on that if I wouldn't have opened an issue on dart-sdk

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

2 participants