Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async_load undefined in async network event? #4363

Closed
gm-bug-reporter bot opened this issue Jan 15, 2024 · 4 comments
Closed

async_load undefined in async network event? #4363

gm-bug-reporter bot opened this issue Jan 15, 2024 · 4 comments
Assignees
Labels
runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@gm-bug-reporter
Copy link

Description

In target HTML5, Uncaught Javascript error when querying "type" key of async_load,
It is reported to be undefined in event "Async - Networking".

Steps To Reproduce

Switch target to HTML5 and use websocket protocol for sockets
Create a simple client (network_create_socket)
Along with a server (network_create_server)
Client does network_connect_async to the server and waits
When receiving a response, client's "async_load" map is undefined in event "network_type_non_blocking_connect"

64fc1910-0d14-4cfa-b605-46bc660dea21

@gm-bug-reporter gm-bug-reporter bot added the runner-bug In-game bugs with the "GameMaker Studio 2" runtimes label Jan 15, 2024
@yoyo-danielc
Copy link

I stumbled over this while trying to reproduce a different issue, looks codegen related. Run attached sample under HTML5, then press C and wait a few seconds to trigger the error. Server isn't needed since the async event gets raised when the connection fails.

server_hang_test.zip

@vitawrap
Copy link

vitawrap commented Jan 16, 2024

I stumbled over this while trying to reproduce a different issue, looks codegen related. Run attached sample under HTML5, then press C and wait a few seconds to trigger the error. Server isn't needed since the async event gets raised when the connection fails.

server_hang_test.zip

Yep, exact same result as stated in the bug report.
and trying to counter those errors by using ds_map_find_value instead of the map accessor [? key] causes a websocket handshake to hang the server forever in a situation where a server is needed (since the codegen seems successful when using the function instead of the accessor)...

@rwkay
Copy link

rwkay commented Jan 16, 2024

Fixed in 2024.2

@rwkay rwkay closed this as completed Jan 16, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Team Workload Jan 16, 2024
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Jan 16, 2024
@mgeddesGM
Copy link

verified as of IDE v2024.200.0.478 Runtime v2024.200.0.493

@mgeddesGM mgeddesGM moved this from Ready for QA to Verified in Team Workload Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Archived in project
Development

No branches or pull requests

4 participants