-
Notifications
You must be signed in to change notification settings - Fork 88
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
system crash when converting page to image #82
Comments
I don't see any reference to |
Hi @gen2brain , sorry for my missing code, i just updated the code |
@bao-huynh-ostv How can I test and reproduce a snippet of code that is in the image? Why do you even think go-fitz is to blame when is not even mentioned in panic, can you try to get a gdb trace? As I said, what is needed here is a small reproducible code that will crash, not the whole of your project with a screenshot of some part of the fitz code that is proven to work and is the same as included tests. |
Basically, does this code work or not for you, if not, the document you are using can possibly be useful:
|
Hi @gen2brain, i try to use those code but it still got errors related to goroutine. It can only convert successfully 2 pages
Here is the example file i used to test: |
I cannot reproduce crash with your example file and with the code I pasted above, that same code crashes for you or what? You are mentioning goroutines, you are actually trying to use goroutines for |
I used the code that you sent me above, not modify anything except the path. Can you try to reproduce on apple m1 device? |
No, I don't have or use apple devices. If you are having problems with bundled library try with the external library. |
thank you for your support, i will close the issue. |
Hi, im converting around 30 pages to jpg, size of each image around 500kb to 2mb. Some image was converted successfully but some throw errors
Below is the code, i just following the snippet
![Screen Shot 2023-05-17 at 10 12 06](https://private-user-images.githubusercontent.com/83700639/238821721-5d765e39-99e2-4005-a4bd-4101e08c38c9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MDk5MzYsIm5iZiI6MTcyMTYwOTYzNiwicGF0aCI6Ii84MzcwMDYzOS8yMzg4MjE3MjEtNWQ3NjVlMzktOTllMi00MDA1LWE0YmQtNDEwMWUwOGMzOGM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDAwNTM1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2YTRiYzI5YzMyYzA3ZGYxZjY4YzFjMDAwOTU4NDY0ZmNmNTQ0MzYzMjEzY2I1NjkyNGFkNThhOGEwZjU0NWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1tZfqQDD8TLwyPomrUcXFQ6Bubg6_64nf-1NPZelPz0)
I'm using arm64 arch to execute those code
The text was updated successfully, but these errors were encountered: