You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bun run index.ts - run this on Windows 11. See log as below.
JavaScript/TypeScript code that reproduces the crash?
import{ApiPromise,Keyring,WsProvider}from"@polkadot/api";import{cryptoWaitReady}from'@polkadot/util-crypto';asyncfunctionsendAndWaitForFinalized(tx: any,senderKeypair: any): Promise<void>{// Sign and send the transactionconstunsub=awaittx.signAndSend(senderKeypair,({ status }: any)=>{if(status.isInBlock){console.log(`Transaction included at blockHash ${status.asInBlock}`);}elseif(status.isFinalized){console.log(`Transaction finalized at blockHash ${status.asFinalized}`);unsub();}});}asyncfunctionmain(){awaitcryptoWaitReady();// ConstructconstwsProvider=newWsProvider('ws://127.0.0.1:9944');constkeyring=newKeyring({type: 'sr25519'});constalice=keyring.addFromUri('//Alice');constbob=keyring.addFromUri('//Bob');constapi=awaitApiPromise.create({provider: wsProvider});awaitapi.isReadyOrError;try{// Send a transfer from Alice to Bobconsttransfer=api.tx.balances.transfer(bob.address,12345);awaitsendAndWaitForFinalized(transfer,alice);// Query Bob's balanceconst{data: {free: previousFree},nonce: previousNonce}=awaitapi.query.system.account(bob.address);console.log(`Bob's balance is ${previousFree}, nonce is ${previousNonce}`);}catch(error){console.log(error);}}main().catch(console.error);
Relevant log output
(3) > bun run index.ts
2024-05-20 12:42:16 API/INIT: RPC methods not decorated: btcRelay_verifyBlockHeaderInclusion, issue_getIssueRequests, issue_getVaultIssueRequests, oracle_collateralToWrapped, oracle_wrappedToCollateral, redeem_getRedeemRequests, redeem_getVaultRedeemRequests, replace_getNewVaultReplaceRequests, replace_getOldVaultReplaceRequests, vaultRegistry_getCollateralizationFromVault, vaultRegistry_getCollateralizationFromVaultAndCollateral, vaultRegistry_getIssueableTokensFromVault, vaultRegistry_getPremiumRedeemVaults, vaultRegistry_getRequiredCollateralForVault, vaultRegistry_getRequiredCollateralForWrapped, vaultRegistry_getVaultCollateral, vaultRegistry_getVaultTotalCollateral, vaultRegistry_getVaultsByAccountId, vaultRegistry_getVaultsWithIssuableTokens, vaultRegistry_getVaultsWithRedeemableTokens
2024-05-20 12:42:16 API/INIT: ggxchain-node/12: Not decorating unknown runtime apis: BtcRelayApi/1, VaultRegistryApi/1, IssueApi/1, RedeemApi/1, ReplaceApi/1
Bob's balance is 200000000000000000000012345, nonce is 0============================================================Bun v1.1.8 (89d25807) Windows x64Args: "C:\Users\warch\scoop\apps\bun\current\bun.exe", "run", "index.ts"Features: jsc transpiler_cache(5) tsconfig_paths(2) tsconfig(4) WebSocket Builtins: "bun:main" "node:buffer" "node:crypto" "node:string_decoder" "node:util" "node:util/types" "ws" "node-fetch" RSS: 0.37GB | Peak: 0.37GB | Commit: 4.74GB | Faults: 93033panic(main thread): index out of boundsoh no: Bun has crashed. This indicates a bug in Bun, not your code.To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
https://bun.report/1.1.8/wr189d2580AiggggX2j59Qk7z6Ts369Qu9ir2C8u0ne4ttkegzqkek37xG2t9t1C6r+pFA0eNrLzEtJrVDILy1RyE9TSMovzUspBgBHeAcx
Stack Trace (bun.report)
Bun v1.1.8 (89d2580) on windows x86_64 [RunCommand]
How can we reproduce the crash?
bun run index.ts
- run this on Windows 11. See log as below.JavaScript/TypeScript code that reproduces the crash?
Relevant log output
Stack Trace (bun.report)
Bun v1.1.8 (
89d2580
) on windows x86_64 [RunCommand]panic: index out of bounds
linear_fifo.zig:267
:writableWithSize
websocket_http_client.zig:1173
:consume
uws.zig:731
:on_data
??
uv__process_poll_req
??
uv_run
uws.zig:2619
:run
JSC__VM__holdAPILock
shimmer.zig:186
:cppFn
The text was updated successfully, but these errors were encountered: