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

MontageImage returns nil MagickWond #7

Open
molaeiali opened this issue Dec 6, 2020 · 0 comments
Open

MontageImage returns nil MagickWond #7

molaeiali opened this issue Dec 6, 2020 · 0 comments

Comments

@molaeiali
Copy link

Hey, I asked yesterday on imagick project about the MontageImage gographics/imagick#250 and the answer is working for me, Today I tried to replace imagick with gmagick, the same code but instead of imagick I have gmagick everywhere

2020-12-06_09-03
As you can see in the photo, it is returning nil as mw of the montage and it causes this error:

___go_build_main: wand/magick_wand.c:10906: MagickWriteImage: Assertion `wand != (MagickWand *) NULL' failed.
SIGABRT: abort
PC=0x7f803d372615 m=3 sigcode=18446744073709551610

goroutine 0 [idle]:
runtime: unknown pc 0x7f803d372615
stack: frame={sp:0x7f80154309d0, fp:0x0} stack=[0x7f8014c31128,0x7f8015430d28)
00007f80154308d0:  0000000000000001  0000000000000000 
00007f80154308e0:  0000000000000005  0000000000000000 
00007f80154308f0:  0000000000000001  00007f803d7e71a0 
00007f8015430900:  ffffffffffffffff  0000000000000000 
00007f8015430910:  00007f803d7e71a0  000000013d3bfbda 
00007f8015430920:  00007f803d7e7508  0000000000000000 
00007f8015430930:  0000000000000000  00007f803d4f8a20 
00007f8015430940:  00000000ffffffff  0000000000000009 
00007f8015430950:  00007f803d752150  00007f803d77e000 
00007f8015430960:  00007f803d7e7508  0000000000000000 
00007f8015430970:  0000003000000002  0000000000000000 
00007f8015430980:  0000000000000000  0000000000000006 
00007f8015430990:  000000000000006f  01618f1e69aaeb00 
00007f80154309a0:  000000000000006f  00007f8015430c30 
00007f80154309b0:  000000000000006e  000000000000006e 
00007f80154309c0:  000000000000006f  00007f80118c2040 
00007f80154309d0: <0000000000000000  00007f803d3b353e 
00007f80154309e0:  00007f80fbad8000  00007f80118c2040 
00007f80154309f0:  00007f80118c20a5  00007f80118c2040 
00007f8015430a00:  00007f80118c2040  00007f80118c20ae 
00007f8015430a10:  00007f80118c216c  00007f80118c2040 
00007f8015430a20:  00007f80118c216c  0000000000000000 
00007f8015430a30:  0000000000000000  0000000000000000 
00007f8015430a40:  0000000000000000  0000000000000000 
00007f8015430a50:  fffffffe7fffffff  ffffffffffffffff 
00007f8015430a60:  ffffffffffffffff  ffffffffffffffff 
00007f8015430a70:  ffffffffffffffff  ffffffffffffffff 
00007f8015430a80:  ffffffffffffffff  ffffffffffffffff 
00007f8015430a90:  ffffffffffffffff  ffffffffffffffff 
00007f8015430aa0:  ffffffffffffffff  ffffffffffffffff 
00007f8015430ab0:  ffffffffffffffff  ffffffffffffffff 
00007f8015430ac0:  ffffffffffffffff  ffffffffffffffff 
runtime: unknown pc 0x7f803d372615
stack: frame={sp:0x7f80154309d0, fp:0x0} stack=[0x7f8014c31128,0x7f8015430d28)
00007f80154308d0:  0000000000000001  0000000000000000 
00007f80154308e0:  0000000000000005  0000000000000000 
00007f80154308f0:  0000000000000001  00007f803d7e71a0 
00007f8015430900:  ffffffffffffffff  0000000000000000 
00007f8015430910:  00007f803d7e71a0  000000013d3bfbda 
00007f8015430920:  00007f803d7e7508  0000000000000000 
00007f8015430930:  0000000000000000  00007f803d4f8a20 
00007f8015430940:  00000000ffffffff  0000000000000009 
00007f8015430950:  00007f803d752150  00007f803d77e000 
00007f8015430960:  00007f803d7e7508  0000000000000000 
00007f8015430970:  0000003000000002  0000000000000000 
00007f8015430980:  0000000000000000  0000000000000006 
00007f8015430990:  000000000000006f  01618f1e69aaeb00 
00007f80154309a0:  000000000000006f  00007f8015430c30 
00007f80154309b0:  000000000000006e  000000000000006e 
00007f80154309c0:  000000000000006f  00007f80118c2040 
00007f80154309d0: <0000000000000000  00007f803d3b353e 
00007f80154309e0:  00007f80fbad8000  00007f80118c2040 
00007f80154309f0:  00007f80118c20a5  00007f80118c2040 
00007f8015430a00:  00007f80118c2040  00007f80118c20ae 
00007f8015430a10:  00007f80118c216c  00007f80118c2040 
00007f8015430a20:  00007f80118c216c  0000000000000000 
00007f8015430a30:  0000000000000000  0000000000000000 
00007f8015430a40:  0000000000000000  0000000000000000 
00007f8015430a50:  fffffffe7fffffff  ffffffffffffffff 
00007f8015430a60:  ffffffffffffffff  ffffffffffffffff 
00007f8015430a70:  ffffffffffffffff  ffffffffffffffff 
00007f8015430a80:  ffffffffffffffff  ffffffffffffffff 
00007f8015430a90:  ffffffffffffffff  ffffffffffffffff 
00007f8015430aa0:  ffffffffffffffff  ffffffffffffffff 
00007f8015430ab0:  ffffffffffffffff  ffffffffffffffff 
00007f8015430ac0:  ffffffffffffffff  ffffffffffffffff 

goroutine 1 [syscall]:
runtime.cgocall(0x52e8f0, 0xc000044d60, 0x41d918)
        /usr/lib/go/src/runtime/cgocall.go:133 +0x5b fp=0xc000044d30 sp=0xc000044cf8 pc=0x41339b
github.com/gographics/gmagick._Cfunc_MagickWriteImage(0x0, 0x7f8011a90510, 0x0)
        _cgo_gotypes.go:5063 +0x4d fp=0xc000044d60 sp=0xc000044d30 pc=0x520f8d
github.com/gographics/gmagick.(*MagickWand).WriteImage.func2(0xc00001ae00, 0x7f8011a90510, 0x7f8011a90510)
        /home/ali/.go/pkg/mod/github.com/gographics/[email protected]/magick_wand.go:1790 +0x65 fp=0xc000044d98 sp=0xc000044d60 pc=0x522d65
github.com/gographics/gmagick.(*MagickWand).WriteImage(0xc00001ae00, 0xc00001ae20, 0x11, 0x0, 0x0)
        /home/ali/.go/pkg/mod/github.com/gographics/[email protected]/magick_wand.go:1790 +0x8c fp=0xc000044dd8 sp=0xc000044d98 pc=0x521cec
main.generateSprite(0x56c680, 0x6, 0x0, 0x0)
        /home/ali/Projects/Go/Thumbnailer/thumbnailer.go:169 +0x3f9 fp=0xc000044ed8 sp=0xc000044dd8 pc=0x52ae79
main.Start(0x56ef23, 0x12, 0x1, 0x56c680, 0x6, 0x0, 0x0, 0x0)
        /home/ali/Projects/Go/Thumbnailer/thumbnailer.go:30 +0xb7 fp=0xc000044f28 sp=0xc000044ed8 pc=0x529cd7
main.main()
        /home/ali/Projects/Go/Thumbnailer/thumbnailer.go:178 +0x5d fp=0xc000044f88 sp=0xc000044f28 pc=0x52b0bd
runtime.main()
        /usr/lib/go/src/runtime/proc.go:204 +0x209 fp=0xc000044fe0 sp=0xc000044f88 pc=0x446a29
runtime.goexit()
        /usr/lib/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc000044fe8 sp=0xc000044fe0 pc=0x4775e1

rax    0x0
rbx    0x7f8015431640
rcx    0x7f803d372615
rdx    0x0
rdi    0x2
rsi    0x7f80154309d0
rbp    0x7f803d4c6e58
rsp    0x7f80154309d0
r8     0x0
r9     0x7f80154309d0
r10    0x8
r11    0x246
r12    0x7f803d771c6b
r13    0x2a9a
r14    0x7f803d771c7e
r15    0x200
rip    0x7f803d372615
rflags 0x246
cs     0x33
fs     0x0
gs     0x0

Process finished with exit code 2
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