I upgraded to premium but my app still crashes even though I am using the largest instance (3x)

39 views
Skip to first unread message

Islami Nassar

unread,
Jun 4, 2018, 11:56:58 AM6/4/18
to shinyapps.io Users
Hi, 

I am trying to deploy an app for a university project which is due tomorrow. It is running perfectly fine on my machine and the memory usage is about ~1.5GB. When I try to run it on shinyapp.io it crashes and the log doesn't mention why. (there is no out of memory message)

Please if you can help me with that, I would be really grateful. 


Thanks,
IN

Joshua Spiewak

unread,
Jun 4, 2018, 12:03:34 PM6/4/18
to shinyapps.io Users
I see the following in your logs just after a crash:

2018-06-04T16:00:38.385988+00:00 shinyapps[354144]: Warning: Error in [[: subscript out of bounds
2018-06-04T16:00:38.389985+00:00 shinyapps[354144]: Stack trace (innermost first):
2018-06-04T16:00:38.389986+00:00 shinyapps[354144]:     69: fun [/srv/connect/apps/myshinyapplight/app.R#198]
2018-06-04T16:00:38.389987+00:00 shinyapps[354144]:     68: observerFunc
2018-06-04T16:00:38.389988+00:00 shinyapps[354144]:     13: runApp
2018-06-04T16:00:38.389989+00:00 shinyapps[354144]:     12: fn
2018-06-04T16:00:38.389991+00:00 shinyapps[354144]:      7: connect$retry
2018-06-04T16:00:38.389991+00:00 shinyapps[354144]:      6: eval
2018-06-04T16:00:38.389989+00:00 shinyapps[354144]:     11: doTryCatch
2018-06-04T16:00:38.389990+00:00 shinyapps[354144]:     10: tryCatchOne
2018-06-04T16:00:38.389990+00:00 shinyapps[354144]:      9: tryCatchList
2018-06-04T16:00:38.389991+00:00 shinyapps[354144]:      8: tryCatch
2018-06-04T16:00:38.389992+00:00 shinyapps[354144]:      5: eval
2018-06-04T16:00:38.389992+00:00 shinyapps[354144]:      4: eval
2018-06-04T16:00:38.389993+00:00 shinyapps[354144]:      3: eval
2018-06-04T16:00:38.389993+00:00 shinyapps[354144]:      2: eval.parent
2018-06-04T16:00:38.389994+00:00 shinyapps[354144]:      1: local

Islam Nassar

unread,
Jun 4, 2018, 11:25:00 PM6/4/18
to shinyapps.io Users



Hi Joshua,

Thanks for your reply. Can you please guide me where did you get this error. When I check the log on the shinyapps dashboard, I only see 
2018-06-05T03:08:08.862369+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.877121+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.862367+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.862365+00:00 shinyapps[354144]: The following objects are masked from ‘package:base’:
2018-06-05T03:08:08.861251+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.861250+00:00 shinyapps[354144]:     filter, lag
2018-06-05T03:08:08.862368+00:00 shinyapps[354144]:     intersect, setdiff, setequal, union
2018-06-05T03:08:08.877122+00:00 shinyapps[354144]: Attaching package: ‘DT’
2018-06-05T03:08:08.877123+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.877462+00:00 shinyapps[354144]: The following objects are masked from ‘package:shiny’:
2018-06-05T03:08:08.877463+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.877464+00:00 shinyapps[354144]:     dataTableOutput, renderDataTable
2018-06-05T03:08:08.877465+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.897808+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.897810+00:00 shinyapps[354144]: Attaching package: ‘NLP’
2018-06-05T03:08:08.897811+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.885075+00:00 shinyapps[354144]: Loading required package: NLP
2018-06-05T03:08:08.898142+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.898144+00:00 shinyapps[354144]:     annotate
2018-06-05T03:08:08.898144+00:00 shinyapps[354144]: 
2018-06-05T03:08:08.898141+00:00 shinyapps[354144]: The following object is masked from ‘package:ggplot2’:
2018-06-05T03:08:08.940264+00:00 shinyapps[354144]: Loading required package: RColorBrewer
2018-06-05T03:08:09.022378+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.022381+00:00 shinyapps[354144]: Attaching package: ‘ggvis’
2018-06-05T03:08:09.022383+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.022717+00:00 shinyapps[354144]: The following object is masked from ‘package:ggplot2’:
2018-06-05T03:08:09.022719+00:00 shinyapps[354144]:     resolution
2018-06-05T03:08:09.022718+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.022720+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.164227+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.165489+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.165491+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.164230+00:00 shinyapps[354144]: Attaching package: ‘plotly’
2018-06-05T03:08:09.164232+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.164593+00:00 shinyapps[354144]: The following objects are masked from ‘package:ggvis’:
2018-06-05T03:08:09.164595+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.165959+00:00 shinyapps[354144]: The following object is masked from ‘package:stats’:
2018-06-05T03:08:09.164597+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.165487+00:00 shinyapps[354144]: The following object is masked from ‘package:ggplot2’:
2018-06-05T03:08:09.166560+00:00 shinyapps[354144]: The following object is masked from ‘package:graphics’:
2018-06-05T03:08:09.165490+00:00 shinyapps[354144]:     last_plot
2018-06-05T03:08:09.164596+00:00 shinyapps[354144]:     add_data, hide_legend
2018-06-05T03:08:09.165960+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.165961+00:00 shinyapps[354144]:     filter
2018-06-05T03:08:09.165962+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.166561+00:00 shinyapps[354144]: 
2018-06-05T03:08:09.166562+00:00 shinyapps[354144]:     layout
2018-06-05T03:08:09.166563+00:00 shinyapps[354144]: 
2018-06-05T03:08:10.325848+00:00 shinyapps[354144]: 
2018-06-05T03:08:10.325853+00:00 shinyapps[354144]: Listening on http://127.0.0.1:37304
2018-06-05T03:09:03.370850+00:00 shinyapps[354144]: Selecting by votes

Also, can you please guide me how to go about troubleshooting this, I am new to Shiny and I am struggling with it for a while with no avail.

Cheers,
IN

Islam Nassar

unread,
Jun 5, 2018, 3:46:32 AM6/5/18
to shinyapps.io Users
I solved the issue, it turns out it was a bug in a wordcloud component I have. I uploaded the working version on https://islam-nassar.shinyapps.io/MyShinyAppPublic/ and it is now working fine.

Thanks for your help.
Reply all
Reply to author
Forward
0 new messages