mylg icon indicating copy to clipboard operation
mylg copied to clipboard

Panic Error

Open bacherol opened this issue 7 years ago • 12 comments

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

bacherol avatar Mar 20 '17 19:03 bacherol

@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 ....)

mehrdadrad avatar Mar 20 '17 19:03 mehrdadrad

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

bacherol avatar Mar 20 '17 19:03 bacherol

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

Thanks.

bacherol avatar Mar 20 '17 20:03 bacherol

@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 avatar Mar 20 '17 21:03 mehrdadrad

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

mehrdadrad avatar Mar 21 '17 17:03 mehrdadrad

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

FHRNet avatar May 18 '17 16:05 FHRNet

@FHRNet what's the myLG version?

mehrdadrad avatar May 18 '17 16:05 mehrdadrad

v0.2.6 on Mac. Happens on Linux too.

It’s currently working. But as I said, sometimes it works, sometimes it throws that error.

On May 18, 2017, at 6:52 PM, Mehrdad Arshad Rad [email protected] wrote:

@FHRNet https://github.com/fhrnet what's the myLG version?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mehrdadrad/mylg/issues/78#issuecomment-302469298, or mute the thread https://github.com/notifications/unsubscribe-auth/AGMs7Y3_5X4dnFuDXH7ixKEUT-hJEN3kks5r7HdagaJpZM4Mi427.

FHRNet avatar May 18 '17 17:05 FHRNet

@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.

mehrdadrad avatar May 18 '17 17:05 mehrdadrad

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

FHRNet avatar May 18 '17 17:05 FHRNet

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

mehrdadrad avatar May 18 '17 17:05 mehrdadrad

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

luckman212 avatar Jun 23 '17 21:06 luckman212