-
Notifications
You must be signed in to change notification settings - Fork 263
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
[Bug]: Maptool hangs at splash-screen after macro import with unkown asset-link #3425
Comments
A quick test shows that this also impacts Linux, and a check of the code suggests all platforms will be impacted similarly. As far as I can tell from drilling into the code, this is what causes the issue: At a high level, the problem stems from a weakness in MapTool's initialization code: there is no guarantee that all the "plumbing" exists (e.g., the server command, or the connection beneath that) prior to all the UI-centric code that might rely on it. In this case, the UI is trying to load assets and expects to be able to transfer them from the server, but since the server plumbing isn't set up yet that just fails. At a very low level, this particular issue is caused by a weakness in realized in
Right now the problems with it are:
We can work around this for now by just checking whether the
|
This addresses RPTools#3425. It can happen that early in the initialization process, assets are requested to populate the UI even before any personal server has been started or `ServerCommand` created. In this case, we cannot rely on a server call to resolve and image and call pending listeners. To work around this problem, we fallback to using a broken image if the server is not available.
This addresses RPTools#3425. It can happen that early in the initialization process, assets are requested to populate the UI even before any personal server has been started or `ServerCommand` created. In this case, we cannot rely on a server call to resolve and image and call pending listeners. To work around this problem, we fallback to using a broken image if the server is not available.
Tested. Macros with invalid asset IDs can now be imported and no longer cause MT to hang on launch. |
Describe the Bug
Importing a macro featuring an ICON (asset-link) into maptool's Global macro window leads to the effect that maptool does not start anymore after closing.
Starting MT again keeps it frozen at the splash-screen, last entry in log is: 'INFO net.rptools.maptool.client.AppUpdate - Cleaned version: 1.11.5'. Memory-usage displayed in TM: ~232MB, no CPU activity.
Only de-install, clearing of all reg-entries referring 'maptool', and re-start of the computer allows a functionig new-install.
The issue can be narrowed down to the case, where the asset-link is not known ('red X as defaouzlt ICON)
To Reproduce
Expected Behaviour
I would expect MT to ignore the unknown asset-link and keep the default 'red X' Icon
Screenshots
No response
MapTool Info
version 1.11.5
Desktop
Windows 11, 64bit
Additional Context
No response
The text was updated successfully, but these errors were encountered: