rs / jplot

iTerm2 expvar/JSON monitoring tool
MIT License
1.15k stars 38 forks source link

Cascading behavior when creating a new tab in Iterm2 while plot is running. #2

Closed matsch01 closed 6 years ago

matsch01 commented 6 years ago

If I start jplot and then create another tab in Iterm, the plot starts cascading.

jplot_issue

Any idea what's causing this?

rs commented 6 years ago

If you restart jplot when this happen, does it continue?

matsch01 commented 6 years ago

Yes

rs commented 6 years ago

Which version of iTerm do you have?

matsch01 commented 6 years ago

Build 3.1.5

rs commented 6 years ago

Can you try 3.2.20180221-nightly?

matsch01 commented 6 years ago

I tried Build 3.2.20180224-nightly. Same behavior.

rs commented 6 years ago

Can you send your "appearance" perference tab?

matsch01 commented 6 years ago

image

rs commented 6 years ago

Sorry I can't reproduce. If you have more info to share on how to reproduce, it would be helpful.

matsch01 commented 6 years ago

I can reproduce as follows:

  1. Start the following server:
package main

import (
    _ "expvar"
    "fmt"
    "log"
    "net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
    fmt.Fprintf(w, "Hi there!")
}

func main() {
    http.HandleFunc("/", handler)
    log.Fatal(http.ListenAndServe(":8080", nil))
}
  1. Open iTerm and run the following: jplot --url http://:8080/debug/vars memstats.HeapAlloc+memstats.HeapSys+memstats.HeapAlloc

  2. Open new tab in iTerm (⌘T).

  3. Go back to Tab 1 where jplot is running.

  4. You must scroll up to see the cascading behavior.

rs commented 6 years ago

This should fix your issue. Please reopen if not.

matsch01 commented 6 years ago

Perfect.