Error: The terraform-provider-google_v3.66.0_x5 plugin crashed!

Hi All,
I got below error after run my code. Is there any one face this issue and how to solve?

[root@localhost Terraform_GCP]# terraform apply
â•·
│ Error: Plugin did not respond
│
│ with google_compute_firewall.fw,
│ on GCP_EC2_CENTOS.tf line 18, in resource “google_compute_firewall” “fw”:
│ 18: resource “google_compute_firewall” “fw” {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).PlanResourceChange call. The plugin logs may contain more details.
╵
â•·
│ Error: Plugin did not respond
│
│ with google_compute_instance.vm_instance,
│ on GCP_EC2_CENTOS.tf line 29, in resource “google_compute_instance” “vm_instance”:
│ 29: resource “google_compute_instance” “vm_instance” {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).PlanResourceChange call. The plugin logs may contain more details.
╵

Stack trace from the terraform-provider-google_v3.66.0_x5 plugin:

panic: interface conversion: interface {} is *schema.Set, not interface {}

goroutine 48 [running]:
github.com/hashicorp/terraform-provider-google/google.serviceAccountDiffSuppress(0xc00101ee80, 0x1a, 0x2d25848, 0x1, 0x2d25849, 0x1, 0xc0001b0f00, 0x203000)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_compute_instance.go:2248 +0x425
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.diff(0xc000862900, 0x2ceec07, 0xf, 0xc000875180, 0xc000cfc6c0, 0x31af108, 0xc0001b0f00, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.5.0/helper/schema/schema.go:972 +0x383
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.Diff(0xc000862900, 0x317f820, 0xc00028c040, 0xc00011df80, 0xc000c94c90, 0xc000289fe0, 0x2cb98a0, 0xc000359800, 0x3fa1e00, 0x2696240, …)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.5.0/helper/schema/schema.go:522 +0x219
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).SimpleDiff(0xc00086d260, 0x317f820, 0xc00028c040, 0xc00011df80, 0xc000c94c90, 0x2cb98a0, 0xc000359800, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.5.0/helper/schema/resource.go:506 +0xa5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).PlanResourceChange(0xc00000d770, 0x317f820, 0xc00028c040, 0xc00101dc20, 0xc00028c040, 0x2c0d2c0, 0xc00048a900)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.5.0/helper/schema/grpc_provider.go:693 +0x7c5
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).PlanResourceChange(0xc000cfcce0, 0x317f8c8, 0xc00028c040, 0xc00011de30, 0xc000cfcce0, 0xc00048a9c0, 0xc000d2fba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.2.1/tfprotov5/server/server.go:315 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_PlanResourceChange_Handler(0x2c0d2c0, 0xc000cfcce0, 0x317f8c8, 0xc00048a9c0, 0xc001029e00, 0x0, 0x317f8c8, 0xc00048a9c0, 0xc0000d1000, 0xb8b)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.2.1/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:362 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000230540, 0x31b7458, 0xc000295c80, 0xc000246700, 0xc00098b800, 0x3f5dec8, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.36.0/server.go:1217 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc000230540, 0x31b7458, 0xc000295c80, 0xc000246700, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.36.0/server.go:1540 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc00028a7e0, 0xc000230540, 0x31b7458, 0xc000295c80, 0xc000246700)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.36.0/server.go:878 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.36.0/server.go:876 +0x1fd

Error: The terraform-provider-google_v3.66.0_x5 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin’s maintainers so that it
can be fixed. The output above should help diagnose the issue.

[root@localhost Terraform_GCP]#
[root@localhost Terraform_GCP]#

Hi @suphiyildiz,

I would first try to update to the 3.66.1, since it appears to be the crash fixed in that release. If there is still an error, I would suggest filing an issue with the provider in their project repo here: Issues · hashicorp/terraform-provider-google · GitHub