Code Monkey home page Code Monkey logo

Comments (1)

dhowlett99 avatar dhowlett99 commented on August 20, 2024

On MacOs 10.15.7 Catalina
go version go1.17.7 darwin/amd64 and tested on go version go1.18.4 darwin/amd64 same problem
github.com/rakyll/portmidi v0.0.0-20191102002215-74e95e8bc9b1

I have the same problem, I'm working on a DMX lighting controller which uses the Novation Launchpad to send Midi button events to and from my software. I've just implented a lot more flashing of buttons and as chinenual said, as you get busy the app crashes.

Any help much appreciated.


fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x7fff3324e1cc]

runtime stack:
runtime.throw({0x4589330, 0x70000b17e588})
        /usr/local/go/src/runtime/panic.go:1198 +0x71
runtime.sigpanic()
        /usr/local/go/src/runtime/signal_unix.go:719 +0x396

goroutine 52 [syscall]:
runtime.cgocall(0x4473840, 0xc00008ede8)
        /usr/local/go/src/runtime/cgocall.go:156 +0x5c fp=0xc00008edc0 sp=0xc00008ed88 pc=0x40066fc
github.com/rakyll/portmidi._Cfunc_Pm_WriteSysEx(0x8617fe0, 0x24176, 0xc000c60050)
        _cgo_gotypes.go:309 +0x4c fp=0xc00008ede8 sp=0xc00008edc0 pc=0x44016ac
github.com/rakyll/portmidi.(*Stream).WriteSysExBytes.func1(0xc00008ee48, 0x24176, {0xc000c60050, 0x44d3b80, 0xc00008ee01})
        /Users/derek/project/pkg/mod/github.com/rakyll/[email protected]/stream.go:136 +0x69 fp=0xc00008ee20 sp=0xc00008ede8 pc=0x4401f09
github.com/rakyll/portmidi.(*Stream).WriteSysExBytes(0xc000024176, 0xc00008ee88, {0xc000c60050, 0xc0000986c0, 0xc00008eed8})
        /Users/derek/project/pkg/mod/github.com/rakyll/[email protected]/stream.go:136 +0x1e fp=0xc00008ee58 sp=0xc00008ee20 pc=0x4401e3e
github.com/rakyll/launchpad/mk3.(*Launchpad).Light(0xc0000a4060, 0x1, 0x0, 0x5f, 0x0, 0x5f)
        /Users/derek/project/pkg/mod/github.com/rakyll/[email protected]/mk3/launchpad.go:107 +0xca fp=0xc00008ee98 sp=0xc00008ee58 pc=0x440294a
github.com/dhowlett99/dmxlights/pkg/common.ListenAndSendToLaunchPad(0x0, 0xc0000a4060, {0xc0000a80f0, 0xa, 0xa})
        /Users/derek/project/src/github.com/dhowlett99/dmxlights/pkg/common/common.go:771 +0x405 fp=0xc00008ef70 sp=0xc00008ee98 pc=0x44059e5
main.main.func3(0x0, 0x0, {0xc0000a80f0, 0x0, 0x0})
        /Users/derek/project/src/github.com/dhowlett99/dmxlights/dmxlights.go:221 +0x29 fp=0xc00008efa8 sp=0xc00008ef70 pc=0x446fb29
main.main·dwrap·3()
        /Users/derek/project/src/github.com/dhowlett99/dmxlights/dmxlights.go:222 +0x3e fp=0xc00008efe0 sp=0xc00008efa8 pc=0x446fabe
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00008efe8 sp=0xc00008efe0 pc=0x4066cc1
created by main.main
        /Users/derek/project/src/github.com/dhowlett99/dmxlights/dmxlights.go:220 +0x1725

from portmidi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.