{"action":"created","issue":{"url":"https://api.github.com/repos/rivo/tview/issues/148","repository_url":"https://api.github.com/repos/rivo/tview","labels_url":"https://api.github.com/repos/rivo/tview/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/rivo/tview/issues/148/comments","events_url":"https://api.github.com/repos/rivo/tview/issues/148/events","html_url":"https://github.com/rivo/tview/issues/148","id":346196422,"node_id":"MDU6SXNzdWUzNDYxOTY0MjI=","number":148,"title":"panic: tview.(*Table).Draw.func1","user":{"login":"joegrasse","id":4334144,"node_id":"MDQ6VXNlcjQzMzQxNDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4334144?v=4","gravatar_id":"","url":"https://api.github.com/users/joegrasse","html_url":"https://github.com/joegrasse","followers_url":"https://api.github.com/users/joegrasse/followers","following_url":"https://api.github.com/users/joegrasse/following{/other_user}","gists_url":"https://api.github.com/users/joegrasse/gists{/gist_id}","starred_url":"https://api.github.com/users/joegrasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joegrasse/subscriptions","organizations_url":"https://api.github.com/users/joegrasse/orgs","repos_url":"https://api.github.com/users/joegrasse/repos","events_url":"https://api.github.com/users/joegrasse/events{/privacy}","received_events_url":"https://api.github.com/users/joegrasse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-07-31T13:49:26Z","updated_at":"2018-09-05T14:55:41Z","closed_at":null,"author_association":"NONE","body":"I am getting a panic in tview. It looks like it might be in table.go line [469](https://github.com/rivo/tview/blob/6614b16d9037759065eac63d8fb3d8408e63e222/table.go#L469), but it is really hard to troubleshoot because of the way the panic is being printed.\r\n\r\n![panic](https://user-images.githubusercontent.com/4334144/43463566-7eca8cbc-949e-11e8-90e7-6653949efb94.png)\r\n\r\n(Click image for bigger view)\r\n"},"comment":{"url":"https://api.github.com/repos/rivo/tview/issues/comments/418761743","html_url":"https://github.com/rivo/tview/issues/148#issuecomment-418761743","issue_url":"https://api.github.com/repos/rivo/tview/issues/148","id":418761743,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODc2MTc0Mw==","user":{"login":"rivo","id":480930,"node_id":"MDQ6VXNlcjQ4MDkzMA==","avatar_url":"https://avatars0.githubusercontent.com/u/480930?v=4","gravatar_id":"","url":"https://api.github.com/users/rivo","html_url":"https://github.com/rivo","followers_url":"https://api.github.com/users/rivo/followers","following_url":"https://api.github.com/users/rivo/following{/other_user}","gists_url":"https://api.github.com/users/rivo/gists{/gist_id}","starred_url":"https://api.github.com/users/rivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rivo/subscriptions","organizations_url":"https://api.github.com/users/rivo/orgs","repos_url":"https://api.github.com/users/rivo/repos","events_url":"https://api.github.com/users/rivo/events{/privacy}","received_events_url":"https://api.github.com/users/rivo/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T14:55:41Z","updated_at":"2018-09-05T14:55:41Z","author_association":"OWNER","body":"Thanks. To be honest, I cannot explain this. The message is `invalid memory address or nil pointer dereference` and it happens here:\r\n\r\n```go\r\nreturn t.cells[row][column]\r\n```\r\n\r\nThe problem doesn't appear to be the slice indices as (A) I check for them and (B) the error message would be different. So `t` seems to be `nil`. But how can that be? It's provided to the function by Go and it's never modified:\r\n\r\n```go\r\nfunc (t *Table) Draw(screen tcell.Screen)\r\n```\r\n\r\nWhat I also find somewhat odd is that `Pages` calls `Grid` which calls `Pages` again. Do you have a `Pages` object in a `Grid` object which is again in a `Pages` object? (It's possible but unusual, I guess.)\r\n\r\nYou mentioned that you're not calling `Draw()` from any other goroutine.\r\n\r\nI don't want to rule out that this is actually a compiler bug. But then, I've never come across one myself in decades of programming so the likelihood of that is low.\r\n\r\nI can offer to take a look at your code. But it doesn't appear to be public so I'm not sure how we're going to do that."}}
{"actor":{"display_login":"rivo"}}