Git Product home page Git Product logo

Comments (7)

arl avatar arl commented on May 10, 2024

Hi, thank you for reporting, however I've just tried on linux/amd64 with go 1.21.5 and the default example and i can't reproduce.

Are you running on a container?
What platform?
Since the process is killed by the OS, you should be able to find more information in the system log.

from statsviz.

lyimmi avatar lyimmi commented on May 10, 2024

Sorry, I forgot to write the details.

I encountered this issue on Linux Ubuntu 20.04 linux/amd64 simply running go run . in the terminal, however if I build the project the process is not killed. (with go 1.20.7 go run works fine all the time)

I found nothing in the logs so far, still looking for some clues.

edit:
After multiple restarts, now the basic example runs ok, but in a real project its still flaky.

edit 2:
If I run my project with go run -race . the process is not killed.

from statsviz.

arl avatar arl commented on May 10, 2024

If with go build nothing happens but with go run it gets killed it looks like go run is killed.
It does seem that what's happening is caused by something on your computer.
I'd like to help but without being able to reproduce I'm not sure what I could do

when a process gets killed by the os it's either an out of memory or it did something forbidden

from statsviz.

lyimmi avatar lyimmi commented on May 10, 2024

Never seen this before.
If I leave out the statsviz.Register() call, the issue goes away...

Thank you, feel free to close the issue, just tough I share this with you.

from statsviz.

arl avatar arl commented on May 10, 2024

Thank you, feel free to close the issue, just tough I share this with you.

You did good. Thank you.
I'd really like to find ways to investigate as that's not good.
Did you check for dmesg just after that happened? The reason for a process killed should be logged somewhere.
Do you have specific ulimit settings?
Are you running inside a container?

from statsviz.

lyimmi avatar lyimmi commented on May 10, 2024

It's not running in a container, the system has default ulimit.
I tailed the dmesg while running the program and there was no new record when it was killed, checked the file afterwards as well, nothing... That is what frustrates me, there is no sign of any error in the logs.

I tried the same project on an other machine Linux Ubuntu 23.10 with go version go1.21.6 linux/amd64 and it runs without any issue.
(Updated go on the previous machine too to this version, before I left work. The issue still persisted.)

Tomorrow I'll try to figure out more, if I have time.

from statsviz.

lyimmi avatar lyimmi commented on May 10, 2024

I found the problem...

On our office computers we run Cortex Traps agents, for some reason this agent flags and kills the go run process when the project is using statviz.

I'm sorry for raising a false issue and thank you for your help.

from statsviz.

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.