On Saturday, June 12, 2021 at 8:37:34 AM UTC+12 Ian Lance Taylor wrote:
> On Fri, Jun 11, 2021 at 1:32 PM Robert Schaaf <rwsc...@gmail.com> wrote: > > > > Please help, I humbly beg! > > > > First, the environment: > > > > go version go1.16.5 darwin/arm64 > > ImageMagick 7.0.11-8 Q16 arm 2021-04-17 > > macOS Big Sur, version 11.4 on Mac Mini M1, 16 GB > > > > I've run into a brick wall with Go driving the Imagemagick 7 API on a 16 > > GB M1 Mac Mini. The problem occurs when combining an image read and > > pixel extraction in a tight loop. The first two lines, which cure the > problem, > > were suggested by Justin Israel. Note: it doesn't always crash, but the > attached > > PNG fails 100% of the time. > > My understanding of what you are saying is that you have a way to > avoid the crash, which is to call runtime.LockOSThread. Is there > something wrong with that approach? What kind of answer are you > looking for? Thanks. > > Ian Some important context seems to have been omitted in this thread from the original question as it was posted in the imagick issue: https://github.com/gographics/imagick/pull/256#issuecomment-858047483 Robert said it only crashes on a Mac M1 with ImageMagick7, whereas it worked fine on a Mac amd64. And I had also tested it and found it to be working fine on Ubuntu 18.04 amd64. My suggestion of trying LockOSThread apparently fixed the crash on the M1 target. And then I suggested Robert pose the situation to golang-nuts to see if anything popped up as being specific to this newer Mac target and why it might behave differently than other targets. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/75d22cb0-124a-47fe-8dd3-89febdb94651n%40googlegroups.com.