New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picture not displaying #5140

Closed
harishgangwar opened this Issue Jun 7, 2016 · 13 comments

Comments

Projects
None yet
3 participants
@harishgangwar

harishgangwar commented Jun 7, 2016

Pictures are not displaying while doing the math geometry exercise.
Version : Kalite 0.16
OS : Window XP
Browser : Chrome , Firefox

ka1
ka2

@radinamatic

This comment has been minimized.

Show comment
Hide comment
@radinamatic

radinamatic Jun 7, 2016

Contributor

On Windows 7 & 0.16.5, image displays correctly, will confirm asap if I can replicate on XP.

ie11_-_win7_recognize angles

Contributor

radinamatic commented Jun 7, 2016

On Windows 7 & 0.16.5, image displays correctly, will confirm asap if I can replicate on XP.

ie11_-_win7_recognize angles

@harishgangwar

This comment has been minimized.

Show comment
Hide comment
@harishgangwar

harishgangwar Jun 9, 2016

I am facing same issues with other exercises too. I inspected one more exercise in chrome and noted that svg file has been called and opening properly in new tab. It seems there is some issue in fetching the svg files in kalite.

ka3

harishgangwar commented Jun 9, 2016

I am facing same issues with other exercises too. I inspected one more exercise in chrome and noted that svg file has been called and opening properly in new tab. It seems there is some issue in fetching the svg files in kalite.

ka3

@benjaoming

This comment has been minimized.

Show comment
Hide comment
@benjaoming

benjaoming Jun 9, 2016

Member

@harishgangwar thanks for another great detailed issue report! Are you using the new content pack that @aronasorman uploaded?

Member

benjaoming commented Jun 9, 2016

@harishgangwar thanks for another great detailed issue report! Are you using the new content pack that @aronasorman uploaded?

@benjaoming

This comment has been minimized.

Show comment
Hide comment
@benjaoming

benjaoming Jun 13, 2016

Member

@harishgangwar

I'm not able to reproduce this with the latest 0.16.6 alpha, but it looks from your screen shot like this should work. No red icons or error messages. When you say:

It seems there is some issue in fetching the svg files in kalite.

...did you have something specific in mind? Because it does a "200 OK" so your browser receives the SVG file. However, I see there is "text/html" in the content-type header, and when I make this request to my local Ubuntu-based ka-lite server, I receive "image/svg+xml". I'm wondering if cherrypy (the HTTP server bundled into KA Lite) uses the host system to resolve the content type and create the header.

Member

benjaoming commented Jun 13, 2016

@harishgangwar

I'm not able to reproduce this with the latest 0.16.6 alpha, but it looks from your screen shot like this should work. No red icons or error messages. When you say:

It seems there is some issue in fetching the svg files in kalite.

...did you have something specific in mind? Because it does a "200 OK" so your browser receives the SVG file. However, I see there is "text/html" in the content-type header, and when I make this request to my local Ubuntu-based ka-lite server, I receive "image/svg+xml". I'm wondering if cherrypy (the HTTP server bundled into KA Lite) uses the host system to resolve the content type and create the header.

@benjaoming benjaoming self-assigned this Jun 13, 2016

@harishgangwar

This comment has been minimized.

Show comment
Hide comment
@harishgangwar

harishgangwar Jun 17, 2016

@benjaoming I used chrome , Safari and mozilla browser for same exercise but picture could not be displayed in any of browser. I am having the assessment zip file bundled with content pack available on http://ka-lite.readthedocs.io/en/latest/installguide/install_all.html.
Relevant pictures files are there but somehow not displaying. Not sure but content type header may be a cause.

harishgangwar commented Jun 17, 2016

@benjaoming I used chrome , Safari and mozilla browser for same exercise but picture could not be displayed in any of browser. I am having the assessment zip file bundled with content pack available on http://ka-lite.readthedocs.io/en/latest/installguide/install_all.html.
Relevant pictures files are there but somehow not displaying. Not sure but content type header may be a cause.

@benjaoming

This comment has been minimized.

Show comment
Hide comment
@benjaoming

benjaoming Jun 17, 2016

Member

@harishgangwar is it possible for you to install KA Lite on a non-xp device and then connect to it from the affected Windows XP browser?

That way, we can see if it's something related to HTTP content type headers and if running the KA Lite server on a different device fixes it...

Member

benjaoming commented Jun 17, 2016

@harishgangwar is it possible for you to install KA Lite on a non-xp device and then connect to it from the affected Windows XP browser?

That way, we can see if it's something related to HTTP content type headers and if running the KA Lite server on a different device fixes it...

@harishgangwar

This comment has been minimized.

Show comment
Hide comment
@harishgangwar

harishgangwar Jun 29, 2016

I tried Ka-lite-0.16.6.post1 on win 7 , 64 bit , with browser chrome , but still facing the same problem where images in question are not being displayed. In inspection window the content type is text/html.
I also replicated above issue in window xp with new installer ka-lite-0.16.6 but still facing the same problem.

@radinamatic , which browser did you use in window 7 for replicating this issue ?

@benjaoming I am not having any non-xp device and hence can not did what you suggested above but arranging a raspberry soon.

@benjaoming @aronasorman Do i need to install some specific application / extension/plugin for SVG files. Presently in windows SVG files are not associated with any applicaiton.

harishgangwar commented Jun 29, 2016

I tried Ka-lite-0.16.6.post1 on win 7 , 64 bit , with browser chrome , but still facing the same problem where images in question are not being displayed. In inspection window the content type is text/html.
I also replicated above issue in window xp with new installer ka-lite-0.16.6 but still facing the same problem.

@radinamatic , which browser did you use in window 7 for replicating this issue ?

@benjaoming I am not having any non-xp device and hence can not did what you suggested above but arranging a raspberry soon.

@benjaoming @aronasorman Do i need to install some specific application / extension/plugin for SVG files. Presently in windows SVG files are not associated with any applicaiton.

@radinamatic

This comment has been minimized.

Show comment
Hide comment
@radinamatic

radinamatic Jun 29, 2016

Contributor

@harishgangwar The above screenshot is from the test performed in Firefox, but the result was the same in Chrome and IE11. I'll re-run the test on that VM and see what is the SVG association, just to be sure...

Contributor

radinamatic commented Jun 29, 2016

@harishgangwar The above screenshot is from the test performed in Firefox, but the result was the same in Chrome and IE11. I'll re-run the test on that VM and see what is the SVG association, just to be sure...

@harishgangwar

This comment has been minimized.

Show comment
Hide comment
@harishgangwar

harishgangwar Jul 10, 2016

@benjaoming As advised , i tried following options

(i) (a) Kalite0.16.6.post1 is installed on Raspberry Pi3 with Epiphany browser. KALite is accessed through raspberry epiphany browser. Result : Picture not displayed for exercise in questions on raspberry device. I tried other exercises also but picture could not be displayed wherever svg image is pulled in.
image1 2

(i) (b) Kalite0.16.6.post1 is installed on Raspberry Pi3 with Epiphany browser. KALite is accessed through Chrome browser on a window xp machine . Result : Picture is displayed and on inspection it is found that type is svg/xml.
ka on rasp-xp

(ii) I accessed the Kalite (0.1.6.6.post1) installed on window xp machine from Raspberry device epiphany browser but still the same problem is faced i.e. picture not displayed.
image2

For me it looks that the SVG files are not being properly loaded in chrome / firefox browser. Please suggest how to rectify this problem .

harishgangwar commented Jul 10, 2016

@benjaoming As advised , i tried following options

(i) (a) Kalite0.16.6.post1 is installed on Raspberry Pi3 with Epiphany browser. KALite is accessed through raspberry epiphany browser. Result : Picture not displayed for exercise in questions on raspberry device. I tried other exercises also but picture could not be displayed wherever svg image is pulled in.
image1 2

(i) (b) Kalite0.16.6.post1 is installed on Raspberry Pi3 with Epiphany browser. KALite is accessed through Chrome browser on a window xp machine . Result : Picture is displayed and on inspection it is found that type is svg/xml.
ka on rasp-xp

(ii) I accessed the Kalite (0.1.6.6.post1) installed on window xp machine from Raspberry device epiphany browser but still the same problem is faced i.e. picture not displayed.
image2

For me it looks that the SVG files are not being properly loaded in chrome / firefox browser. Please suggest how to rectify this problem .

@harishgangwar

This comment has been minimized.

Show comment
Hide comment
@harishgangwar

harishgangwar Jul 10, 2016

@benjaoming Adding two more snapshots for same exercise

Kalite is accessed from a Win XP device using Chrome browser
case 1: KALite installation is on Raspberry device. The SVG image type is svg/xml
rasp

case 2: KALite installation is on Win-XP device. The SVG image type is text/html.
xp

harishgangwar commented Jul 10, 2016

@benjaoming Adding two more snapshots for same exercise

Kalite is accessed from a Win XP device using Chrome browser
case 1: KALite installation is on Raspberry device. The SVG image type is svg/xml
rasp

case 2: KALite installation is on Win-XP device. The SVG image type is text/html.
xp

@benjaoming

This comment has been minimized.

Show comment
Hide comment
@benjaoming

benjaoming Jul 27, 2016

Member

Please test and make noise in case the above PR did not fix the issue... the description made it very likely that the fix applied should work because cherrypy relies on the host system's know MIME types.

Member

benjaoming commented Jul 27, 2016

Please test and make noise in case the above PR did not fix the issue... the description made it very likely that the fix applied should work because cherrypy relies on the host system's know MIME types.

@benjaoming benjaoming closed this Jul 27, 2016

@benjaoming

This comment has been minimized.

Show comment
Hide comment
@benjaoming

benjaoming Jul 31, 2016

Member

@harishgangwar can you check if the latest beta solved your issues?

Member

benjaoming commented Jul 31, 2016

@harishgangwar can you check if the latest beta solved your issues?

@harishgangwar

This comment has been minimized.

Show comment
Hide comment
@harishgangwar

harishgangwar Aug 2, 2016

@benjaoming Yes , with 0.16.7 , the issue has been resolved. Thanks

harishgangwar commented Aug 2, 2016

@benjaoming Yes , with 0.16.7 , the issue has been resolved. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment