<div dir="ltr">Thanks James I was not starting Sugar as a desktop session. Now things work fine for me.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 21, 2019 at 12:26 PM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks.<br>
<br>
Are you sure you gave me the correct log?  There's no segmentation<br>
fault shown there.  The log should be .sugar/default/logs/shell.log<br>
<br>
You can gather more information about a segmentation fault using gdb<br>
and backtrace command.<br>
<br>
Further reply in context below.<br>
<br>
On Tue, May 21, 2019 at 12:10:20PM +0530, ANIKET MATHUR wrote:<br>
> Regarding the Segmentation Fault.<br>
> <br>
>     (main.py:2041): Gtk-WARNING **: 12:04:58.709: Theme parsing error:<br>
>     gtk-widgets.css:16:32: The style property GtkExpander:expander-size is<br>
>     deprecated and shouldn't be used anymore. It will be removed in a future<br>
>     version<br>
> <br>
>     (main.py:2041): Gtk-WARNING **: 12:04:58.709: Theme parsing error:<br>
>     gtk-widgets.css:17:35: The style property GtkExpander:expander-spacing is<br>
>     deprecated and shouldn't be used anymore. It will be removed in a future<br>
>     version<br>
> <br>
>     (metacity:2048): metacity-WARNING **: 12:04:58.799: Screen 0 on display<br>
>     ":0" already has a window manager; try using the --replace option to<br>
>     replace the current window manager.<br>
>     1558420503.333096 ERROR root: window manager did fail, restarting<br>
>     Traceback (most recent call last):<br>
<br>
Confirm you are starting Sugar as a desktop session and not as a<br>
program inside another desktop session?<br>
<br>
For example, on my Ubuntu 18.04 test system, `ps axfww` shows jarabe<br>
to be a child process of gdm-x-session, gdm-session-worker, and gdm3;<br>
thus;<br>
<br>
...<br>
 1885 ?        Ssl    0:00 /usr/sbin/gdm3<br>
 2547 ?        Sl     0:00  \_ gdm-session-worker [pam/gdm-password]<br>
 2557 tty2     Ssl+   0:00      \_ /usr/lib/gdm3/gdm-x-session --run-script sugar<br>
 2560 tty2     Sl+    0:10          \_ /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3<br>
 2569 tty2     Sl+    0:10          \_ python2 -m jarabe.main<br>
 2635 ?        Ss     0:00              \_ /usr/bin/ssh-agent /usr/bin/im-launch sugar<br>
 2659 tty2     Z+     0:00              \_ [sugar] <defunct><br>
 2670 tty2     Sl+    0:00              \_ metacity --no-force-fullscreen --no-composite<br>
<br>
>       File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 604, in<br>
>     msg_reply_handler<br>
>         reply_handler(*message.get_args_list(**get_args_opts))<br>
>       File "/usr/local/lib/python2.7/dist-packages/jarabe/model/<br>
>     neighborhood.py", line 738, in __got_accounts_cb<br>
>         self._server_account = self._ensure_server_account(account_paths)<br>
>       File "/usr/local/lib/python2.7/dist-packages/jarabe/model/<br>
>     neighborhood.py", line 851, in _ensure_server_account<br>
>         properties)<br>
>       File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in<br>
>     __call__<br>
>         return self._proxy_method(*args, **keywords)<br>
>       File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in<br>
>     __call__<br>
>         **keywords)<br>
>       File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in<br>
>     call_blocking<br>
>         message, timeout)<br>
>     dbus.exceptions.DBusException:<br>
>     org.freedesktop.Telepathy.Error.NotImplemented: Protocol 'jabber' not found<br>
>     on CM 'gabble'<br>
<br>
Is Telepathy Gabble installed?<br>
<br>
>     /usr/local/lib/python2.7/dist-packages/jarabe/main.py:378: Warning:<br>
>     g_value_transform: assertion 'G_IS_VALUE (src_value)' failed<br>
>       Gtk.main()<br>
>     /usr/local/lib/python2.7/dist-packages/jarabe/main.py:378: Warning: unable<br>
>     to set property 'buddy' of type 'PyObject' from value of type '(null)'<br>
>       Gtk.main()<br>
> <br>
>     (metacity:2175): metacity-WARNING **: 12:05:04.405: Screen 0 on display<br>
>     ":0" already has a window manager; try using the --replace option to<br>
>     replace the current window manager.<br>
>     /usr/local/lib/python2.7/dist-packages/jarabe/main.py:378: Warning:<br>
>     g_spawn_command_line_async: assertion 'command_line != NULL' failed<br>
>       Gtk.main()<br>
> <br>
> This is the log that I am getting on starting Sugar Desktop.<br>
<br>
Apart from the log, is there anything else that happens?  i.e. does<br>
Sugar start and show the activity ring or Journal?<br>
<br>
> On Wed, May 15, 2019 at 1:49 PM James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
> <br>
>     Thanks!<br>
> <br>
>     I've proposed a pull request to let the caller specify the Python<br>
>     version, and a draft pull request documenting how to build for both<br>
>     versions.<br>
> <br>
>     [2]<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/411" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/411</a><br>
>     [3]<a href="https://github.com/sugarlabs/sugar/pull/829" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/829</a><br>
> <br>
>     Aniket, when you say v0.113 this means you are using either git tag<br>
>     v0.113 (i.e. e30b73f) or tarball.  Seems unlikely you are doing that,<br>
>     but instead you would be using HEAD of master branch instead.  Is my<br>
>     guess right?<br>
> <br>
>     Regarding the segmentation fault, please check<br>
>     .sugar/default/logs/shell.log for any details, or run within gdb and<br>
>     capture a backtrace of all threads.<br>
> <br>
>     On Wed, May 15, 2019 at 01:31:23PM +0530, ANIKET MATHUR wrote:<br>
>     > Regards,<br>
>     > I agree with, James. What I think is that since [1]this pr is not yet<br>
>     merged<br>
>     > into master, sugar requires python 2, <br>
>     > and the way I was installing Sugar builds the toolkit for Python 3. So I<br>
>     first<br>
>     > installed Sugar from sucrose and then installed the toolkit-gtk3 v0.113<br>
>     by<br>
>     > hand.<br>
>     > Doing this I am able to test ported activities through the command line<br>
>     using<br>
>     > Ubuntu 18.04 terminal, but opening Sugar home view causes "Segmentation<br>
>     fault"<br>
>     > with a warning "python2.7 has stopped unexpectedly". I am not yet able to<br>
>     > figure out the reason for this.<br>
>     ><br>
>     > Regarding the Python version in [2][4]<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a>, I think that the<br>
>     caller should<br>
>     > be allowed to specify the version or alternatively since we are porting<br>
>     to six,<br>
>     > a method building for both python2 and python3 would be great.<br>
>     ><br>
>     > I don't expect myself to be 100 percent right and expect to be corrected<br>
>     > wherever required.<br>
>     ><br>
>     > Thanks a lot, everyone. ☺<br>
>     ><br>
>     > On Wed, May 15, 2019 at 3:17 AM James Cameron <[3][5]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>><br>
>     wrote:<br>
>     ><br>
>     >     G'day Aniket,<br>
>     ><br>
>     >     If you were using the native sugar build method, then you are using<br>
>     >     HEAD, which contains all patches since 0.113.  Don't try to apply the<br>
>     >     patch that Alex pointed out, as it is already applied.<br>
>     ><br>
>     >     The error message "ImportError: No module named sugar3" is caused by<br>
>     >     not installing the Toolkit for Python 2.<br>
>     ><br>
>     >     Sugar 0.113 requires Python 2.<br>
>     ><br>
>     >     Toolkit by default installs for Python 3.<br>
>     ><br>
>     >     You can verify this is the situation by testing the import by hand<br>
>     >     using different versions of Python;<br>
>     ><br>
>     >     python3 -c 'import sugar3'  # expect pass<br>
>     ><br>
>     >     python2 -c 'import sugar3'  # expect fail<br>
>     ><br>
>     >     You'll find in [4][6]<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> where the Python version is chosen.<br>
>     ><br>
>     >     [5][7]<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/</a><br>
>     <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
>     >     #L18<br>
>     ><br>
>     >     Perhaps that line should allow the caller to specify the version.<br>
>     ><br>
>     >     What do you think?<br>
>     ><br>
>     >     On Tue, May 14, 2019 at 04:42:16PM +0530, ANIKET MATHUR wrote:<br>
>     >     > Greetings everyone,<br>
>     >     ><br>
>     >     > I was installing Sugar v0.113 using the Native Sugar build method <br>
>     [1]<br>
>     >     here. I<br>
>     >     > was using Ubuntu 18.10. After installation, on running Sugar I<br>
>     received<br>
>     >     the<br>
>     >     > error message "ImportError: No module named sugar3". Need help with<br>
>     a<br>
>     >     couple of<br>
>     >     > questions <br>
>     >     > 1) Is there a need to have a build of the older version for v0.113<br>
>     to<br>
>     >     work<br>
>     >     > properly?<br>
>     >     > (never paid attention to that before).<br>
>     >     >  2) What is the correct procedure for installing v0.113?<br>
>     >     > Thanks!  <br>
>     >     ><br>
>     >     > References:<br>
>     >     ><br>
>     >     > [1] [6][8]<a href="https://github.com/sugarlabs/sugar/blob/master/docs/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/</a><br>
>     >     development-environment.md<br>
>     ><br>
>     >     > _______________________________________________<br>
>     >     > Sugar-devel mailing list<br>
>     >     > [7][9]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>     >     > [8][10]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>     ><br>
>     >     --<br>
>     >     James Cameron<br>
>     >     [9][11]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
>     ><br>
>     > References:<br>
>     ><br>
>     > [1] [12]<a href="https://github.com/sugarlabs/sugar/pull/805" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/805</a><br>
>     > [2] [13]<a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
>     > [3] mailto:[14]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
>     > [4] [15]<a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
>     > [5] [16]<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/</a><br>
>     <a href="http://configure.ac#L18" rel="noreferrer" target="_blank">configure.ac#L18</a><br>
>     > [6] [17]<a href="https://github.com/sugarlabs/sugar/blob/master/docs/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/</a><br>
>     development-environment.md<br>
>     > [7] mailto:[18]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>     > [8] [19]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>     > [9] [20]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> <br>
>     --<br>
>     James Cameron<br>
>     [21]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> <br>
> References:<br>
> <br>
> [1] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [2] <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/411" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/411</a><br>
> [3] <a href="https://github.com/sugarlabs/sugar/pull/829" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/829</a><br>
> [4] <a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
> [5] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [6] <a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
> [7] <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/configure.ac" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/configure.ac</a><br>
> [8] <a href="https://github.com/sugarlabs/sugar/blob/master/docs/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/</a><br>
> [9] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [10] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [11] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [12] <a href="https://github.com/sugarlabs/sugar/pull/805" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/805</a><br>
> [13] <a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
> [14] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [15] <a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
> [16] <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/configure.ac#L18" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/configure.ac#L18</a><br>
> [17] <a href="https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md</a><br>
> [18] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [19] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [20] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [21] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
<br>
-- <br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</blockquote></div>