Skip to content

Compiler panic: invalid memory address or nil pointer dereference in v2builder #2117

@foozio

Description

@foozio

Description:\nEncountered a compiler panic when running encore run on a Go application with multiple services.\n\nError Message:\nruntime error: invalid memory address or nil pointer dereference\n\nStack Trace:\n\n╭─[Stack Trace]\n├─▶ v2builder.BuilderImpl.Parse.func1.1 encr.dev/v2/v2builder/v2builder.go:51\n├─▶ pkginfo.(*fileNameResolver).processImports encr.dev/v2/internals/pkginfo/names.go:185\n├─▶ pkginfo.resolveFileNames encr.dev/v2/internals/pkginfo/names.go:139\n├─▶ pkginfo.(*File).Names.func1 encr.dev/v2/internals/pkginfo/types.go:119\n├─▶ sync.(*Once).doSlow sync/once.go:78\n├─▶ sync.(*Once).Do sync/once.go:69\n╰─[... remaining frames omitted ...]\n\n\nEncore Version: v1.50.6\n\nSteps to Reproduce:\n1. Create a Go app with multiple services (auth, catalog, payments, etc.)\n2. Run encore run\n3. Compiler panics with the above error.\n\nExpected Behavior:\nCompiler should handle the code without panicking.\n\nAdditional Context:\nThe application is a PPV VOD platform with services for authentication, video catalog, payments, streaming, analytics, and worker. The panic occurs during the building of the application graph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions