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

Error: Channel does not exist: scene:spine-preview #18071

Open
jeffma opened this issue Dec 22, 2024 · 2 comments
Open

Error: Channel does not exist: scene:spine-preview #18071

jeffma opened this issue Dec 22, 2024 · 2 comments
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@jeffma
Copy link

jeffma commented Dec 22, 2024

Cocos Creator version

3.8.4

System information

MacOS webgl

Issue description

我移植了spine 4.2到spine-wasm,场景中skeletonData没有报错,但是spine-preview.js里面报Error: Channel does not exist: scene:spine-preview,经调试 await panel.glPreview.init({ width: panel.$.canvas.clientWidth, height: panel.$.canvas.clientHeight }); 这行报错

Relevant error log output

[Window] init glPreview error!: Error: Channel does not exist: scene:spine-preview
at Object.sendToChannel (/Applications/Cocos/Creator/3.8.4/CocosCreator.app/Contents/Resources/app.asar/node_modules/@base/electron-base-ipc/dist/renderer.ccc:1:2198)
at sendToChannel (/Applications/Cocos/Creator/3.8.4/CocosCreator.app/Contents/Resources/app.asar/node_modules/@base/electron-base-ipc/dist/index.js:1:1194)
at GlPreview.init (/Applications/Cocos/Creator/3.8.4/CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/preview-extends/webgl.ccc:1:1381)
at Object.update (/Users/jeffma/Workspace/cocos-engine/editor/inspector/assets/spine-preview.js:198:39)
at Object. (/Users/jeffma/Workspace/cocos-engine/editor/inspector/assets/spine-preview.js:396:28)
at HTMLElement.update (/Applications/Cocos/Creator/3.8.4/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/creator-ui-kit/dist/renderer.ccc:2:1614316)
at /Users/jeffma/Workspace/cocos-engine/editor/inspector/contributions/asset.js:344:43
at Array.map ()
at Object.update (/Users/jeffma/Workspace/cocos-engine/editor/inspector/contributions/asset.js:343:50)

Steps to reproduce

这里是我编译出来的spine wasm
spine.zip

Minimal reproduction project

No response

@jeffma jeffma added Bug Needs Triage Needs to be assigned by the team labels Dec 22, 2024
@jeffma
Copy link
Author

jeffma commented Dec 22, 2024

另外这个地址是我的fork: https://github.com/originpoint-at/cocos-engine

@bofeng-song
Copy link
Contributor

我目前正在进行 4.2这块的移植,不确定您这边是只更新spine源码,还有更新引擎的内容吗?
我目前的移植方式,主要修改的是spine 关联的cpp的修改;ts基本没动;可能需要等我的验证后,才能给你建议

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

2 participants