Anonymous | Login | 2024-04-23 20:40 CEST |
Main | My View | View Issues | Change Log | Wiki | Tavern | News |
Viewing Issue Simple Details [ Jump to Notes ] [ Wiki ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||||
0007965 | [DCSS] Bug Report | major | sometimes | 2014-01-09 02:29 | 2014-01-09 06:18 | ||||||||
Reporter | araganzar | View Status | public | ||||||||||
Assigned To | Medar | ||||||||||||
Priority | normal | Resolution | done | ||||||||||
Status | resolved | Product Branch | 0.14 ancient branch | ||||||||||
Summary | 0007965: WebTiles sometimes fails to load pass the load screen | ||||||||||||
Description |
(Edit, old summary: Reason webtiles is failing to pass load screen) The message handler for the 'ui_state' message, which turns off the loading screen and turns on display of the dungeon, is defined in game.js. However, game.js is loaded conditionally using require.js. But for a specatator, at the time of the calls to 'ui_state', it appears to be inconsistent or a matter of timing whether game.js has been loaded. Therefore the ui state often never shifts, so the "loader" layer is never hidden and the "normal" later is never brought forward. The end result is players are refreshing the screen again and again, trying multiple sessions, switching, etc. When this occurs, if one logs calls one can see the UI continuing to respond to messages, but since the layer has never been brought forward the only thing you will see on-screen is people opening and closing menus. For a player, game.js is loaded by the time one of the ui_state messages fire and there is no problem playing. However, before it IS loaded various messages such as 'version' are failing because the proper .js files have not been required. This behavior may be observed by setting a breakpoint on function handle_message in comm.js and conditioning the breakpoint on msg.msg == "ui_state", then loading a spectator game on crawl.s-z.org (may require some lag, which is generally not a problem lately). At the breakpoint you will see that game.js is not loaded and that the message handler for "ui_state" therefore cannot be found. Could game.js be loaded unconditionally, or forced to load when a spectator screen loads? |
||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files | |||||||||||||
|
Notes | |
(0024946) Medar (developer) 2014-01-09 06:18 |
Should be fixed by 0.14-a0-1816-gc9fd7b2. As long as the player doesn't have a cached client.js file. Thanks for the report. |
Mantis 1.1.8[^] Copyright © 2000 - 2009 Mantis Group |