Bug 359404 - Problem viewing graphic output in Windows
Summary: Problem viewing graphic output in Windows
Status: RESOLVED FIXED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-14 21:31 UTC by Leszek Pawlowicz
Modified: 2016-02-26 16:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen capture of error window. (4.50 KB, image/png)
2016-02-14 21:31 UTC, Leszek Pawlowicz
Details
Experimental fix (2.20 KB, text/plain)
2016-02-16 19:19 UTC, Thomas Friedrichsmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leszek Pawlowicz 2016-02-14 21:31:53 UTC
Created attachment 97211 [details]
Screen capture of error window.

If I try to generate a graphic (e.g. a bar graph or scatterplot), and I use the "Preview function", the graphic is visible. However, I also get a "Warnings or Errors:" window popping up that says:

Error in rkward:::RK.resize(2)  :
    Nested graphics operations are not supported by this device (did you try to resize the device during locator()?

Screen capture of this error message is attached.

If I close the preview window, then "Submit" from the plot creation window, I go back to the workspace, but the graph isn't there; instead, there's the "red circle with a slash through it" icon that I assume means that the graph PNG image file couldn't be found to embed in the workspace, either because it wasn't created or because it's in the wrong location.

I have hit this issue on two separate computers, both with 64-bit Windows 10 installed. I am using the  very latest version of the full RKWard program 0.6.4, downloaded today  (which includes both R 3.2.3 and KDE). 

Any ideas?
Comment 1 Thomas Friedrichsmeier 2016-02-15 08:31:14 UTC
Hi!

Thanks for reporting. Two issues, here:
1.
> Error in rkward:::RK.resize(2) :
[...]
This is a known, but harmless error. Already fixed in our development sources.

2. Images not showing in the output file:
Does this problem persist after a reboot?

If so, please run
  rk.sessionInfo()
in RKWard's "R Console" window. Copy the output and attach it to this bug report (as attachment or comment).
Also, in that output, locate the line starting with "RKWard storage directory". Open the specified folder in a file browser / explorer. Did any .png-files get written into this folder? Can you open them in an image viewer?

Thanks!
Comment 2 Leszek Pawlowicz 2016-02-15 22:26:09 UTC
The problem does persist after a reboot. The graphics do show up in the specified .rkward directory, and look correct. If I open the rk_out.html file in that directory in Chrome, they display correctly in the browser. But still not in the main environment window in RKWard.  The session data is pasted below:

rk.sessionInfo()

-- Frontend --
RKWard version: 0.6.4
KDE version (runtime): 4.10.2
KDE version (compile time): 4.10.2
Qt build key: Windows mingw release full-config
Windows runtime version (refer to QSysInfo documentation to translate code into human readable form): 0xa0
Local KDE directory: C:/Users/leszekp/AppData/Roaming/.kde/
RKWard storage directory: C:/Users/leszekp/.rkward/
Backend version (as known to the frontend): 3.2.3

Debug message file (this may contain relevant diagnostic output in case of trouble):
R:/TEMP/rkward.frontend.g18204

-- Backend --
Debug message file (this may contain relevant diagnostic output in case of trouble):
R:/TEMP/rkward.rbackend.p11676

R version (compile time): 3.2.3  (2015-12-10 r69752)
R runtime session info:
R version 3.2.3 (2015-12-10)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rkward_0.6.3

loaded via a namespace (and not attached):
[1] tools_3.2.3
Comment 3 Thomas Friedrichsmeier 2016-02-16 19:19:18 UTC
Created attachment 97256 [details]
Experimental fix

Ok, thanks, I can now see this, too.

Could you please run the attached R script in an RKWard session, then try to produce a new plot in the output window. Can you confirm that the new plot shows up, correctly, after this?
Comment 4 Leszek Pawlowicz 2016-02-18 23:14:36 UTC
Sorry for the delay - out of town on work. Ran the script, create a plot, and it showed up correctly in the output window.
Comment 5 Thomas Friedrichsmeier 2016-02-19 21:12:18 UTC
Git commit 8b44b7547bb0d26b3d47cf39c12d35c6127b4975 by Thomas Friedrichsmeier.
Committed on 19/02/2016 at 21:10.
Pushed by tfry into branch 'releases/0.6.4'.

Help webkit understand local file paths to images on Windows.

NOTE: Bug ticket will be closed, once updates Windows binaries are available.

M  +12   -4    rkward/rbackend/rpackages/rkward/R/public_graphics.R

http://commits.kde.org/rkward/8b44b7547bb0d26b3d47cf39c12d35c6127b4975
Comment 6 Thomas Friedrichsmeier 2016-02-26 16:13:45 UTC
Hi!

Sorry for the long delay. This should be fixed in the 0.6.4-1 binaries, available for download, now ( http://download.kde.org/stable/rkward/0.6.4/win32/   or   http://rkward.kde.org/windows ).

Should you continue to see this or different issues, don't hesitate to open a new bug report.

Thanks!
Comment 7 Leszek Pawlowicz 2016-02-26 16:21:54 UTC
Works perfectly. Thanks for your help.