Open Bug 1503358 Opened 6 years ago Updated 2 years ago

mozregression-gui crash: LookupError: no codec search functions registered: can't find encoding

Categories

(Testing :: mozregression, defect)

defect

Tracking

(Not tracked)

People

(Reporter: cg+zbmvyynohtmvyyn, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

Start any mozregression-gui version gui-0.9.24 to gui-0.9.31.
Using arch-linux 64 bit with latest updates as of 30-oct-2018


Actual results:

App crashes. Error message shown:
$ ./mozregression-gui 
Traceback (most recent call last):
  File "/home/travis/build/mozilla/mozregression/venv/local/lib/python2.7/site-packages/cx_Freeze/initscripts/__startup__.py", line 14, in run
  File "/home/travis/build/mozilla/mozregression/venv/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 26, in run
  File "mozregui/main.py", line 3, in <module>
  File "./mozregui/patch_requests.py", line 17, in patch
  File "/usr/local/lib/python2.7/dist-packages/requests/__init__.py", line 43, in <module>
  File "/usr/local/lib/python2.7/dist-packages/urllib3/__init__.py", line 8, in <module>
  File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 35, in <module>
  File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 3, in <module>
  File "/usr/local/lib/python2.7/dist-packages/urllib3/filepost.py", line 12, in <module>
LookupError: no codec search functions registered: can't find encoding



Expected results:

Should start normally, like version gui-0.9.22 (the latest which runs ok).
Version 0.9.23 not tested
I have exactly the same issue. Same versions and all. I think the problem is cx_Freeze (as reported here upstream[1]) and was introduced into mozregression-gui at 0.9.24 via this commit[2].

[1] https://github.com/anthony-tuininga/cx_Freeze/issues/325
[2] https://github.com/mozilla/mozregression/commit/2a5c4f7f2be485bb5471deff03deae90c918cf8b
By the way, I'm running Debian 9.5, with latest updates.
Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1466110

This sounds plausible -- unfortunately the commit was needed to make the GUI work again on Windows. I don't really have time to track this problem down, but would accept a patch/PR which addresses the issue.

(In reply to William Lachance (:wlach) (use needinfo!) from comment #3)

This sounds plausible -- unfortunately the commit was needed to make the GUI work again on Windows. I don't really have time to track this problem down, but would accept a patch/PR which addresses the issue.

Do you know if there is any information on how to create the standalone version from the source code? To be able to test an eventual PR.

I am getting the same error on gui-0.9.36 (Ubuntu 18.04 64-bit). This is preventing me from generating a regression range for bug #1524156.

As I workaround I was staying in version 0.9.22. But now Firefox has a profile downgrade protection which is only avoided since 0.9.36. Bisecting has become so painful.

Flags: needinfo?(wlachance)

(In reply to Eduardo Trápani from comment #4)

(In reply to William Lachance (:wlach) (use needinfo!) from comment #3)

This sounds plausible -- unfortunately the commit was needed to make the GUI work again on Windows. I don't really have time to track this problem down, but would accept a patch/PR which addresses the issue.

Do you know if there is any information on how to create the standalone version from the source code? To be able to test an eventual PR.

Sorry, somehow I missed this. Thanks for the needinfo. There are instructions on building the GUI here:

https://github.com/mozilla/mozregression/blob/master/gui/README.rst

I am in the middle of porting mozregression to python 3, which will allow us to consider other bundling options (or make existing ones work differently) for the GUI, which I suspect may fix this bug. My work in progress is here:

https://github.com/mozilla/mozregression/pull/513

As part of this work, I could probably also take another look at the python gui. I probably won't have time to look at that again until later this week or early next.

Flags: needinfo?(wlachance)

I have the same bug in linux
python 2.7.15

./mozregression-gui

Traceback (most recent call last):
File "/home/travis/build/mozilla/mozregression/venv/local/lib/python2.7/site-packages/cx_Freeze/initscripts/startup.py", line 14, in run
File "/home/travis/build/mozilla/mozregression/venv/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 26, in run
File "mozregui/main.py", line 3, in <module>
File "./mozregui/patch_requests.py", line 17, in patch
File "/usr/local/lib/python2.7/dist-packages/requests/init.py", line 43, in <module>
File "/usr/local/lib/python2.7/dist-packages/urllib3/init.py", line 8, in <module>
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 35, in <module>
File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 3, in <module>
File "/usr/local/lib/python2.7/dist-packages/urllib3/filepost.py", line 12, in <module>
LookupError: no codec search functions registered: can't find encoding

Still the same.

I have the same problem.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.