Skip to content
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

Warning: Error in pngfun: invalid quartz() device size #18

Open
ghost opened this issue Mar 15, 2019 · 12 comments
Open

Warning: Error in pngfun: invalid quartz() device size #18

ghost opened this issue Mar 15, 2019 · 12 comments
Assignees

Comments

@ghost
Copy link

ghost commented Mar 15, 2019

Hi!

The following errors pop up when running the gcamlacdash package on RStudio. I'm running it on a Mac. Any insight into what may be causing it would be deeply appreciated.

Warning: Error in pngfun: invalid quartz() device size
128: pngfun
127: startPNG
126: drawPlot
112: reactive:plotObj
96: drawReactive
83: origRenderFunc
82: output$dashboard-Water-Scarcity-plot
2: shiny::runApp
1: gcamlacdash::run

Warning: Error in pngfun: invalid quartz() device size
128: pngfun
127: startPNG
126: drawPlot
112: reactive:plotObj
96: drawReactive
83: origRenderFunc
82: output$dashboard-Water-Supply-plot
2: shiny::runApp
1: gcamlacdash::run

Warning: Error in pngfun: invalid quartz() device size
128: pngfun
127: startPNG
126: drawPlot
112: reactive:plotObj
96: drawReactive
83: origRenderFunc
82: output$dashboard-Water-Demand-plot
2: shiny::runApp
1: gcamlacdash::run

@rplzzz
Copy link
Contributor

rplzzz commented Mar 16, 2019

Hmm. I've never seen that error before. It looks like it has something to do with the graphics device configuration. I'll keep digging to see what I can come up with.

@rplzzz
Copy link
Contributor

rplzzz commented Mar 16, 2019

Are you able to run any of the basic examples using the shiny package? Take this one for example:

https://github.com/rstudio/shiny-examples/tree/master/050-kmeans-example

If you download the code and run it, do you get the same error?

@ghost
Copy link
Author

ghost commented Mar 22, 2019

Thank you for the quick reply. Yes I am able to run the examples smoothly without any error showing up.

@Winode
Copy link

Winode commented Apr 4, 2019

Hello! Are you using renderPlot() when you should be using renderTable() ? I just fixed the same issue you are having by making this simple adjustment.

@rplzzz
Copy link
Contributor

rplzzz commented Apr 6, 2019

@Winode Thanks for the tip. I looked through the code, and all of the calls to renderPlot() seem to be displaying bona-fide plots, so I don't think that's the problem. Also, the developer and several other users have been using it without encountering this problem.

@VictorSindato I'm going to take another run at reproducing the bug toward the end of next week. Thanks for your patience.

@rplzzz rplzzz self-assigned this Apr 11, 2019
@cypressf
Copy link

cypressf commented Mar 6, 2020

I'm also encountering this issue. @rplzzz have you had a chance to look into the bug? Out of curiosity, when you run it successfully, what version of R are you running, and what OS?

macOS 10.14.6 (18G2022)

R installed via brew cask install r https://formulae.brew.sh/cask/rstudio

R version 3.6.1 (2019-07-05) Platform: x86_64-apple-darwin15.6.0 (64-bit)
RStudio Version 1.2.5019
"Elderflower" (fba733f0, 2019-10-24)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.1 Chrome/69.0.3497.128 Safari/537.36

@cypressf
Copy link

cypressf commented Mar 6, 2020

I uninstalled the homebrew R installation with brew cask uninstall r and then reinstalled R using the disk images on https://rstudio.com/products/rstudio/download/#download and I still have the same error.

R version 3.6.2 (2019-12-12) Platform: x86_64-apple-darwin15.6.0 (64-bit)
RStudio Version 1.2.5033
"Orange Blossom" (330255dd, 2019-12-03)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.1 Chrome/69.0.3497.128 Safari/537.36

@rplzzz
Copy link
Contributor

rplzzz commented Mar 7, 2020

Ah, sorry, you guys. I never got back around to investigating this. I'm actually not working on this project anymore, but I'm going to tag @crvernon, who is now in charge of such things.

@rplzzz rplzzz assigned crvernon and unassigned rplzzz Mar 7, 2020
@cypressf
Copy link

Out of curiosity, I tried to get this to run in Ubuntu 18 and encountered a different, but similar looking error:

Warning: Error in pngfun: invalid 'width' argument
  128: pngfun
  127: startPNG
  126: drawPlot
  112: <reactive:plotObj>
   96: drawReactive
   83: origRenderFunc
   82: output$dashboard-Water-Scarcity-plot
    2: shiny::runApp
    1: gcamlacdash::run
Warning: Error in pngfun: invalid 'width' argument
  128: pngfun
  127: startPNG
  126: drawPlot
  112: <reactive:plotObj>
   96: drawReactive
   83: origRenderFunc
   82: output$dashboard-Water-Supply-plot
    2: shiny::runApp
    1: gcamlacdash::run
Warning: Error in pngfun: invalid 'width' argument
  128: pngfun
  127: startPNG
  126: drawPlot
  112: <reactive:plotObj>
   96: drawReactive
   83: origRenderFunc
   82: output$dashboard-Water-Demand-plot
    2: shiny::runApp
    1: gcamlacdash::run

@cypressf
Copy link

cypressf commented Jun 19, 2020

@calebbraun I noticed you were poking around on a branch branch to troubleshoot this. I checked out your branch, and it fixed the issue for me.

Is there anything preventing that from being merged to the main branch? Anything I could do to help?

@sanjmeh
Copy link

sanjmeh commented Jun 5, 2021

Any progess on this thread?

@zarrarkhan
Copy link

Any progess on this thread?

@sanjmeh, GCAM-LAC-dashboard is not in active development anymore. We are migrating to a new dashboard "Argus" which will be released in the coming weeks (we are still cleaning up bugs and the code). Argus is a more generic dashboard for use with gcam and other input data formats. You can get a preview (not all parts are functioning) of Argus here:

For now you can just see the kinds of visualizations Argus will provide using the default data. Once it is officially released you will be able to upload GCAM databases and several other formats.

Can you please, let us know a bit more about what you are trying to do with GCAM-LAC-dashboard and if you think Argus will meet your needs?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants