Open shaansubbaiah opened 3 years ago
Haven't been able to do much investigation but this also appears in the logs,
1597621834.410915 ERROR root: set_active() failed: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
@shaansubbaiah, thanks, interesting.
@chimosky, NoReply on _setactive is https://github.com/sugarlabs/sugar/issues/840. Get used to it, nobody is interested in fixing Telepathy or even telling them about it. :grin:
Installing the Help activity from the master branch still results in this issue. (Sugar Live Build 0.117)
Opening the activity, I am presented with this:
Following the workflow above, I still get the 502 - Bad Gateway issue
index.html
is missing, checked the directory. Have to investigate further.
Unlike other activities, the Help activity can't be installed from the repository, it has to be built. Clone it to somewhere other than ~/Activities, install python-sphinx, make html
, python setup.py dist_xo
, then install the bundle.
@quozl that worked, I am now able to view the help pages for the activities. However, none of the images load while viewing the documentation from within the help activity but load when viewed from another activity/using the shortcut/ xo menu.
eg. Viewing the help page for Browse in the Help activity.
Seems like the image loading failure has already been reported in Help Activity #104
I can access the images through the browser using file:///usr/share/sugar/activities/Help.activity/html/images/
Changing the image uris in the html files from _images/<image-name>.jpg
to ../images/<image-name>.jpg
renders the image correctly, but it is not an appropriate fix.
Regarding the issue in Sugar, would it not be better to display some form of 'Help activity is not installed' with or without the 502 Error?
@quozl, right now,
make html
copies images/
to html/_images/
setup dist_xo
creates an XO bundle omitting html/_images/
. (images are in images/
)One way that I've managed to fix it is by preventing setup dist_xo
from omitting html/_images
. images/
can then be omitted in the bundle (otherwise bundle is 2x big). Then, even the function _resource_load_started_cb() can be removed.
The only difference is that images will be in html/_images
instead of images/
after installing.
Thanks. I agree. Summarising;
Tested on:
Reproduce:
View Help
If possible, please test on OLPC hardware/ native installs of Sugar to make sure its not a VM issue.
Screenshot:![image](https://user-images.githubusercontent.com/11163839/90314904-e0bd0980-df34-11ea-9bb7-845a3193b3d4.png)