Skip to content

Error: C stack usage [large number] is too close to the limit #11

@M-Jen98

Description

@M-Jen98

Hello,
I am trying to use the SentimentAnalysis package to analyze a collection of TripAdvisor reviews for research. I have a dataset of 178 reviews in a single variable column assigned as SA. Then tried to run this command:

sentiment <- analyzeSentiment(SA)

Which prompted the error

Error: C stack usage 7977028 is too close to the limit

I tried using the direct example from the documentation
analyzeSentiment( SA, language = "english", aggregate = NULL, rules = defaultSentimentRules(), removeStopwords = TRUE, stemming = TRUE )

Which led to a similar error

Error: C stack usage 7976404 is too close to the limit

I have been using R Studio Cloud (aka Posit Cloud) for this research but I attempted the exact same code in the desktop RStudio version and encountered this error instead:

Error: node stack overflow
Error during wrapup: node stack overflow
Error: no more error handlers available (recursive errors?); invoking 'abort' restart

Some initial Googling of the issue makes it seem like it is an issue with recursive code but I do not think that would be the case here. Another thing I cannot make sense of is that I tried this exact same code with nearly the exact same data perhaps 6 months ago and it worked perfectly. Since then I have added less than 10 new reviews to the data (going from 170 to 178). Could that minor increase really cause this issue? If so, what would be a workaround for analyzing all 178 reviews properly? I would appreciate any suggestions for fixing this problem.
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions