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

A "maximum call stack size exceeded" error is thrown when using carry forward #8232

Closed
JaneSjs opened this issue May 3, 2024 · 0 comments
Closed
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented May 3, 2024

The following exception occurs in a customer's demo in the latest version (v1.10.2). The code works in v1.9.122.
T18015 - Facing Error "Maximum call Stack Exceeded"
https://surveyjs.answerdesk.io/internal/ticket/details/T18015

index.js:27 ERROR RangeError: Maximum call stack size exceeded
    at ItemValue.Base (survey.core.js:1832:18)
    at ItemValue.BaseAction [as constructor] (survey.core.js:772:47)
    at ItemValue [as constructor] (survey.core.js:17550:28)
    at JsonMetadataClass.eval [as creator] (survey.core.js:18043:30)
    at ./src/jsonobject.ts.JsonMetadata.createClass (survey.core.js:19364:34)
    at ./src/question_baseselect.ts.QuestionSelectBase.createItemValue (survey.core.js:31784:74)
    at ./src/question_baseselect.ts.QuestionSelectBase.copyChoiceItem (survey.core.js:33141:24)
    at ./src/question_baseselect.ts.QuestionSelectBase.getChoicesFromSelectQuestion (survey.core.js:33132:31)
    at QuestionCheckboxModel.get (survey.core.js:33024:29)
    at ./src/question_baseselect.ts.QuestionSelectBase.getFilteredChoices (survey.core.js:33017:20)
    at ./src/question_baseselect.ts.QuestionSelectBase.isVisibleCore (survey.core.js:33452:36)
    at QuestionCheckboxModel.get (survey.core.js:28550:25)
    at ./src/panel.ts.PanelModelBase.getIsContentVisible (survey.core.js:25483:34)
    at ./src/panel.ts.PanelModelBase.getIsPageVisible (survey.core.js:25489:37)
    at PageModel.get (survey.core.js:25472:61)
    at _actions_action__WEBPACK_IMPORTED_MODULE_0__.Action.visible [as _updater] (survey.core.js:68176:106)
    at Object.eval [as func] (survey.core.js:18130:121)
    at ./src/base.ts.Base.propertyValueChanged (survey.core.js:2307:47)
    at ./src/base.ts.Base.setPropertyValue (survey.core.js:2264:22)
    at ItemValue.set (survey.core.js:18162:26)
    at ItemValue.BaseAction [as constructor] (survey.core.js:774:24)
    at ItemValue [as constructor] (survey.core.js:17550:28)
    at JsonMetadataClass.eval [as creator] (survey.core.js:18043:30)
    at ./src/jsonobject.ts.JsonMetadata.createClass (survey.core.js:19364:34)
    at ./src/question_baseselect.ts.QuestionSelectBase.createItemValue (survey.core.js:31784:74)
    at ./src/question_baseselect.ts.QuestionSelectBase.copyChoiceItem (survey.core.js:33141:24)
    at ./src/question_baseselect.ts.QuestionSelectBase.getChoicesFromSelectQuestion (survey.core.js:33132:31)
    at QuestionCheckboxModel.get (survey.core.js:33024:29)
    at ./src/question_baseselect.ts.QuestionSelectBase.getFilteredChoices (survey.core.js:33017:20)
    at ./src/question_baseselect.ts.QuestionSelectBase.isVisibleCore (survey.core.js:33452:36)
    at QuestionCheckboxModel.get (survey.core.js:28550:25)
    at ./src/panel.ts.PanelModelBase.getIsContentVisible (survey.core.js:25483:34)
    at ./src/panel.ts.PanelModelBase.getIsPageVisible (survey.core.js:25489:37)
    at PageModel.get (survey.core.js:25472:61)
    at _actions_action__WEBPACK_IMPORTED_MODULE_0__.Action.visible [as _updater] (survey.core.js:68176:106)
    at Object.eval [as func] (survey.core.js:18130:121)
    at ./src/base.ts.Base.propertyValueChanged (survey.core.js:2307:47)
    at ./src/base.ts.Base.setPropertyValue (survey.core.js:2264:22)
    at ItemValue.set (survey.core.js:18162:26)
    at ItemValue.BaseAction [as constructor] (survey.core.js:774:24)
    at ItemValue [as constructor] (survey.core.js:17550:28)
    at JsonMetadataClass.eval [as creator] (survey.core.js:18043:30)
    at ./src/jsonobject.ts.JsonMetadata.createClass (survey.core.js:19364:34)
    at ./src/question_baseselect.ts.QuestionSelectBase.createItemValue (survey.core.js:31784:74)
    at ./src/question_baseselect.ts.QuestionSelectBase.copyChoiceItem (survey.core.js:33141:24)
    at ./src/question_baseselect.ts.QuestionSelectBase.getChoicesFromSelectQuestion (survey.core.js:33132:31)
    at QuestionCheckboxModel.get (survey.core.js:33024:29)
    at ./src/question_baseselect.ts.QuestionSelectBase.getFilteredChoices (survey.core.js:33017:20)
    at ./src/question_baseselect.ts.QuestionSelectBase.isVisibleCore (survey.core.js:33452:36)
    at QuestionCheckboxModel.get (survey.core.js:28550:25)

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels May 3, 2024
@andrewtelnov andrewtelnov transferred this issue from surveyjs/survey-creator May 3, 2024
@andrewtelnov andrewtelnov self-assigned this May 3, 2024
@andrewtelnov andrewtelnov added this to the v1.10.3 milestone May 3, 2024
@RomanTsukanov RomanTsukanov changed the title Maximum call stack size exceeded at ItemValue.Base exception occurs in survey.core.js A "maximum call stack size exceeded" error is thrown when using carry forward May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

2 participants