Page 1 of 1

Exception when creating Patch for 1.5.0 Version

Posted: Sun Jun 23, 2019 1:49 pm
by cloudwalker78
Hi
Im getting following error on white browser screen when clicking on Patch with Version 1.5.0 with Max Speed Patch enabled:

Code: Select all

Exception occured: Traceback (most recent call last): File "/root/9botcfw/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/root/9botcfw/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/root/9botcfw/web/app.py", line 67, in patch_firmware patcher.max_speed(max_speed) File "/root/9botcfw/patcher.py", line 156, in max_speed ofs = FindPattern(self.data, sig) + 4 File "/root/9botcfw/patcher.py", line 61, in FindPattern while signature[matches] is None or signature[matches] == (data[i + matches] & (mask[matches] if mask else 0xFF)): IndexError: bytearray index out of range
Can this be fixed?

KR
Cloud

Re: Exception when creating Patch for 1.5.0 Version

Posted: Sat Jun 29, 2019 2:03 pm
by AbsolutoCaos
Hi
Im getting following error on white browser screen when clicking on Patch with Version 1.5.0 with Max Speed Patch enabled:

Code: Select all

Exception occured: Traceback (most recent call last): File "/root/9botcfw/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/root/9botcfw/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/root/9botcfw/web/app.py", line 67, in patch_firmware patcher.max_speed(max_speed) File "/root/9botcfw/patcher.py", line 156, in max_speed ofs = FindPattern(self.data, sig) + 4 File "/root/9botcfw/patcher.py", line 61, in FindPattern while signature[matches] is None or signature[matches] == (data[i + matches] & (mask[matches] if mask else 0xFF)): IndexError: bytearray index out of range
Can this be fixed?

KR
Cloud
Wile the cfw script for the 150 version is being revised, don't use the speed mod field.
It may take time as segway must have changed the address in 150 related to speed and the CFW script can't touch it thus giving the error you presented, until our heroes who wrote this script get the problem fixed!