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

Project fails to load #1691

Open
rickmcgeer opened this issue Jan 2, 2025 · 1 comment
Open

Project fails to load #1691

rickmcgeer opened this issue Jan 2, 2025 · 1 comment
Assignees
Labels
🐞 bug Something isn't working

Comments

@rickmcgeer
Copy link
Collaborator

Describe the bug
The project https://github.com/engageLively/galyleo-dashboard fails to load. The error message in the console is:

__rootModule___commonjs-entry-35de395a.js:20060 Error deserializing property master of <Morph - aMorph> ("__lv_expr__:{Polygon,Morph}:lively.morphic/morph.js:{pt}:lively.graphics/geometry-2d.js:{part}:lively.morphic:{LandingPage}:lively.freezer/src/landing-page.cp.js:{PolicyApplicator}:lively.morphic/components/policy.js:new PolicyApplicator({\n  name: 'background',\n  position: Symbol.for(\"lively.skip-property\"),\n  scale: Symbol.for(\"lively.skip-property\"),\n  submorphs: [{\n  name: 'triangle 1',\n  styleClasses: ['Polygon', 'Path', 'Morph', 'morph'],\n  vertices: [({position:pt(723.4989,0),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}}),({position:pt(728.6,1002.1149),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}}),({position:pt(0,1003.9),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}})]\n}, {\n  name: 'triangle 2',\n  styleClasses: ['Polygon', 'Path', 'Morph', 'morph'],\n  vertices: [({position:pt(0,0),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}}),({position:pt(1198.6,392.0192),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}}),({position:pt(259.7772,1159.7),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}})]\n}, {\n  name: 'triangle 3',\n  styleClasses: ['Polygon', 'Path', 'Morph', 'morph'],\n  vertices: [({position:pt(0,0),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}}),({position:pt(1915.5,788.6),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}}),({position:pt(1047.2533,788.3092),isSmooth:false,controlPoints:{next:pt(0,0),previous:pt(0,0)}})]\n}]\n}, LandingPage.stylePolicy.getSubSpecAt([\"background\"]))")
ObjectRef_recreatePropertyAndSetProperty_ @ __rootModule___commonjs-entry-35de395a.js:20060
LivelyClassPropertiesPlugin_additionallyDeserializeBeforeProperties_ @ __rootModule___commonjs-entry-35de395a.js:19357
ObjectPool_plugin_additionallyDeserializeBeforeProperties_ @ __rootModule___commonjs-entry-35de395a.js:19770
ObjectRef_recreateObjFromSnapshot_ @ __rootModule___commonjs-entry-35de395a.js:20019
ObjectRef_fromSnapshot_ @ __rootModule___commonjs-entry-35de395a.js:20101
ObjectPool_readSnapshot_ @ __rootModule___commonjs-entry-35de395a.js:19668
ObjectPool_resolveFromSnapshotAndId_ @ __rootModule___commonjs-entry-35de395a.js:19684
(anonymous) @ __rootModule___commonjs-entry-35de395a.js:25141
step2 @ __rootModule___commonjs-entry-35de395a.js:25166
(anonymous) @ __rootModule___commonjs-entry-35de395a.js:25163
(anonymous) @ __rootModule___commonjs-entry-35de395a.js:49386
(anonymous) @ __rootModule___commonjs-entry-35de395a.js:49395
Morph_copy_ @ __rootModule___commonjs-entry-35de395a.js:55356
_callee9$ @ bootstrap-854a4a25.js:1063
tryCatch @ deps.js:722
invoke @ deps.js:950
(anonymous) @ deps.js:777
asyncGeneratorStep @ __rootModule___commonjs-entry-35de395a.js:48
_next @ __rootModule___commonjs-entry-35de395a.js:70
Promise.then
asyncGeneratorStep @ __rootModule___commonjs-entry-35de395a.js:58
_next @ __rootModule___commonjs-entry-35de395a.js:70
Promise.then
asyncGeneratorStep @ __rootModule___commonjs-entry-35de395a.js:58
_next @ __rootModule___commonjs-entry-35de395a.js:70
(anonymous) @ __rootModule___commonjs-entry-35de395a.js:77
(anonymous) @ __rootModule___commonjs-entry-35de395a.js:66
onRenderStart @ bootstrap-854a4a25.js:1091
MorphicEnv_setWorldRenderedOn_ @ __rootModule___commonjs-entry-35de395a.js:47584
MorphicEnv_setWorld_ @ __rootModule___commonjs-entry-35de395a.js:47555
_callee5$ @ __rootModule___commonjs-entry-35de395a.js:78101
tryCatch @ deps.js:722
invoke @ deps.js:950
(anonymous) @ deps.js:777
asyncGeneratorStep @ __rootModule___commonjs-entry-35de395a.js:48
_next @ __rootModule___commonjs-entry-35de395a.js:70
Promise.then
asyncGeneratorStep @ __rootModule___commonjs-entry-35de395a.js:58
_next @ __rootModule___commonjs-entry-35de395a.js:70
Promise.then
asyncGeneratorStep @ __rootModule___commonjs-entry-35de395a.js:58
_next @ __rootModule___commonjs-entry-35de395a.js:70Understand this errorAI
__rootModule___commonjs-entry-35de395a.js:78120 Error loading world:  TypeError: Cannot read properties of null (reading 'setState')
    at ShapeMorpher.ShapeMorpher_viewDidLoad_ (landing-page.cp-f59ae217.js:49556:30)
    at ShapeMorpher.ViewModel_attach_ (__rootModule___commonjs-entry-35de395a.js:59349:18)
    at Morph.Morph___after_deserialize___ (__rootModule___commonjs-entry-35de395a.js:53098:30)
    at AdditionallySerializePlugin.AdditionallySerializePlugin_additionallyDeserializeAfterProperties_ (__rootModule___commonjs-entry-35de395a.js:19141:22)
    at ObjectPool.ObjectPool_plugin_additionallyDeserializeAfterProperties_ (__rootModule___commonjs-entry-35de395a.js:19781:17)
    at ObjectRef.ObjectRef_recreateObjFromSnapshot_ (__rootModule___commonjs-entry-35de395a.js:20035:18)
    at Function.ObjectRef_fromSnapshot_ (__rootModule___commonjs-entry-35de395a.js:20101:47)
    at ObjectPool.ObjectPool_readSnapshot_ (__rootModule___commonjs-entry-35de395a.js:19668:48)
    at ObjectPool.ObjectPool_resolveFromSnapshotAndId_ (__rootModule___commonjs-entry-35de395a.js:19684:18)
    at Object.deserialize (__rootModule___commonjs-entry-35de395a.js:25141:24)

To Reproduce
It's not clear that this can be reproduced. After it failed, I attempted to reload with Pause on uncaught exceptions set, and it worked. Presumably the previous load attempt had fixed whatever was mangled in the file.

Screenshots

Setup
Please delete non-applicable items!

  • Windows
  • Linux

Version: Please paste the lively.next commit on which the problem occurred here (use the copy button of the Version Checker in the bottom left corner).
154aad1

@rickmcgeer rickmcgeer added the 🐞 bug Something isn't working label Jan 2, 2025
@merryman
Copy link
Member

merryman commented Jan 6, 2025

It appears the actual error here was not shown in the stack trace but it managed to halt the proper initialization of the module system which is the error in the log you posted.

So yes there certainly appears to be an error, maybe due to the cache, but that's about everything we know for now. I will try to look into this.

@merryman merryman self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants