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

MissionPage crashes when non-standard mission is installed #198

Open
zaunfink opened this issue Sep 3, 2024 · 5 comments
Open

MissionPage crashes when non-standard mission is installed #198

zaunfink opened this issue Sep 3, 2024 · 5 comments
Assignees

Comments

@zaunfink
Copy link

zaunfink commented Sep 3, 2024

I'm using giaglobal.json.

When I install any mission via MissionDownloadPage and attempt to view the missions via MissionPage, I get an internal error.

js: Error(%s) in dispatch command: %s TypeError: Cannot read property 'update_input' of undefined pin_update
js: Error(%s) in dispatch command: %s TypeError: Cannot read property 'update_input' of undefined pin_update
js: Error(%s) in dispatch command: %s TypeError: Cannot read property 'update_input' of undefined pin_update
D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\installed_python\3.7.6_GIA_Launcher_Download_Lib\lib\site-packages\urllib3\connectionpool.py:1071: InsecureRequestWarning: Unverified HTTPS request is being made to host 'raw.githubusercontent.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\installed_python\3.7.6_GIA_Launcher_Download_Lib\lib\site-packages\urllib3\connectionpool.py:1071: InsecureRequestWarning: Unverified HTTPS request is being made to host 'github.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\installed_python\3.7.6_GIA_Launcher_Download_Lib\lib\site-packages\urllib3\connectionpool.py:1071: InsecureRequestWarning: Unverified HTTPS request is being made to host 'raw.githubusercontent.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
js: Error(%s) in dispatch command: %s TypeError: Cannot read property 'update_input' of undefined pin_update
Unhandled error in pywebio app
Traceback (most recent call last):
File "D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\installed_python\3.7.6_GIA_Launcher_Download_Lib\lib\site-packages\pywebio\session\threadbased.py", line 261, in run
callback(event['data'])
File "D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\installed_python\3.7.6_GIA_Launcher_Download_Lib\lib\site-packages\pywebio\output.py", line 843, in click_callback
return onclick(btn_val)
File "D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\repositories\GIA_Launcher_Download_Lib\source\webio\page_manager.py", line 24, in load_page
self.page_dict[idx].load()
File "D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\repositories\GIA_Launcher_Download_Lib\source\webio\page.py", line 17, in load
self._on_load()
File "D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\repositories\GIA_Launcher_Download_Lib\source\webio\advance_page.py", line 39, in _on_load
super()._on_load()
File "D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\repositories\GIA_Launcher_Download_Lib\source\webio\page.py", line 27, in _on_load
self._load() # 加载主页
File "D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\repositories\GIA_Launcher_Download_Lib\source\webio\webpages\mission.py", line 222, in _load
self._render_scopes()
File "D:\Downloads\PGPLC-0.5.1\python-git-program-launcher\repositories\GIA_Launcher_Download_Lib\source\webio\webpages\mission.py", line 107, in _render_scopes
if GLOBAL_LANG in self.MISSION_META[mission_name]['title']:
TypeError: argument of type 'NoneType' is not iterable

@infstellar infstellar self-assigned this Sep 5, 2024
@infstellar
Copy link
Owner

thanks for your issue. I'm sorry for the lack of support for English at present. I will try my best to make up the English support next week.

infstellar added a commit that referenced this issue Sep 5, 2024
fix: unexcept None type in mission #198
@infstellar
Copy link
Owner

I tried to fix the bug. is it works?

@zaunfink
Copy link
Author

zaunfink commented Sep 5, 2024

Thank you for your fast response! I can now add the mission and the list compiles correctly, but the entry has no title and shows this error in the console:

2024-09-05 19:18:45.094 | ERROR | source.webio.webpages.mission:_render_scopes:112 - mission GIA_SangoPearl_1 has not title?

@infstellar
Copy link
Owner

infstellar commented Sep 9, 2024

This may be because there is no English text in the title of mission, I will try to fix it.

@infstellar
Copy link
Owner

infstellar commented Sep 9, 2024

This bug has been fixed and had tested on my computer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants