Skip to content

后端意外挂掉 #7

@OhYee

Description

@OhYee
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0xc1032d]

goroutine 22 [running]:
github.com/chromedp/chromedp.initContextBrowser({0x1f0b0c8, 0xc00007ba40})
        /go/pkg/mod/github.com/chromedp/chromedp@v0.7.4/chromedp.go:253 +0xcd
github.com/chromedp/chromedp.Run({0x1f0b0c8, 0xc00007ba40}, {0xc000a89cc0, 0x2, 0x2})
        /go/pkg/mod/github.com/chromedp/chromedp@v0.7.4/chromedp.go:265 +0x36
github.com/OhYee/blotter/cron/spider.getHTMLWithJS({0xc0010fcf20, 0x1e})
        /data/blotter/cron/spider/request.go:108 +0x645
github.com/OhYee/blotter/cron/spider.Do({0xc0010fcf20, 0xc000a89e98}, 0x1)
        /data/blotter/cron/spider/spider.go:23 +0x94
github.com/OhYee/blotter/cron.spiderSite({{{0xc000e3a9f0, 0x17}, {0xc0011456f0, 0x6}}, {0xc0015df050, 0x2d}, {0xc0015df080, 0x24}, {0xc0010fcf20, 0x1e}, ...}, ...)
        /data/blotter/cron/spider.go:29 +0x23a
github.com/OhYee/blotter/cron.Spider.func1.1()
        /data/blotter/cron/spider.go:117 +0x58
github.com/OhYee/blotter/utils/goroutine_pool.(*Pool).Thread(0xc00006bcc0)
        /data/blotter/utils/goroutine_pool/pool.go:29 +0x3d
created by github.com/OhYee/blotter/utils/goroutine_pool.New
        /data/blotter/utils/goroutine_pool/pool.go:19 +0x72

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions