help > RE: Crash report: Python scripts
Oct 7, 2019  12:10 PM | Lorenzo Mancuso
RE: Crash report: Python scripts
Dear Chris,

thank you for your answer. I already have python 3 installed, but I keep the 2.7 version as default because, as far as I know, the OS might display some problem otherwise. Thus, I believe that starting Surfice with the -R option might be the safest choice, however it seems that it do not work.

The .zip was unpacked in the Documents folder, and to have the surfice executable to be recognized by the bash, I added

export PATH=/home/lorenzo/Documenti/Surf_Ice:$PATH

to the .bashrc file. However, surfice -R do not solve the problem. This is the output on the terminal after this command:

[DEBUG] Name com.canonical.AppMenu.Registrar does not exist on the session bus

OpenGL 3.3 with 8/8/8/24 bits of R/G/B/Dpth required. Use glxinfo to test capabilities.

(surfice:7295): Gtk-WARNING **: 13:45:02.132: gtk_widget_size_allocate(): attempt to allocate widget with width -2 and height 0

And this after hitting Ctrl+R in SurfIce:

Error: could not find symbol "PyUnicodeUCS2_FromWideChar"
Python could not be properly initialized. We must quit.
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$0000000000000000
$0000000000889104
$00000000004EACAD
$000000000066D049
$000000000065B0E8
$000000000066F7FF
$000000000046535F
$0000000000466C11
$0000000000431130
$0000000000462296
Exception at 0000000000000000: EAccessViolation:
Access violation.
Exception at 000000000043112D: EAccessViolation:
Access violation.

These are the same outputs obtained wirhout the -R option, thus I think that it simply do not work. I searched a bit on the internet to find info on this option, or how to launch a command autodetecting the latest version of Python, but i found nothing. By the way, double clicking on the executable holding the Ctrl key do not do anything, while hitting Ctrl+Enter open Surfice, but it still crahes after lauching a Python script.

This is the output of locate site.py

/home/lorenzo/anaconda3/envs/orange3/lib/python3.7/site.py
/home/lorenzo/anaconda3/lib/python3.7/site.py
/home/lorenzo/anaconda3/lib/python3.7/site-packages/boto/s3/website.py
/home/lorenzo/anaconda3/lib/python3.7/site-packages/rope/base/oi/type_hinting/providers/composite.py
/home/lorenzo/anaconda3/lib/python3.7/site-packages/rope/base/oi/type_hinting/resolvers/composite.py
/home/lorenzo/anaconda3/pkgs/boto-2.49.0-py37_0/lib/python3.7/site-packages/boto/s3/website.py
/home/lorenzo/anaconda3/pkgs/python-3.7.3-h0371630_0/lib/python3.7/site.py
/home/lorenzo/anaconda3/pkgs/python-3.7.3-h33d41f4_1/lib/python3.7/site.py
/home/lorenzo/anaconda3/pkgs/rope-0.14.0-py_0/site-packages/rope/base/oi/type_hinting/providers/composite.py
/home/lorenzo/anaconda3/pkgs/rope-0.14.0-py_0/site-packages/rope/base/oi/type_hinting/resolvers/composite.py
/snap/core/7396/usr/lib/python3.5/site.py
/snap/core/7713/usr/lib/python3.5/site.py
/snap/core18/1144/usr/lib/python3.6/site.py
/snap/core18/1192/usr/lib/python3.6/site.py
/snap/gnome-3-28-1804/67/usr/lib/python3.6/site.py
/snap/gnome-3-28-1804/71/usr/lib/python3.6/site.py
/snap/pulsemixer/23/usr/lib/python3.5/site.py
/snap/pulsemixer/250/usr/lib/python3.5/site.py
/usr/lib/python2.7/site.py
/usr/lib/python2.7/site.pyc
/usr/lib/python2.7/dist-packages/Xlib/ext/composite.py
/usr/lib/python2.7/dist-packages/Xlib/ext/composite.pyc
/usr/lib/python3/dist-packages/Xlib/ext/composite.py
/usr/lib/python3.6/site.py
/usr/local/fsl/extras/include/boost/tools/build/test/composite.py
/usr/local/fsl/fslpython/envs/fslpython/lib/python3.7/site.py
/usr/local/fsl/fslpython/lib/python3.7/site.py
/usr/local/fsl/fslpython/pkgs/python-3.7.2-h0371630_0/lib/python3.7/site.py
/usr/local/fsl/fslpython/pkgs/python-3.7.3-h0371630_0/lib/python3.7/site.py
/usr/share/apport/package-hooks/source_libxcomposite.py
/usr/share/apport/package-hooks/source_x11proto-composite.py

Threaded View

TitleAuthorDate
Lorenzo Mancuso Oct 6, 2019
Chris Rorden Oct 14, 2019
Lorenzo Mancuso Oct 16, 2019
zetetic Oct 4, 2021
Chris Rorden Oct 5, 2021
Chris Rorden Oct 10, 2019
Lorenzo Mancuso Oct 14, 2019
Chris Rorden Oct 7, 2019
Lorenzo Mancuso Oct 7, 2019
Lorenzo Mancuso Oct 8, 2019
Chris Rorden Oct 7, 2019
RE: Crash report: Python scripts
Lorenzo Mancuso Oct 7, 2019
Chris Rorden Oct 7, 2019