Nmap Development mailing list archives

Crash Report


From: "Kaleb Zeng" <qingshan.tseng () foxmail com>
Date: Sun, 18 Jun 2023 14:24:31 +0800

&nbsp; &nbsp; Nmap&nbsp;?????????????????????????????????? Windows 11&nbsp;?????? 
Zenmap&nbsp;????????????????????????????????Profile??????????????New Profile or Command??????&nbsp;??Edit Selected 
Profile????????&nbsp;Zenmap&nbsp;?????????????????????????????????????????? Bug ?????? UTF-8&nbsp;?????????????? 
Python3 ????????????&nbsp;UTF-8&nbsp;?????????? Windows&nbsp;???????????????????????? 
UTF-16???????????????????????????????????????????? Bug????????


&nbsp; &nbsp; Hello Nmap developers, I am a Chinese user and I am having some problems with Zenmap on Windows 11. When 
I open the "New Profile or Command" or "Edit Selected Profile" options in the "Profile" menu bar at the top, Zenmap 
crashes and quits immediately, which affects usage. I suspect this bug is probably related to UTF-8 encoding, since 
Python3 uses UTF-8 by default, but Windows does not (it seems to use UTF-16,&nbsp;but I'm not really sure), and I hope 
this bug is fixed in time. Thanks!







Zenmap Version??7.94
SystemInfo??
????    Windows 11 ????????????
????    22H2
????????        ?6?02022-?6?010-?6?006
????????????    22621.1848
????    Windows Feature Experience Pack 1000.22642.1000.0



Screenshot:







Error Details:
Version: 7.94
Traceback (most recent call last):
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapGUI\ScriptInterface.py", line 261, in 
script_list_timer_callback
&nbsp; &nbsp; callback(True, process)
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapGUI\ScriptInterface.py", line 270, in 
initial_script_list_cb
&nbsp; &nbsp; if status and self.handle_initial_script_list_output(process):
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapGUI\ScriptInterface.py", line 301, in 
handle_initial_script_list_output
&nbsp; &nbsp; for entry in get_script_entries(
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapCore\ScriptMetadata.py", line 423, in 
get_script_entries
&nbsp; &nbsp; metadata = ScriptMetadata(scripts_dir, nselib_dir)
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapCore\ScriptMetadata.py", line 286, in 
__init__
&nbsp; &nbsp; self.construct_library_arguments()
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapCore\ScriptMetadata.py", line 416, in 
construct_library_arguments
&nbsp; &nbsp; self.library_arguments[libname] = self.get_script_args(filepath)
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapCore\ScriptMetadata.py", line 362, in 
get_script_args
&nbsp; &nbsp; args = ScriptMetadata.get_script_args_from_file(f)
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapCore\ScriptMetadata.py", line 370, in 
get_script_args_from_file
&nbsp; &nbsp; for tag_name, tag_text in nsedoc_tags_iter(f):
&nbsp; File "D:\Program Files\Nmap\zenmap\lib\python3.10\site-packages\zenmapCore\ScriptMetadata.py", line 232, in 
nsedoc_tags_iter
&nbsp; &nbsp; for line in f:
&nbsp; File "dist/zenmap-w64/mingw64/lib/python3.10/codecs.py", line 322, in decode
UnicodeDecodeError: 'mbcs' codec can't decode byte 0x93 in position 5665: No mapping for the Unicode character exists 
in the target code page.







qingshan.tseng () foxmail com

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at https://seclists.org/nmap-dev/

Current thread: