flow-emulator icon indicating copy to clipboard operation
flow-emulator copied to clipboard

Emulator crashes when `fcl.authenticate()` is called

Open bartolomej opened this issue 2 years ago • 4 comments

Problem

The emulator process (sometimes) encounters a fatal error and crashes without recovery when the client triggers the fcl.authenticate() function.

Note that this error can also happen when calling fcl.mutate.

The error message says: fatal error: concurrent map writes

Here is a complete log
➜  cadence git:(main) ✗ flow emulator --verbose
INFO[0000] ⚙️   Using service account 0xf8d6e0586b0a20c7  serviceAddress=f8d6e0586b0a20c7 serviceHashAlgo=SHA3_256 servicePrivKey=43109dc3cc77a631ae14ea6a62196ba3f4d81dd5ced074558e6bfc5ef206c765 servicePubKey=0d06a037282008cc2059fddad33992c6f782c74bba510a89e832f5cd60b1e607de52079702d40803184c47f0a68afacfd628939dc8fa5263fe649b53c424904d serviceSigAlgo=ECDSA_P256
INFO[0000] 📜  Flow contract                              FlowToken=0x0ae53cb6e3f42a79
INFO[0000] 📜  Flow contract                              FungibleToken=0xee82856bf20e2aa6
INFO[0000] 📜  Flow contract                              FlowFees=0xe5a8b7f23e8b548f
INFO[0000] 📜  Flow contract                              FlowStorageFees=0xf8d6e0586b0a20c7
INFO[0000] 📜  Flow contract                              FlowServiceAccount=0xf8d6e0586b0a20c7
INFO[0000] 🌱  Starting gRPC server on port 3569          port=3569
INFO[0000] 🌱  Starting REST API on port 8888             port=8888
INFO[0000] 🌱  Starting admin server on port 8080         port=8080
DEBU[0011] 🎁  GetLatestBlockHeader called                blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0011] 👤  GetAccountAtBlockHeight called             address=f8d6e0586b0a20c7 height=0
DEBU[0011] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0011] 🎁  GetBlockByHeight called                    blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0011] 👤  GetAccountStorage called                   address=f8d6e0586b0a20c7
DEBU[0012] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0013] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0014] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0015] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0016] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0017] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0018] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0019] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0020] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0021] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0022] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0023] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0024] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0025] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0025] 🎁  GetLatestBlockHeader called                blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0025] 👤  GetAccountAtBlockHeight called             address=f8d6e0586b0a20c7 height=0
DEBU[0025] 🎁  GetLatestBlock called                      blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0025] 🎁  GetLatestBlockHeader called                blockHeight=0 blockID=13c7ff23bb65feb5757cc65fdd75cd243506518c126385fae530ddebdad10b17
DEBU[0025] 👤  GetAccountAtBlockHeight called             address=f8d6e0586b0a20c7 height=0
DEBU[0025] ️✉️   Transaction submitted                   txID=3ff5a70603e4a1f8e71cdba8acf846c1b4ab3eed641d47f94b34991bb5b297bf
INFO[0025] ⭐  Transaction executed                       computationUsed=54 txID=3ff5a70603e4a1f8e71cdba8acf846c1b4ab3eed641d47f94b34991bb5b297bf
DEBU[0025] EVT [3ff5a7] A.0ae53cb6e3f42a79.FlowToken.TokensWithdrawn: 0x04046a9b3fc628c3ecbd04409818e005808cf942be629a6a20fe5cfbc01bed60
DEBU[0025] EVT [3ff5a7] A.0ae53cb6e3f42a79.FlowToken.TokensWithdrawn: 0xe2b88d62ecc884251e691784f9cb2e903c98f7bc121dab850f38b4af6ade4498
DEBU[0025] EVT [3ff5a7] A.0ae53cb6e3f42a79.FlowToken.TokensDeposited: 0x75bf112015c39eec13c72acddc24637608238508ff4ccdd2421651e03e850d25
DEBU[0025] EVT [3ff5a7] A.e5a8b7f23e8b548f.FlowFees.TokensDeposited: 0xc42967ac3cd0293bbd3721ae06909ddfdcff24a037b077fbedbb682977625ef8
DEBU[0025] EVT [3ff5a7] A.0ae53cb6e3f42a79.FlowToken.TokensDeposited: 0xc00cad0a14f0649bad4b260bb007d9048584f130b248884141b9875402fcea9b
DEBU[0025] EVT [3ff5a7] flow.AccountCreated: 0x46f768d88e2fa84f14187745000b5fa9fb011bd501a51c164ab35625e6772f08
DEBU[0025] EVT [3ff5a7] flow.AccountKeyAdded: 0x1357bc6a734b40d92da57f501351c2d3ea40d188b56174ddbc7db1bf475c0faf
DEBU[0025] EVT [3ff5a7] A.0ae53cb6e3f42a79.FlowToken.TokensWithdrawn: 0x0f3976d91cc4779f84746f0607ed453421cddd9f1a6da4098ea6de0229b07287
DEBU[0025] EVT [3ff5a7] A.0ae53cb6e3f42a79.FlowToken.TokensWithdrawn: 0xc9ef3fc0f88aeede3ff627a26c41f4287660d7bd999dd94747db18d3628db4eb
DEBU[0025] EVT [3ff5a7] A.0ae53cb6e3f42a79.FlowToken.TokensDeposited: 0x973193fd870859be38b85656170a74b910afaa419d658dd86e6dc7b68e14ba9b
DEBU[0025] EVT [3ff5a7] A.e5a8b7f23e8b548f.FlowFees.TokensDeposited: 0xb134f495c1636781bfe2405c24262d0230f850066776e39f4dd9ddebbc790988
DEBU[0025] EVT [3ff5a7] A.0ae53cb6e3f42a79.FlowToken.TokensDeposited: 0x9ed0a9f10fe909bc636f16707127de82963956b9d45a70833019fe713e7410aa
DEBU[0025] EVT [3ff5a7] flow.AccountCreated: 0x0d6f5ea3e645c19468b7be1dfddb80e21aaf3d828c60c183d3611eb432a96211
DEBU[0025] EVT [3ff5a7] flow.AccountKeyAdded: 0xb4c0b00463595c886ed65db02020f49ff83313b31a418b4c736f74c388a6b7f7
DEBU[0025] EVT [3ff5a7] flow.AccountContractAdded: 0x43ab4307e506bf75fcef26832d0fad656b794cb4225f5b89b0b9e4928e1bd071
DEBU[0025] 📦  Block #1 committed                         blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0025] 📝  GetTransactionResult called                txID=3ff5a70603e4a1f8e71cdba8acf846c1b4ab3eed641d47f94b34991bb5b297bf
DEBU[0025] 🎁  GetLatestBlockHeader called                blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0025] 👤  GetAccountAtBlockHeight called             address=f8d6e0586b0a20c7 height=1
DEBU[0025] 👤  ExecuteScriptAtLatestBlock called
INFO[0025] ⭐  Script executed                            scriptID=9f27bcf1d399d777a8b9c7c08c9ee3e9a4346820c29af2247b86781d509104df
DEBU[0025] 👤  ExecuteScriptAtLatestBlock called
DEBU[0025] 👤  ExecuteScriptAtLatestBlock called
INFO[0025] ⭐  Script executed                            scriptID=52b9bcd485cb5f37a913feac6facb96dcdf692d3b8377d47e29d000bd93dc3e1
INFO[0025] ⭐  Script executed                            scriptID=52b9bcd485cb5f37a913feac6facb96dcdf692d3b8377d47e29d000bd93dc3e1
DEBU[0026] 🎁  GetLatestBlock called                      blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0026] 🎁  GetBlockByHeight called                    blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0026] 📚  GetCollectionByID called                   colID=fff8fbda78d2afcc8a8e33baf9755fd2d7dbefb86d5e3373a0c86014d8eeb962
DEBU[0026] 💵  GetTransaction called                      txID=3ff5a70603e4a1f8e71cdba8acf846c1b4ab3eed641d47f94b34991bb5b297bf
DEBU[0026] 💵  GetTransaction called                      txID=3ff5a70603e4a1f8e71cdba8acf846c1b4ab3eed641d47f94b34991bb5b297bf
DEBU[0026] 📝  GetTransactionResult called                txID=3ff5a70603e4a1f8e71cdba8acf846c1b4ab3eed641d47f94b34991bb5b297bf
DEBU[0026] 🎁  GetLatestBlockHeader called                blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0026] 👤  GetAccountAtBlockHeight called             address=01cf0e2f2f715450 height=1
DEBU[0026] 🎁  GetLatestBlockHeader called                blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0026] 👤  GetAccountAtBlockHeight called             address=179b6b1cb6755e31 height=1
DEBU[0026] 🎁  GetLatestBlockHeader called                blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0026] 👤  GetAccountAtBlockHeight called             address=01cf0e2f2f715450 height=1
DEBU[0026] 🎁  GetLatestBlockHeader called                blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0026] 👤  GetAccountAtBlockHeight called             address=179b6b1cb6755e31 height=1
DEBU[0026] 🎁  GetLatestBlockHeader called                blockHeight=1 blockID=82a664af6003e40147319f987ace08131ead166b17643acfa9c315e4b64937d2
DEBU[0026] 👤  GetAccountAtBlockHeight called             address=f8d6e0586b0a20c7 height=1
DEBU[0026] 📝  GetTransactionResult called                txID=3ff5a70603e4a1f8e71cdba8acf846c1b4ab3eed641d47f94b34991bb5b297bf
DEBU[0026] 👤  GetAccountStorage called                   address=179b6b1cb6755e31
DEBU[0026] 👤  GetAccountStorage called                   address=01cf0e2f2f715450
DEBU[0026] 👤  GetAccountStorage called                   address=f8d6e0586b0a20c7
fatal error: concurrent map writes
fatal error: concurrent map writes

goroutine 262 [running]: github.com/onflow/flow-go/engine/execution/state/delta.(*View).MergeView(0x14000f4ca00, {0x103ab3a58?, 0x140004094f0?}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/engine/execution/state/delta/view.go:213 +0x254 github.com/onflow/flow-go/fvm/state.(*State).MergeState(0x140003f2150, 0x1400043d3b0, 0x1) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/state/state.go:237 +0x50 github.com/onflow/flow-go/fvm/handler.(*ProgramsHandler).mergeState(0x14000e0e540?, 0x103aae288?, 0xa0?) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/handler/programs.go:80 +0xb0 github.com/onflow/flow-go/fvm/handler.(*ProgramsHandler).Set(0x14000e0e5a0, {0x103aae288, 0x140008ff1a0?}, 0x102308414?) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/handler/programs.go:67 +0x1a0 github.com/onflow/flow-go/fvm.(*commonEnv).SetProgram(0x140001247e0, {0x103aae288, 0x140008ff1a0}, 0x140000de000?) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/env.go:373 +0x114 github.com/onflow/cadence/runtime.(*interpreterRuntime).parseAndCheckProgram.func4() github.com/onflow/[email protected]/runtime/runtime.go:865 +0x40 github.com/onflow/cadence/runtime.wrapPanic(0x1045df300?) github.com/onflow/[email protected]/runtime/runtime.go:556 +0x40 github.com/onflow/cadence/runtime.(*interpreterRuntime).parseAndCheckProgram(0x14000aec4b0?, {0x140000de000, 0x1c64, 0x1c64}, {{0x103ac35a8, 0x140001247e0}, {0x103aae288, 0x140008ff1a0}, {0x0, 0x0, ...}, ...}, ...) github.com/onflow/[email protected]/runtime/runtime.go:864 +0x3f4 github.com/onflow/cadence/runtime.(*interpreterRuntime).getProgram(0x140010d6680?, {{0x103ac35a8, 0x140001247e0}, {0x103aae288, 0x140008ff1a0}, {0x0, 0x0, 0x0}, 0x14000aec4b0, 0x14000aec4e0}, ...) github.com/onflow/[email protected]/runtime/runtime.go:1255 +0x188 github.com/onflow/cadence/runtime.(*interpreterRuntime).importLocationHandler.func1(0x140016ee598?, {0x103aae288?, 0x140008ff1a0}) github.com/onflow/[email protected]/runtime/runtime.go:1210 +0x180 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).EnsureLoaded.func1() github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2615 +0x30 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).ensureLoadedWithLocationHandler(0x14000d2f520, {0x103aae288, 0x140008ff1a0}, 0x140016ee778) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2636 +0x70 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).EnsureLoaded(0x14000d2f520?, {0x103aae288?, 0x140008ff1a0?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2612 +0x48 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).getElaboration(0x5000?, {0x103aae288, 0x140008ff1a0}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4202 +0x24 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).getInterfaceType(0x140016ee898?, {0x103aae288, 0x140008ff1a0}, {0x14000a27a28?, 0x140016ee801?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4282 +0x68 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).ConvertStaticToSemaType.func1({0x103aae288?, 0x140008ff1a0?}, {0x14000a27a28?, 0x1027b4df4?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4181 +0x40 github.com/onflow/cadence/runtime/interpreter.ConvertStaticToSemaType({0x12c499318, 0x140001247e0}, {0x103aaced8?, 0x140004437d0?}, 0x140016eebe8, 0x140016eebd8) github.com/onflow/[email protected]/runtime/interpreter/statictype.go:751 +0x68c github.com/onflow/cadence/runtime/interpreter.ConvertStaticToSemaType({0x12c499318, 0x140001247e0}, {0x103aae6c0?, 0x14000443800?}, 0x140016eebe8, 0x140016eebd8) github.com/onflow/[email protected]/runtime/interpreter/statictype.go:765 +0x348 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).ConvertStaticToSemaType(0x103a92ec0?, {0x103aae6c0?, 0x14000443800?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4177 +0x6c github.com/onflow/cadence/runtime/interpreter.(*Interpreter).MustConvertStaticToSemaType(...) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4190 github.com/onflow/cadence/runtime.exportLinkValue({{0x1, {0x1400044c070, 0xe}}, {0x103aae6c0, 0x14000443800}}, 0x1023043d0?) github.com/onflow/[email protected]/runtime/convertValues.go:676 +0x84 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x103ab7de8?, 0x14000443aa0?}, 0x14000d2f520, 0x103aacc08?, 0x140016ef1a8) github.com/onflow/[email protected]/runtime/convertValues.go:216 +0xa58 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/[email protected]/runtime/convertValues.go:54 github.com/onflow/flow-emulator.NewAccountStorage.func1(0x0?) github.com/onflow/[email protected]/accountStorage.go:57 +0x170 github.com/onflow/flow-emulator.NewAccountStorage({0x17, 0x9b, 0x6b, 0x1c, 0xb6, 0x75, 0x5e, 0x31}, 0x14000b566f0, 0x103a943a0?, ...) github.com/onflow/[email protected]/accountStorage.go:72 +0x84 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000595c00, {0x17, 0x9b, 0x6b, 0x1c, 0xb6, 0x75, 0x5e, 0x31}) github.com/onflow/[email protected]/blockchain.go:1054 +0x354 github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x14000bd8320, {0x17, 0x9b, 0x6b, 0x1c, 0xb6, 0x75, 0x5e, 0x31}) github.com/onflow/[email protected]/server/backend/backend.go:589 +0x9c github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400067a300?, 0x14000c281b0?, 0x14000bd8320?, 0x14000417110?}, {0x103aa4730, 0x14000124700}, 0x1037a5560?) github.com/onflow/[email protected]/server/emulator.go:145 +0x128 net/http.HandlerFunc.ServeHTTP(0x14000f84200?, {0x103aa4730?, 0x14000124700?}, 0x140010f8061?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400067a300, {0x103aa4730, 0x14000124700}, 0x14000f84100) github.com/gorilla/[email protected]/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/[email protected]/server/emulator.go:63 net/http.(*ServeMux).ServeHTTP(0x0?, {0x103aa4730, 0x14000124700}, 0x14000f84100) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x14000e0e090?}, {0x103aa4730, 0x14000124700}, 0x14000f84100) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x140008e8fa0, {0x103aa58d0, 0x140008803f0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444

goroutine 1 [semacquire]: sync.runtime_Semacquire(0x140000021a0?) runtime/sema.go:62 +0x28 sync.(*WaitGroup).Wait(0x14001052c90) sync/waitgroup.go:139 +0x80 github.com/psiemens/graceland.(*Group).Start(0x14000d669c0) github.com/psiemens/[email protected]/graceland.go:97 +0x158 github.com/onflow/flow-emulator/server.(*EmulatorServer).Start(0x14000c281b0) github.com/onflow/[email protected]/server/server.go:223 +0x2f0 github.com/onflow/flow-emulator/cmd/emulator/start.Cmd.func1(0x14000265180?, {0x1031b6644?, 0x1?, 0x1?}) github.com/onflow/[email protected]/cmd/emulator/start/start.go:186 +0x9f4 github.com/spf13/cobra.(*Command).execute(0x14000265180, {0x1400019c1a0, 0x1, 0x1}) github.com/spf13/[email protected]/command.go:876 +0x4b8 github.com/spf13/cobra.(*Command).ExecuteC(0x1400055c780) github.com/spf13/[email protected]/command.go:990 +0x354 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/[email protected]/command.go:918 main.main() github.com/onflow/flow-cli/cmd/flow/main.go:82 +0x45c

goroutine 8 [select]: go.opencensus.io/stats/view.(*worker).start(0x140000b9e80) [email protected]/stats/view/worker.go:276 +0x88 created by go.opencensus.io/stats/view.init.0 [email protected]/stats/view/worker.go:34 +0xa4

goroutine 231 [runnable]: github.com/onflow/atree.(*OrderedMap).Set(0x14000a16a20, 0x8?, 0x1031bb9c4?, {0x103a98d20, 0x140008b93c0}, {0x103a98e60, 0x104580488}) github.com/onflow/[email protected]/map.go:3453 +0x1b8 github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).SetMember(0x14000849050, 0x140006a84e0, 0x103a86a78, {0x1031bb9c4, 0x8}, {0x103ab8388, 0x104580488}) github.com/onflow/[email protected]/runtime/interpreter/value.go:14632 +0x2f0 github.com/onflow/cadence/runtime/interpreter.NewCompositeValue(0x140006a84e0, 0x14000379be8?, {0x0, 0x0}, {0x1031c778a, 0x12}, 0x5, {0x14000379c08, 0x1, 0x14000379c28?}, ...) github.com/onflow/[email protected]/runtime/interpreter/value.go:14234 +0x22c github.com/onflow/cadence/runtime/interpreter.NewEnumCaseValue(0x103a92ec0?, 0x140006a84e0?, 0x14000000120, {0x103ac0cc0?, 0x104580488}, 0x0) github.com/onflow/[email protected]/runtime/interpreter/value.go:15305 +0xc8 github.com/onflow/cadence/runtime/stdlib.NewSignatureAlgorithmCase(0x14000379cd8?, 0x5c?) github.com/onflow/[email protected]/runtime/stdlib/signaturealgorithm.go:28 +0x80 github.com/onflow/cadence/runtime/stdlib.cryptoAlgorithmEnumValue(0x140005ead80?, 0x5?, {0x1045d18e0, 0x3, 0x14000379dd8?}, 0x103a86e68) github.com/onflow/[email protected]/runtime/stdlib/crypto.go:153 +0xe8 github.com/onflow/cadence/runtime/stdlib.glob..func19(0x14000379db8?) github.com/onflow/[email protected]/runtime/stdlib/signaturealgorithm.go:46 +0x44 github.com/onflow/cadence/runtime/stdlib.StandardLibraryValue.ValueDeclarationValue(...) github.com/onflow/[email protected]/runtime/stdlib/value.go:42 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).declareValue(0x140006a84e0, {0x103aa4e20, 0x14000240a50}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:1445 +0x70 github.com/onflow/cadence/runtime/interpreter.WithPredeclaredValues.func1(0x140006a84e0) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:470 +0xa8 github.com/onflow/cadence/runtime/interpreter.NewInterpreter(0x140008b9260, {0x103aae288?, 0x140009b1278}, {0x1400037a200, 0x1d, 0x1022fc704?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:734 +0x3a0 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).NewSubInterpreter(0x14000811040, 0x0?, {0x103aae288, 0x140009b1278}, {0x0, 0x0, 0x14000b541c0?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2730 +0xad4 github.com/onflow/cadence/runtime.(*interpreterRuntime).importLocationHandler.func1(0x1400037a598?, {0x103aae288?, 0x140009b1278}) github.com/onflow/[email protected]/runtime/runtime.go:1215 +0x1ac github.com/onflow/cadence/runtime/interpreter.(*Interpreter).EnsureLoaded.func1() github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2615 +0x30 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).ensureLoadedWithLocationHandler(0x14000811040, {0x103aae288, 0x140009b1278}, 0x1400037a778) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2636 +0x70 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).EnsureLoaded(0x14000811040?, {0x103aae288?, 0x140009b1278?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2612 +0x48 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).getElaboration(0x5000?, {0x103aae288, 0x140009b1278}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4202 +0x24 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).getInterfaceType(0x1400037a898?, {0x103aae288, 0x140009b1278}, {0x1400051ceb8?, 0x1400037a801?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4282 +0x68 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).ConvertStaticToSemaType.func1({0x103aae288?, 0x140009b1278?}, {0x1400051ceb8?, 0x1027b4df4?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4181 +0x40 github.com/onflow/cadence/runtime/interpreter.ConvertStaticToSemaType({0x12c499318, 0x14000b541c0}, {0x103aaced8?, 0x140005f4ba0?}, 0x1400037abe8, 0x1400037abd8) github.com/onflow/[email protected]/runtime/interpreter/statictype.go:751 +0x68c github.com/onflow/cadence/runtime/interpreter.ConvertStaticToSemaType({0x12c499318, 0x14000b541c0}, {0x103aae6c0?, 0x140005f4bd0?}, 0x1400037abe8, 0x1400037abd8) github.com/onflow/[email protected]/runtime/interpreter/statictype.go:765 +0x348 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).ConvertStaticToSemaType(0x103a92ec0?, {0x103aae6c0?, 0x140005f4bd0?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4177 +0x6c github.com/onflow/cadence/runtime/interpreter.(*Interpreter).MustConvertStaticToSemaType(...) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:4190 github.com/onflow/cadence/runtime.exportLinkValue({{0x1, {0x14000a91500, 0xe}}, {0x103aae6c0, 0x140005f4bd0}}, 0x1023043d0?) github.com/onflow/[email protected]/runtime/convertValues.go:676 +0x84 github.com/onflow/cadence/runtime.exportValueWithInterpreter({0x103ab7de8?, 0x140005f4e70?}, 0x14000811040, 0x103aacc08?, 0x1400037b1a8) github.com/onflow/[email protected]/runtime/convertValues.go:216 +0xa58 github.com/onflow/cadence/runtime.ExportValue(...) github.com/onflow/[email protected]/runtime/convertValues.go:54 github.com/onflow/flow-emulator.NewAccountStorage.func1(0x0?) github.com/onflow/[email protected]/accountStorage.go:57 +0x170 github.com/onflow/flow-emulator.NewAccountStorage({0x1, 0xcf, 0xe, 0x2f, 0x2f, 0x71, 0x54, 0x50}, 0x140010d3800, 0x103a943a0?, ...) github.com/onflow/[email protected]/accountStorage.go:72 +0x84 github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000595c00, {0x1, 0xcf, 0xe, 0x2f, 0x2f, 0x71, 0x54, 0x50}) github.com/onflow/[email protected]/blockchain.go:1054 +0x354 github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x14000bd8320, {0x1, 0xcf, 0xe, 0x2f, 0x2f, 0x71, 0x54, 0x50}) github.com/onflow/[email protected]/server/backend/backend.go:589 +0x9c github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400067a300?, 0x14000c281b0?, 0x14000bd8320?, 0x14000417110?}, {0x103aa4730, 0x14000b54000}, 0x1037a5560?) github.com/onflow/[email protected]/server/emulator.go:145 +0x128 net/http.HandlerFunc.ServeHTTP(0x14000c88300?, {0x103aa4730?, 0x14000b54000?}, 0x14000fe2161?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400067a300, {0x103aa4730, 0x14000b54000}, 0x14000c88200) github.com/gorilla/[email protected]/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/[email protected]/server/emulator.go:63 net/http.(*ServeMux).ServeHTTP(0x0?, {0x103aa4730, 0x14000b54000}, 0x14000c88200) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x14000b38c30?}, {0x103aa4730, 0x14000b54000}, 0x14000c88200) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x14000963d60, {0x103aa58d0, 0x140008803f0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444

goroutine 10 [select]: github.com/desertbit/timer.timerRoutine() github.com/desertbit/[email protected]/timers.go:119 +0xac created by github.com/desertbit/timer.init.0 github.com/desertbit/[email protected]/timers.go:15 +0x24

goroutine 228 [IO wait]: internal/poll.runtime_pollWait(0x12c5c72e8, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x14000fc4780?, 0x14000feb000?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x14000fc4780, {0x14000feb000, 0x1000, 0x1000}) internal/poll/fd_unix.go:167 +0x1e0 net.(*netFD).Read(0x14000fc4780, {0x14000feb000?, 0x14001859a98?, 0x1025d4b3c?}) net/fd_posix.go:55 +0x28 net.(*conn).Read(0x140005ab8e0, {0x14000feb000?, 0x14001859ae8?, 0x72?}) net/net.go:183 +0x34 net/http.(*connReader).Read(0x14000fbcc30, {0x14000feb000, 0x1000, 0x1000}) net/http/server.go:786 +0x234 bufio.(*Reader).fill(0x14000f56540) bufio/bufio.go:106 +0xfc bufio.(*Reader).Peek(0x14000f56540, 0x4) bufio/bufio.go:144 +0x60 net/http.(*conn).serve(0x14000fae500, {0x103aa58d0, 0x14000b380c0}) net/http/server.go:2017 +0x654 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444

goroutine 250 [IO wait]: internal/poll.runtime_pollWait(0x12c5c71f8, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x140000ea280?, 0x14001736101?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x140000ea280, {0x14001736101, 0x1, 0x1}) internal/poll/fd_unix.go:167 +0x1e0 net.(*netFD).Read(0x140000ea280, {0x14001736101?, 0x685a464975563261?, 0x7546474930785764?}) net/fd_posix.go:55 +0x28 net.(*conn).Read(0x140001aae08, {0x14001736101?, 0x666869626c743262?, 0x365133596a464749?}) net/net.go:183 +0x34 net/http.(*connReader).backgroundRead(0x140017360f0) net/http/server.go:678 +0x44 created by net/http.(*connReader).startBackgroundRead net/http/server.go:674 +0xcc

goroutine 146 [IO wait]: internal/poll.runtime_pollWait(0x12c5c76a8, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x14000b8e000?, 0x4?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0x14000b8e000) internal/poll/fd_unix.go:614 +0x1d0 net.(*netFD).accept(0x14000b8e000) net/fd_unix.go:172 +0x28 net.(*TCPListener).accept(0x140001520f0) net/tcpsock_posix.go:142 +0x28 net.(*TCPListener).Accept(0x140001520f0) net/tcpsock.go:288 +0x2c google.golang.org/grpc.(*Server).Serve(0x14000513c00, {0x103aa4520?, 0x140001520f0}) google.golang.org/[email protected]/server.go:780 +0x48c github.com/onflow/flow-emulator/server.(*GRPCServer).Start(0x140000e9368) github.com/onflow/[email protected]/server/grpc.go:77 +0xa0 github.com/psiemens/graceland.(*Group).Start.func1(0x0?, {0x103a9d2c0?, 0x140000e9368?}) github.com/psiemens/[email protected]/graceland.go:71 +0x40 created by github.com/psiemens/graceland.(*Group).Start github.com/psiemens/[email protected]/graceland.go:70 +0x27c

goroutine 129 [select]: github.com/onflow/flow-emulator/server.(*LivenessTicker).Start(0x1400048c390) github.com/onflow/[email protected]/server/liveness.go:46 +0x80 github.com/psiemens/graceland.(*Group).Start.func1(0x14000d51380?, {0x103a9d310?, 0x1400048c390?}) github.com/psiemens/[email protected]/graceland.go:71 +0x40 created by github.com/psiemens/graceland.(*Group).Start github.com/psiemens/[email protected]/graceland.go:70 +0x27c

goroutine 147 [IO wait]: internal/poll.runtime_pollWait(0x12c5c7798, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x14000a74180?, 0x4?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0x14000a74180) internal/poll/fd_unix.go:614 +0x1d0 net.(*netFD).accept(0x14000a74180) net/fd_unix.go:172 +0x28 net.(*TCPListener).accept(0x140000e9500) net/tcpsock_posix.go:142 +0x28 net.(*TCPListener).Accept(0x140000e9500) net/tcpsock.go:288 +0x2c net/http.(*Server).Serve(0x1400015a2d0, {0x103aa4520, 0x140000e9500}) net/http/server.go:3070 +0x30c github.com/onflow/flow-emulator/server.(*RestServer).Start(0x0?) github.com/onflow/[email protected]/server/rest.go:39 +0x2c github.com/psiemens/graceland.(*Group).Start.func1(0x0?, {0x103a9d338?, 0x140000e9518?}) github.com/psiemens/[email protected]/graceland.go:71 +0x40 created by github.com/psiemens/graceland.(*Group).Start github.com/psiemens/[email protected]/graceland.go:70 +0x27c

goroutine 148 [IO wait]: internal/poll.runtime_pollWait(0x12c5c75b8, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x14000a3be80?, 0x4?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0x14000a3be80) internal/poll/fd_unix.go:614 +0x1d0 net.(*netFD).accept(0x14000a3be80) net/fd_unix.go:172 +0x28 net.(*TCPListener).accept(0x14000499da0) net/tcpsock_posix.go:142 +0x28 net.(*TCPListener).Accept(0x14000499da0) net/tcpsock.go:288 +0x2c net/http.(*Server).Serve(0x1400015a4b0, {0x103aa4520, 0x14000499da0}) net/http/server.go:3070 +0x30c net/http.(*Server).ListenAndServe(0x1400015a4b0) net/http/server.go:2999 +0x84 github.com/onflow/flow-emulator/server.(*HTTPServer).Start(0x0?) github.com/onflow/[email protected]/server/admin.go:87 +0x20 github.com/psiemens/graceland.(*Group).Start.func1(0x0?, {0x103a9d2e8?, 0x140005aabc8?}) github.com/psiemens/[email protected]/graceland.go:71 +0x40 created by github.com/psiemens/graceland.(*Group).Start github.com/psiemens/[email protected]/graceland.go:70 +0x27c

goroutine 75 [running]: goroutine running on other thread; stack unavailable created by net/http.(*Server).Serve net/http/server.go:3102 +0x444

goroutine 150 [chan receive]: github.com/psiemens/graceland.(*Group).Start.func2() github.com/psiemens/[email protected]/graceland.go:93 +0x94 created by github.com/psiemens/graceland.(*Group).Start github.com/psiemens/[email protected]/graceland.go:90 +0x150

goroutine 152 [syscall]: os/signal.signal_recv() runtime/sigqueue.go:149 +0x2c os/signal.loop() os/signal/signal_unix.go:23 +0x1c created by os/signal.Notify.func1.1 os/signal/signal.go:151 +0x2c

goroutine 142 [select]: google.golang.org/grpc/internal/transport.(*controlBuffer).get(0x140002b1130, 0x1) google.golang.org/[email protected]/internal/transport/controlbuf.go:407 +0x154 google.golang.org/grpc/internal/transport.(*loopyWriter).run(0x14000d513e0) google.golang.org/[email protected]/internal/transport/controlbuf.go:534 +0x74 google.golang.org/grpc/internal/transport.NewServerTransport.func2() google.golang.org/[email protected]/internal/transport/http2_server.go:332 +0xd0 created by google.golang.org/grpc/internal/transport.NewServerTransport google.golang.org/[email protected]/internal/transport/http2_server.go:329 +0x136c

goroutine 143 [select]: google.golang.org/grpc/internal/transport.(*http2Server).keepalive(0x140000a2ea0) google.golang.org/[email protected]/internal/transport/http2_server.go:1131 +0x188 created by google.golang.org/grpc/internal/transport.NewServerTransport google.golang.org/[email protected]/internal/transport/http2_server.go:341 +0x13b0

goroutine 144 [IO wait]: internal/poll.runtime_pollWait(0x12c5c74c8, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x14000c10700?, 0x14000ff6000?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x14000c10700, {0x14000ff6000, 0x8000, 0x8000}) internal/poll/fd_unix.go:167 +0x1e0 net.(*netFD).Read(0x14000c10700, {0x14000ff6000?, 0x14000073c48?, 0x1023ec9cc?}) net/fd_posix.go:55 +0x28 net.(*conn).Read(0x14000010dc8, {0x14000ff6000?, 0x10401?, 0x0?}) net/net.go:183 +0x34 bufio.(*Reader).Read(0x14000d3b740, {0x14000886120, 0x9, 0x14000880810?}) bufio/bufio.go:237 +0x1e0 io.ReadAtLeast({0x103a90f80, 0x14000d3b740}, {0x14000886120, 0x9, 0x9}, 0x9) io/io.go:332 +0xa0 io.ReadFull(...) io/io.go:351 golang.org/x/net/http2.readFrameHeader({0x14000886120?, 0x9?, 0x14000073dc8?}, {0x103a90f80?, 0x14000d3b740?}) golang.org/x/[email protected]/http2/frame.go:237 +0x58 golang.org/x/net/http2.(*Framer).ReadFrame(0x140008860e0) golang.org/x/[email protected]/http2/frame.go:498 +0x84 google.golang.org/grpc/internal/transport.(*http2Server).HandleStreams(0x140000a2ea0, 0x500000000000000?, 0x0?) google.golang.org/[email protected]/internal/transport/http2_server.go:611 +0x114 google.golang.org/grpc.(*Server).serveStreams(0x14000513c00, {0x103ab3b78?, 0x140000a2ea0}) google.golang.org/[email protected]/server.go:906 +0x134 google.golang.org/grpc.(*Server).handleRawConn.func1() google.golang.org/[email protected]/server.go:848 +0x44 created by google.golang.org/grpc.(*Server).handleRawConn google.golang.org/[email protected]/server.go:847 +0x174

goroutine 201 [IO wait]: internal/poll.runtime_pollWait(0x12c5c73d8, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x14000a3be00?, 0x14000b4c000?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x14000a3be00, {0x14000b4c000, 0x1000, 0x1000}) internal/poll/fd_unix.go:167 +0x1e0 net.(*netFD).Read(0x14000a3be00, {0x14000b4c000?, 0x14000eeda98?, 0x1025d4b3c?}) net/fd_posix.go:55 +0x28 net.(*conn).Read(0x140004f2098, {0x14000b4c000?, 0x14000eedae8?, 0x72?}) net/net.go:183 +0x34 net/http.(*connReader).Read(0x14000403dd0, {0x14000b4c000, 0x1000, 0x1000}) net/http/server.go:786 +0x234 bufio.(*Reader).fill(0x14000b4a000) bufio/bufio.go:106 +0xfc bufio.(*Reader).Peek(0x14000b4a000, 0x4) bufio/bufio.go:144 +0x60 net/http.(*conn).serve(0x140009bc640, {0x103aa58d0, 0x14000b380c0}) net/http/server.go:2017 +0x654 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444

goroutine 232 [IO wait]: internal/poll.runtime_pollWait(0x12c5c7108, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x140000b8000?, 0x14000b38c41?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x140000b8000, {0x14000b38c41, 0x1, 0x1}) internal/poll/fd_unix.go:167 +0x1e0 net.(*netFD).Read(0x140000b8000, {0x14000b38c41?, 0x6741434967414349?, 0x6c4e484967414349?}) net/fd_posix.go:55 +0x28 net.(*conn).Read(0x14001910000, {0x14000b38c41?, 0x67414349676f4162?, 0x6741434967414349?}) net/net.go:183 +0x34 net/http.(*connReader).backgroundRead(0x14000b38c30) net/http/server.go:678 +0x44 created by net/http.(*connReader).startBackgroundRead net/http/server.go:674 +0xcc

goroutine 263 [IO wait]: internal/poll.runtime_pollWait(0x12c5c7018, 0x72) runtime/netpoll.go:305 +0xa0 internal/poll.(*pollDesc).wait(0x14000a74000?, 0x14000e0e0a1?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x14000a74000, {0x14000e0e0a1, 0x1, 0x1}) internal/poll/fd_unix.go:167 +0x1e0 net.(*netFD).Read(0x14000a74000, {0x14000e0e0a1?, 0x140000b7f48?, 0x1025d4824?}) net/fd_posix.go:55 +0x28 net.(*conn).Read(0x140005aa2d8, {0x14000e0e0a1?, 0x14000240820?, 0x1400039a720?}) net/net.go:183 +0x34 net/http.(*connReader).backgroundRead(0x14000e0e090) net/http/server.go:678 +0x44 created by net/http.(*connReader).startBackgroundRead net/http/server.go:674 +0xcc

goroutine 75 [running]: github.com/onflow/flow-go/engine/execution/state/delta.(*View).Get(0x14000f4ca00, {0x140009ad590, 0x8}, {0x1031b5b89, 0x3}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/engine/execution/state/delta/view.go:132 +0x160 github.com/onflow/flow-go/fvm/state.(*State).Get(0x140009263f0, {0x140009ad590, 0x8}, {0x1031b5b89, 0x3}, 0x1) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/state/state.go:115 +0x140 github.com/onflow/flow-go/fvm/state.(*StatefulAccounts).GetValue(0x140004a12d8?, {0xe5, 0xa8, 0xb7, 0xf2, 0x3e, 0x8b, 0x54, 0x8f}, {0x1031b5b89, ...}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/state/accounts.go:413 +0x7c github.com/onflow/flow-go/fvm/state.(*StatefulAccounts).getAccountStatus(0x90?, {0xe5, 0xa8, 0xb7, 0xf2, 0x3e, 0x8b, 0x54, 0x8f}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/state/accounts.go:574 +0x30 github.com/onflow/flow-go/fvm/state.(*StatefulAccounts).GetAccountFrozen(0x102da5380?, {0xe5, 0xa8, 0xb7, 0xf2, 0x3e, 0x8b, 0x54, 0x8f}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/state/accounts.go:593 +0x24 github.com/onflow/flow-go/fvm/state.(*StatefulAccounts).CheckAccountNotFrozen(0x1031d23f0?, {0xe5, 0xa8, 0xb7, 0xf2, 0x3e, 0x8b, 0x54, 0x8f}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/state/accounts.go:611 +0x24 github.com/onflow/flow-go/fvm.(*commonEnv).GetProgram(0x14000320360, {0x103aae288?, 0x140006a08a0}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/env.go:351 +0x180 github.com/onflow/cadence/runtime.(*interpreterRuntime).getProgram.func1() github.com/onflow/[email protected]/runtime/runtime.go:1241 +0x40 github.com/onflow/cadence/runtime.wrapPanic(0x140009452c0?) github.com/onflow/[email protected]/runtime/runtime.go:556 +0x40 github.com/onflow/cadence/runtime.(*interpreterRuntime).getProgram(0x1038fa980?, {{0x103ac3448, 0x14000320360}, {0x103aae288, 0x140006a08a0}, {0x14000926460, 0x1, 0x1}, 0x14000b22d80, 0x14000b22de0}, ...) github.com/onflow/[email protected]/runtime/runtime.go:1240 +0xbc github.com/onflow/cadence/runtime.(*interpreterRuntime).importLocationHandler.func1(0xaa000001027fa3e0?, {0x103aae288?, 0x140006a08a0}) github.com/onflow/[email protected]/runtime/runtime.go:1210 +0x180 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).EnsureLoaded.func1() github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2615 +0x30 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).ensureLoadedWithLocationHandler(0x140007fcd00, {0x103aae288, 0x140006a08a0}, 0x140003e79b8) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2636 +0x70 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).EnsureLoaded(0x1038fa980?, {0x103aae288?, 0x140006a08a0?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2612 +0x48 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).importResolvedLocation(0x140007fcd00, {{0x103aae288, 0x140006a08a0}, {0x140003c0f60, 0x1, 0x1}}) github.com/onflow/[email protected]/runtime/interpreter/interpreter_import.go:53 +0xc0 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitImportDeclaration(0x140007fcd00, 0x1?) github.com/onflow/[email protected]/runtime/interpreter/interpreter_import.go:34 +0xb8 github.com/onflow/cadence/runtime/ast.(*ImportDeclaration).Accept(0x140007fcd00?, {0x103ac39e8?, 0x140007fcd00?}) github.com/onflow/[email protected]/runtime/ast/import.go:67 +0x30 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitGlobalDeclaration(0x3?, {0x103ab6160, 0x14000926690}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:971 +0x40 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitProgram(0x140007fcd00, 0x14000b63040) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:1176 +0x74 github.com/onflow/cadence/runtime/ast.(*Program).Accept(...) github.com/onflow/[email protected]/runtime/ast/program.go:70 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).Interpret(0x140007fcd00) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:959 +0x88 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).ensureLoadedWithLocationHandler(0x14000a47380, {0x103aae288, 0x1400051a270}, 0x14001898158) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2641 +0x120 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).EnsureLoaded(0x1039dc9c0?, {0x103aae288?, 0x1400051a270?}) github.com/onflow/[email protected]/runtime/interpreter/interpreter.go:2612 +0x48 github.com/onflow/cadence/runtime.(*interpreterContractFunctionExecutor).execute(0x1400193b4a0) github.com/onflow/[email protected]/runtime/contract_function_executor.go:148 +0x240 github.com/onflow/cadence/runtime.(*interpreterContractFunctionExecutor).Execute.func1() github.com/onflow/[email protected]/runtime/contract_function_executor.go:82 +0x24 sync.(*Once).doSlow(0x0?, 0x14000b22d50?) sync/once.go:74 +0x104 sync.(*Once).Do(...) sync/once.go:65 github.com/onflow/cadence/runtime.(*interpreterContractFunctionExecutor).Execute(0x1400193b4a0?) github.com/onflow/[email protected]/runtime/contract_function_executor.go:81 +0x50 github.com/onflow/cadence/runtime.(*interpreterContractFunctionExecutor).Result(0x1400193b4a0) github.com/onflow/[email protected]/runtime/contract_function_executor.go:91 +0x20 github.com/onflow/cadence/runtime.(*interpreterRuntime).InvokeContractFunction(0x140004f08d0, {{0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}, {0x1031c744e, ...}}, ...) github.com/onflow/[email protected]/runtime/runtime.go:526 +0x1f0 github.com/onflow/flow-go/fvm.(*ContractFunctionInvoker).Invoke(0x14001935e10, 0x140006fe280, {0x103ac3708, 0x14000320360}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/contractFunctionInvoker.go:50 +0x1e0 github.com/onflow/flow-go/fvm.InvokeAccountBalanceContract(0x1031d3f89?, {0x103ac3708, 0x14000320360}, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, ...}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/contractFunctionInvocations.go:128 +0x1ec github.com/onflow/flow-go/fvm.(*ScriptEnv).GetAccountBalance(0x14000320360, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/scriptEnv.go:180 +0x11c github.com/onflow/flow-go/fvm.getAccount(, {{0x103ab4508, 0x1045c73a0}, {0x103a943a0, 0x14000417130}, {0x103aa6078, 0x1046373d8}, {0x0, 0x0}, 0x1, ...}, ...) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/account.go:33 +0xa4 github.com/onflow/flow-go/fvm.(*VirtualMachine).GetAccount(, {{0x103ab4508, 0x1045c73a0}, {0x103a943a0, 0x14000417130}, {0x103aa6078, 0x1046373d8}, {0x0, 0x0}, 0x1, ...}, ...) github.com/onflow/flow-go@v0.26.14-test-synchronization.0.20220801105506-320bb18569ff/fvm/fvm.go:77 +0x15c github.com/onflow/flow-emulator.(*Blockchain).GetAccountStorage(0x14000595c00, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/[email protected]/blockchain.go:1049 +0x32c github.com/onflow/flow-emulator/server/backend.(*Backend).GetAccountStorage(0x14000bd8320, {0xf8, 0xd6, 0xe0, 0x58, 0x6b, 0xa, 0x20, 0xc7}) github.com/onflow/[email protected]/server/backend/backend.go:589 +0x9c github.com/onflow/flow-emulator/server.EmulatorAPIServer.Storage({0x1400067a300?, 0x14000c281b0?, 0x14000bd8320?, 0x14000417110?}, {0x103aa4730, 0x14000886000}, 0x1037a5560?) github.com/onflow/[email protected]/server/emulator.go:145 +0x128 net/http.HandlerFunc.ServeHTTP(0x14000324300?, {0x103aa4730?, 0x14000886000?}, 0x14001942021?) net/http/server.go:2109 +0x38 github.com/gorilla/mux.(*Router).ServeHTTP(0x1400067a300, {0x103aa4730, 0x14000886000}, 0x140001c2600) github.com/gorilla/[email protected]/mux.go:210 +0x19c github.com/onflow/flow-emulator/server.EmulatorAPIServer.ServeHTTP(...) github.com/onflow/[email protected]/server/emulator.go:63 net/http.(*ServeMux).ServeHTTP(0x0?, {0x103aa4730, 0x14000886000}, 0x140001c2600) net/http/server.go:2487 +0x140 net/http.serverHandler.ServeHTTP({0x140017360f0?}, {0x103aa4730, 0x14000886000}, 0x140001c2600) net/http/server.go:2947 +0x2c4 net/http.(*conn).serve(0x1400193e000, {0x103aa58d0, 0x140008803f0}) net/http/server.go:1991 +0x560 created by net/http.(*Server).Serve net/http/server.go:3102 +0x444

Steps to Reproduce

  1. Run the flow emulator and dev-wallet (flow-emulator --verbose and flow dev-wallet)
  2. Configure the (fcl-js) client to connect to the local emulator blockchain
  3. Trigger fcl.authenticate() function

I'm using flow-cli v0.39.1.

Demo video

https://user-images.githubusercontent.com/36109955/185348650-38fe693a-7d30-4be3-bead-7a21fb007d68.mov

Acceptance Criteria

The emulator should respond to client requests without a fatal error.

Context

I'm currently working on the third milestone for the developer grant: Integrate Flowser it into the Flow CLI and develop Flowser desktop app #27.

bartolomej avatar Aug 18 '22 08:08 bartolomej

Thank you for reporting. I think this might be an issue related to the storage inspection. Will look into it.

devbugging avatar Aug 18 '22 16:08 devbugging

I looked into this little, I believe fvm should be the place for the fix. ( they are already planning parallel pre processing already afaik )

bluesign avatar Aug 19 '22 08:08 bluesign

I looked into this little, I believe fvm should be the place for the fix. ( they are already planning parallel pre processing already afaik )

cc @janezpodhostnik do you have some context?

devbugging avatar Aug 19 '22 09:08 devbugging

I noticed that this can also happen when creating an account with the flow accounts create command.

bartolomej avatar Aug 26 '22 10:08 bartolomej