Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic Error #78

Open
bacherol opened this issue Mar 20, 2017 · 12 comments
Open

Panic Error #78

bacherol opened this issue Mar 20, 2017 · 12 comments

Comments

@bacherol
Copy link

Hello.

Anyone with this error?
Just logged in and i have error.

=================================================
_ ___
_ __ _ | | / __|
| ' \ || | |
| (_ |
|||_, |____|
|
/

             My Looking Glass
       Free Network Diagnostic Tool
              http://mylg.io

================== myLG v0.2.6 ==================
local>
local>
local> panic: runtime error: index out of range

goroutine 7 [running]:
panic(0x905420, 0xc42000c0d0)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/mehrdadrad/mylg/ns.fetchNSHosts(0x0, 0x0, 0x0)
/home/vagrant/golang/src/github.com/mehrdadrad/mylg/ns/ns.go:357 +0x98d
github.com/mehrdadrad/mylg/ns.(*Request).Init(0xc42004a770)
/home/vagrant/golang/src/github.com/mehrdadrad/mylg/ns/ns.go:99 +0x7f
created by main.init.1
/home/vagrant/golang/src/github.com/mehrdadrad/mylg/mylg.go:104 +0x125
axtelecom@laboratorio:~/pacotes$

Regards,
Leandro de Lima Camargo

@mehrdadrad
Copy link
Owner

@llcamargo i fixed it today, if you get latest code and compile you shouldn't get this error. please confirm. I'll try to make packages (mac/ubuntu ....)

@bacherol
Copy link
Author

I using MAC but i don't know how to compile. I'll search how to.
Thanks.

@bacherol
Copy link
Author

bacherol commented Mar 20, 2017

@mehrdadrad
I just ran the command:
brew install homebrew/dupes/libpcap
And works again!
Is it right?

Thanks.

@mehrdadrad
Copy link
Owner

@llcamargo that's not related. the root cause of the issue related to a CSV file that it downloads from a 3rd party website and there is a uncompleted line that myLG (not latest code) doesn't validate and causes crash. the latest code fixed also I asked the 3rd party website if they can fix it.

@mehrdadrad
Copy link
Owner

@llcamargo I'm seeing the issue fixed at CSV file (3rd party website). so it should be worked w/ old version as well.

@FHRNet
Copy link

FHRNet commented May 18, 2017

I'm seeing those exact errors quite frequently, even though the CSV file can be opened in browser with no problems.

@mehrdadrad
Copy link
Owner

@FHRNet what's the myLG version?

@FHRNet
Copy link

FHRNet commented May 18, 2017 via email

@mehrdadrad
Copy link
Owner

mehrdadrad commented May 18, 2017

@FHRNet
I see but no idea why a field that myLG expects to have is not exists for few lines at CSV file, it fixed in v0.2.7 to skip those lines but the Mac package is not available for latest version you have to compile it w/ the latest version code from github.

@FHRNet
Copy link

FHRNet commented May 18, 2017

Here's the CSV from the time it didn't work, maybe it'll help: https://expirebox.com/download/bf55d5136a1d82a50e6dac8112471f9f.html

@mehrdadrad
Copy link
Owner

@FHRNet thank for ur help but already it fixed in the new version. try to compile from latest code

@luckman212
Copy link

luckman212 commented Jun 23, 2017

I am getting the errors too. Any instructions for compiling for macOS?

edit: nevermind, I found it in the README:
Just need to have go installed. Then:

go get github.com/mehrdadrad/mylg
cd $GOPATH/src/github.com/mehrdadrad/mylg/
go build mylg.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants