LivelyKernel / LivelyKernel/lively.next

Project fails to load

Open
#1,691 1 comment 0 reactions 1 assignee View on GitHub

@merryman is already working on this.

Since Jan 6, 2025.

:lady_beetle: bug
Dominant language
JavaScript
Stars
90
Forks
20
PR merge metrics
No merged PRs in 30d

Description

**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 ("__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).
154aad128403ef1d7b29332cc5449fb7a6f4a549

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.