-
Notifications
You must be signed in to change notification settings - Fork 145
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
"UIManager hasn't been initialised" in 1.1.7 version #194
Comments
Could you please update to 1.1.9 and tell us if the error continues? |
Hi @HoyosJuan ! |
Ok @TristanLecallier! Got you covered 🙂 will let you know when it's fixed. |
Hey @TristanLecallier! I just solved this in PR #199. We need to wait until this gets published as a new patch in NPM along with other bugs I'm solving. Thanks! |
Hi @HoyosJuan I think there was an oversight in the PR : the viewer container is still taken from the UI Manager in LengthMeasurement component, here : https://github.com/IFCjs/components/blob/a8472b228f955fd03a9c1e16d05d46106f496466/src/measurement/LengthMeasurement/index.ts#L304C4-L304C64 |
Also with FragmentPlans component : https://github.com/IFCjs/components/blob/a8472b228f955fd03a9c1e16d05d46106f496466/src/fragments/FragmentPlans/index.ts#L165 The "add" method will create a ui.Button whereas ui is disabled. |
This also happens now with the FragmentIfcLoader. We don't have the UI declared anywhere, but still get a crash. The line it crashes on is: In |
@tb-viktor have you put |
That solves it, thank you 👍 |
Describe the bug 📝
since I updated OBC from 1.1.5 to 1.1.7., I have the following error "UIManager hasn't been initialised".
It happens when I create LengthMeasurement components. Yet I disabled ui (because I'm using my own) with : this.components.uiEnabled = false;
After a deeper investigation, it seems that the issue raises inside VertexPicker Class in setupEvents function (here : https://github.com/IFCjs/components/blob/main/src/utils/VertexPicker/index.ts#L164 )
Reproduction▶️
No response
Steps to reproduce 🔢
` this.components = new OBC.Components();
const sceneComponent = new OBC.SimpleScene(this.components);
const scene = sceneComponent.get();
System Info 💻
`"openbim-components": "^1.1.7"`
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅
The text was updated successfully, but these errors were encountered: