-
Notifications
You must be signed in to change notification settings - Fork 185
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
Magick Wand ReadImageFile() return error "The storage control block address is invalid." #229
Comments
That looks like a Windows specific error, with which I am not familiar. Does it only happen with the ReadImageFile method? Does it happen if you pass the file path directly to ReadImage? |
There are no errors in either ReadImage or ReadImageBlob. Only the ReadImageFile has errors.
|
Well yes, search results show it is windows specific. It would have something to do with the fdopen from C, used to open the file descriptor coming from the Go File https://github.com/gographics/imagick/blob/v3.3.0/imagick/magick_wand_image.go#L2822 So something about that needs to be updated. A non windows user would need to push up a development branch to trigger appveyor CI to run a test that exercises this bug. Or a windows user could fix it and submit a patch. For now you could work around it by calling the ReadImage api with the file path and let ImageMagick do all of the opening. |
I've started a branch with a test that passes in Linux, but would potentially fail with this error in windows (#231). I don't have windows available to confirm this so someone needs to test this and fix it, or I need to setup appveyor so I can try and iterate on the fix with CI |
@hailiangchen have you had a chance to test this on windows? I suppose I could try and set up windows CI soon. |
|
I've been trying to get a windows CI test running, but its proving very difficult to configure a windows build that uses cgo and linked dependencies. Iterating on this temp branch trying to get the test to pass: https://github.com/gographics/imagick/tree/ci_windows_test |
I've now got a test branch working on github action CI and reproducing the error: Will work to try and fix the issue and merge the windows CI support afterwards |
I've fixed this bug by switching from using Released v3.4.3 (im7) and v2.6.3 (im6) |
The error message returned is "The storage control block address is invalid."
Here is my code
`package main
import (
"fmt"
"os"
)
func main() {
imagick.Initialize()
defer imagick.Terminate()
}
`
Did I make a mistake
The text was updated successfully, but these errors were encountered: