odoo / odoo

Odoo. Open Source Apps To Grow Your Business.
https://www.odoo.com
Other
37.69k stars 24.52k forks source link

ODOO Dubugger issue on pycharm is not working.. #162940

Closed anandgautamcbs closed 5 months ago

anandgautamcbs commented 5 months ago

Impacted versions: odoo 17

Problem Statement: ->Before one week everything works fine. But yesterday(22/04/2024) when I have taken the pull form odoo 17 github repository then this issue has arise. ->Odoo Dubugger issue on pycharm is not working and after 2 to 3 seconds the server will automatically closed but when we are using pycharm without dubugger then it works properly.

Expectation : When we start the server using pycharm debugger the server will properly working and not be closed automatically.

I attach some screenshots of pycharm console . kindly check the below attachments.

Please advise

Screenshot 2024-04-23 122530 Screenshot 2024-04-23 122604 Screenshot 2024-04-23 122627

2024-04-23 07:25:09,588 5044 INFO ? odoo: Odoo version 17.0 2024-04-23 07:25:09,596 5044 INFO ? odoo: Using configuration file at D:\NItin\relims_odoo17.cfg 2024-04-23 07:25:09,596 5044 INFO ? odoo: addons paths: ['D:\odoo-server\server\odoo\addons', 'c:\users\cbs-07\appdata\local\openerp s.a\odoo\addons\17.0', 'd:\odoo-server\server\addons', 'd:\nitin\relims_addon\odoo17', 'd:\nitin\relims_addon\odoo17\muk_web_theme', 'd:\odoo-server\server\odoo\addons'] 2024-04-23 07:25:09,596 5044 INFO ? odoo: database: aslam@localhost:5432 2024-04-23 07:25:09,925 5044 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe Fatal Python error: _Py_CheckRecursiveCall: Cannot recover from stack overflow. Python runtime state: initialized

Thread 0x000014c4 (most recent call first): File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 324 in wait File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 607 in wait File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 150 in _on_run File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_comm.py", line 219 in run File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016 in _bootstrap_inner File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973 in _bootstrap

Current thread 0x00002180 (most recent call first): File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_comm.py", line 320 in _on_run File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_comm.py", line 219 in run File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016 in _bootstrap_inner File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973 in _bootstrap

Thread 0x000021a0 (most recent call first): File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 324 in wait File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\queue.py", line 180 in get File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_comm.py", line 368 in _on_run File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_comm.py", line 219 in run File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016 in _bootstrap_inner File "C:\Users\CBS-07\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973 in _bootstrap

Thread 0x0000430c (most recent call first): File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1175 in _do_wait_suspend File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1160 in do_wait_suspend File "D:\odoo-server\server\odoo\addons\base\models\ir_actions_report.py", line 86 in File "", line 241 in _call_with_frames_removed File "", line 883 in exec_module File "", line 688 in _load_unlocked File "", line 1006 in _find_and_load_unlocked File "", line 1027 in _find_and_load File "", line 241 in _call_with_frames_removed File "", line 1078 in _handle_fromlist File "D:\odoo-server\server\odoo\addons\base\models__init.py", line 11 in File "", line 241 in _call_with_frames_removed File "", line 883 in exec_module File "", line 688 in _load_unlocked File "", line 1006 in _find_and_load_unlocked File "", line 1027 in _find_and_load File "", line 241 in _call_with_frames_removed File "", line 1078 in _handle_fromlist File "D:\odoo-server\server\odoo\addons\base\init.py", line 5 in File "", line 241 in _call_with_frames_removed File "", line 883 in exec_module File "", line 688 in _load_unlocked File "", line 1006 in _find_and_load_unlocked File "", line 1027 in _find_and_load File "", line 241 in _call_with_frames_removed File "", line 992 in _find_and_load_unlocked File "", line 1027 in _find_and_load File "", line 241 in _call_with_frames_removed File "", line 992 in _find_and_load_unlocked File "", line 1027 in _find_and_load File "d:\odoo-server\server\addons\web\controllers\binary.py", line 19 in File "", line 241 in _call_with_frames_removed File "", line 883 in exec_module File "", line 688 in _load_unlocked File "", line 1006 in _find_and_load_unlocked File "", line 1027 in _find_and_load File "", line 241 in _call_with_frames_removed File "", line 1078 in _handle_fromlist File "d:\odoo-server\server\addons\web\controllers\init.py", line 4 in File "", line 241 in _call_with_frames_removed File "", line 883 in exec_module File "", line 688 in _load_unlocked File "", line 1006 in _find_and_load_unlocked File "", line 1027 in _find_and_load File "", line 241 in _call_with_frames_removed File "", line 1078 in _handle_fromlist File "d:\odoo-server\server\addons\web\init__.py", line 4 in File "", line 241 in _call_with_frames_removed File "", line 883 in exec_module File "", line 688 in _load_unlocked File "", line 1006 in _find_and_load_unlocked File "", line 1027 in _find_and_load File "D:\odoo-server\server\odoo\modules\module.py", line 395 in load_openerp_module File "D:\odoo-server\server\odoo\service\server.py", line 1251 in load_server_wide_modules File "D:\odoo-server\server\odoo\service\server.py", line 1348 in start File "D:\odoo-server\server\odoo\cli\server.py", line 172 in main File "D:\odoo-server\server\odoo\cli\server.py", line 179 in run File "D:\odoo-server\server\odoo\cli\command.py", line 66 in main File "D:\odoo-server\server\odoo-bin", line 8 in File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18 in execfile File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1500 in _exec File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1493 in run File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2181 in main File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2199 in

Extension modules: _pydevd_bundle.pydevd_cython_win32_310_64, _pydevd_bundle.pydevd_cython, _pydevd_frame_eval.pydevd_frame_evaluator_win32_310_64, psycopg2._psycopg, markupsafe._speedups, lxml._elementpath, lxml.etree, _win32sysloader, win32api, win32com.shell.shell, PIL._imaging, reportlab.lib._rl_accel, lxml.html.clean, lxml.builder, win32service, maxminddb.extension, greenlet._greenlet, psutil._psutil_windows, _sass, reportlab.graphics._renderPM (total: 20)

Process finished with exit code -1073740791 (0xC0000409)

jeroenev commented 5 months ago

please create an issue on Jetbrains Issue Tracker for this (and post link here for reference) I think this is more a problem Jetbrains needs to fix: https://youtrack.jetbrains.com/issues?q=project:%20PyCharm

savvit commented 5 months ago

@vava-odoo you closed this as completed? how did you solve the problem described above?

vava-odoo commented 5 months ago

@savvit I assumed from @jeroenev answer that is was not Odoo-related, but maybe I went too quick. I saw a few errors linked to lxml, isn't it related? See https://github.com/odoo/odoo/issues/163370 for example.

abwa-odoo commented 5 months ago

I had a similar issue, re-installing PyCharm did it for me.