Skip to content

RIDE to crash #3009

@huangyizhao300624

Description

@huangyizhao300624

When the content entered in a cell is in JSON format, editing the cell content and adjusting the cell width often causes RIDE to crash

input text:

{
"access_from": "1",
"access_token": "1234",
"category_name": "${a}",
"client_sign": "{0c4a}",
"device_id": " ${device_id}",
"lang": "en",
"member_id": "${member_id}",
"platform": "1",
"timestamp": "1769418079362",
"word_lang": "en"
}

error log:

wx._core.wxAssertionError: C++ assertion "m_count == -1 || m_count == -2" failed at ....\src\msw\textctrl.cpp(304) in UpdatesCountFilter::UpdatesCountFilter(): wrong initial m_updatesCount value

The above exception was the direct cause of the following exception:

SystemError: <class 'wx._core.CommandEvent'> returned a result with an exception set
wx._core.wxAssertionError: C++ assertion "m_count == -1 || m_count == -2" failed at ....\src\msw\textctrl.cpp(304) in UpdatesCountFilter::UpdatesCountFilter(): wrong initial m_updatesCount value

The above exception was the direct cause of the following exception:

SystemError: <class 'wx._core.CommandEvent'> returned a result with an exception set
wx._core.wxAssertionError: C++ assertion "m_count == -1 || m_count == -2" failed at ....\src\msw\textctrl.cpp(304) in UpdatesCountFilter::UpdatesCountFilter(): wrong initial m_updatesCount value

The above exception was the direct cause of the following exception:

SystemError: <class 'wx._core.CommandEvent'> returned a result with an exception set

error log2:

Traceback (most recent call last):
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 107, in on_key_down
self.show_content_assist()
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 361, in show_content_assist
if self._populate_content_assist():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 368, in _populate_content_assist
(self.gherkin_prefix, value) = self._remove_bdd_prefix(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 374, in _remove_bdd_prefix
bdd_prefix = [f"{x.lower()} " for x in obtain_bdd_prefixes(self.language)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 34, in obtain_bdd_prefixes
lang = Language.from_name(language[0] if isinstance(language, list) else language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robot\conf\languages.py", line 241, in from_name
raise ValueError(f"No language with name '{name}' found.")
ValueError: No language with name 'zh_CN' found.
Traceback (most recent call last):
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 107, in on_key_down
self.show_content_assist()
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 361, in show_content_assist
if self._populate_content_assist():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 368, in _populate_content_assist
(self.gherkin_prefix, value) = self._remove_bdd_prefix(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 374, in _remove_bdd_prefix
bdd_prefix = [f"{x.lower()} " for x in obtain_bdd_prefixes(self.language)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 34, in obtain_bdd_prefixes
lang = Language.from_name(language[0] if isinstance(language, list) else language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robot\conf\languages.py", line 241, in from_name
raise ValueError(f"No language with name '{name}' found.")
ValueError: No language with name 'zh_CN' found.
Traceback (most recent call last):
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 107, in on_key_down
self.show_content_assist()
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 361, in show_content_assist
if self._populate_content_assist():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 368, in _populate_content_assist
(self.gherkin_prefix, value) = self._remove_bdd_prefix(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 374, in _remove_bdd_prefix
bdd_prefix = [f"{x.lower()} " for x in obtain_bdd_prefixes(self.language)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robotide\editor\contentassist.py", line 34, in obtain_bdd_prefixes
lang = Language.from_name(language[0] if isinstance(language, list) else language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\dm_autotest\venv\Lib\site-packages\robot\conf\languages.py", line 241, in from_name
raise ValueError(f"No language with name '{name}' found.")
ValueError: No language with name 'zh_CN' found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMalfunctions that should be fixed to comply with the expected behaviorprio-mediumBehaving incorrectly, but still somewhat usable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions