Hello! I have a panic message that has been drivin...
# general
s
Hello! I have a panic message that has been driving me crazy:
Copy code
panic: fatal: An assertion has failed

goroutine 51 [running]:
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)>
	/private/tmp/pulumi-20210303-16507-1fj5hzn/sdk/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assert(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assert(...)>
	/private/tmp/pulumi-20210303-16507-1fj5hzn/sdk/go/common/util/contract/assert.go:26
<http://github.com/pulumi/pulumi/pkg/v2/engine.printPropertyValue|github.com/pulumi/pulumi/pkg/v2/engine.printPropertyValue>(0xc001d10570, 0x5718b60, 0xc0022a2c30, 0x1, 0x1, 0x587150a, 0x6, 0xc001d10001)
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/engine/diff.go:511 +0x1485
<http://github.com/pulumi/pulumi/pkg/v2/engine.printAdd(0xc001d10570|github.com/pulumi/pulumi/pkg/v2/engine.printAdd(0xc001d10570>, 0x5718b60, 0xc0022a2c30, 0xc001b6f828, 0xc001d18101, 0x1, 0xc001b6f800)
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/engine/diff.go:730 +0x9f
<http://github.com/pulumi/pulumi/pkg/v2/engine.printObjectPropertyDiff(0xc001d10570|github.com/pulumi/pulumi/pkg/v2/engine.printObjectPropertyDiff(0xc001d10570>, 0xc000a90ea0, 0x8, 0x22, 0xc001d10480, 0xc001d104b0, 0xc001d104e0, 0xc001d10510, 0xc001d12b01, 0x1, ...)
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/engine/diff.go:600 +0x130
<http://github.com/pulumi/pulumi/pkg/v2/engine.GetResourceOutputsPropertiesString(0x586e7bf|github.com/pulumi/pulumi/pkg/v2/engine.GetResourceOutputsPropertiesString(0x586e7bf>, 0x4, 0xc001603d10, 0x41, 0xc0007e0720, 0x13, 0xc0019c0990, 0xc0019c0a20, 0xc0019c0ab0, 0x0, ...)
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/engine/diff.go:405 +0x3e8
<http://github.com/pulumi/pulumi/pkg/v2/backend/display.(*ProgressDisplay).printOutputs(0xc000a00780)|github.com/pulumi/pulumi/pkg/v2/backend/display.(*ProgressDisplay).printOutputs(0xc000a00780)>
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/backend/display/progress.go:901 +0x146
<http://github.com/pulumi/pulumi/pkg/v2/backend/display.(*ProgressDisplay).processEndSteps(0xc000a00780)|github.com/pulumi/pulumi/pkg/v2/backend/display.(*ProgressDisplay).processEndSteps(0xc000a00780)>
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/backend/display/progress.go:739 +0x32e
<http://github.com/pulumi/pulumi/pkg/v2/backend/display.(*ProgressDisplay).processEvents(0xc000a00780|github.com/pulumi/pulumi/pkg/v2/backend/display.(*ProgressDisplay).processEvents(0xc000a00780>, 0xc0001501e0, 0xc0015a46c0)
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/backend/display/progress.go:1199 +0x11f
<http://github.com/pulumi/pulumi/pkg/v2/backend/display.ShowProgressEvents.func1(0xc000a00780|github.com/pulumi/pulumi/pkg/v2/backend/display.ShowProgressEvents.func1(0xc000a00780>, 0xc0001501e0, 0xc0015a46c0, 0xc000e7e300)
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/backend/display/progress.go:343 +0x3f
created by <http://github.com/pulumi/pulumi/pkg/v2/backend/display.ShowProgressEvents|github.com/pulumi/pulumi/pkg/v2/backend/display.ShowProgressEvents>
	/private/tmp/pulumi-20210303-16507-1fj5hzn/pkg/backend/display/progress.go:342 +0x529
Has anybody seen anything like this before? I checked https://pulumi-community.slack.com/archives/C84L4E3N1/p1614118830150300 but it doesn’t seem related. I am not using Apply anywhere in the code
Pulumi SDK versions are:
Copy code
<http://github.com/pulumi/pulumi-azure/sdk/v3|github.com/pulumi/pulumi-azure/sdk/v3> v3.50.0
<http://github.com/pulumi/pulumi-azuread/sdk/v3|github.com/pulumi/pulumi-azuread/sdk/v3> v3.4.0
<http://github.com/pulumi/pulumi-azuredevops/sdk|github.com/pulumi/pulumi-azuredevops/sdk> v1.2.2
<http://github.com/pulumi/pulumi-random/sdk/v3|github.com/pulumi/pulumi-random/sdk/v3> v3.0.3
<http://github.com/pulumi/pulumi/sdk/v2|github.com/pulumi/pulumi/sdk/v2> v2.22.0
Ok, reading this comment helped (https://github.com/pulumi/pulumi/issues/4930#issuecomment-651942736). It was a wrong export:
defer ctx.Export(exports.SubnetID, vnet)
instead of
defer ctx.Export(exports.SubnetID, sn.ID())
.
vnet
is of course
*network.VirtualNetwork