Skip to content

panics in failure reporting #7090

Closed
Closed

Description

@imsodin

https://sentry.syncthing.net/syncthing/syncthing/issues/4783

panic: interface conversion: interface {} is nil, not string

github.com/syncthing/syncthing/lib/ur/failurereporting.go in serve at line 97

    			}
    			url = opts.CRURL + "/failure"
    		case e := <-h.evChan:
    			descr := e.Data.(string)
    			if stat, ok := h.buf[descr]; ok {
    				stat.last = e.Time
    				stat.count++

github.com/syncthing/syncthing/lib/util/utils.go in Serve at line 300
github.com/thejerf/[email protected]+incompatible/supervisor.go in func1 at line 600

The channel is closed when unsubscribing, thus we receive from it. The channel was supposed to be set to nil on unsubscribe, but that doesn't happen.

Activity

  1. added
    bug
    on Nov 3, 2020
  2. self-assigned this
    on Nov 3, 2020
  3. added 2 commits that reference this issue on Nov 3, 2020
    694d07e
    d1fef0d
  4. changed the title [-]interface conversion panic when disabling failure reporting[/-] [+]panics in failure reporting[/+] on Nov 3, 2020
  5. imsodin commented on Nov 3, 2020

    @imsodin
    MemberAuthor
  6. added this to the v1.11.1 milestone on Nov 3, 2020
  7. added 4 commits that reference this issue on Nov 3, 2020
    2b9cef3
    c206fbd
    cdf06b8
    fcd80c1
  8. added
    frozen-due-to-age
    on Nov 4, 2021
  9. locked and limited conversation to collaborators on Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfrozen-due-to-age

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions