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

RangeError: Maximum call stack size exceeded. #1356

Closed
Haoke98 opened this issue Apr 6, 2024 · 7 comments
Closed

RangeError: Maximum call stack size exceeded. #1356

Haoke98 opened this issue Apr 6, 2024 · 7 comments
Labels

Comments

@Haoke98
Copy link

Haoke98 commented Apr 6, 2024

Specification

  • pywebview version: 5.0.5
  • operating system: Darwin Kernel Version 22.6.0: Tue Nov 7 21:40:08 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_ARM64_T6000 arm64
  • web renderer:

Description

When I was use the pywebview with Vue+Typescript+JS project, it was throw the exception like RangeError: Maximum call stack size exceeded. But, the same code use on the html+JS is work will. My code on the python is good , i was write it according to the pywebview official examples.
截屏2024-04-06 19 38 06

Practicalities

  • YES I am willing to work on this issue myself.

  • YES I am prepared to support this issue financially.

@r0x0r
Copy link
Owner

r0x0r commented Apr 6, 2024

Are you using js api in your project? It sounds like a problem with the pywebview serializer

@Haoke98
Copy link
Author

Haoke98 commented Apr 6, 2024

Are you using js api in your project? It sounds like a problem with the pywebview serializer

Yeah, I have used.
This is the Vue3+Typscript project:
截屏2024-04-06 20 49 10
This is the pywebview sandbox:
截屏2024-04-06 20 51 57
I think so, it is like a problem with the pywebview serializer, but how can I fix this ?

@Haoke98
Copy link
Author

Haoke98 commented Apr 6, 2024

In addition, I am wondering if there are any dependent libraries or SDKs for pywebview that can be installed using npm or yarn.
Hope to provide some of the following functions:

  • Grammar tips.
  • Interface call.
  • Development environment debugging

Besides, I also think that some communication between Python and JS/TS/Vue can use Websocket

If not, I am willing to work with you guys to develop some convenient functions like this in the future.

@Haoke98
Copy link
Author

Haoke98 commented Apr 6, 2024

After several attempts, I found that this problem only existed in Vue/Cli projects. After switching to React, this problem did not occur.

  • vue/cli@3 + TypeScript + Vite ❗️❗️
  • React+TypeScript + Vite + AntDesign

@r0x0r
Copy link
Owner

r0x0r commented Apr 7, 2024

I cannot pinpoint the problem from the provided screenshots. Are you able to determine where infinite loop occurs?

I am not aware of any libraries built on top pywebview

Copy link

github-actions bot commented May 8, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label May 8, 2024
Copy link

The message to post on the issue when closing it. If none provided, will not comment when closing an issue.

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

No branches or pull requests

2 participants