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

implot run with webassembly occur some errors in browser console #556

Open
deloverzeus opened this issue Feb 27, 2024 · 0 comments
Open

Comments

@deloverzeus
Copy link

deloverzeus commented Feb 27, 2024

I have called ImGui::CreateContext(); ImPlot::CreateContext();
if (ImPlot::BeginPlot("My Plot")){ ... ImPlot::EndPlot();}
But when run in browser show occur some errors:
For example:
fxqtest.html:1 Aborted(Assertion failed: (gp.CurrentPlot != nullptr) && "PlotX() needs to be called between BeginPlot() and EndPlot()!", at: src/implot_items.cpp,397,BeginItem);
Uncaught RuntimeError: Aborted(Assertion failed: (gp.CurrentPlot != nullptr) && "PlotX() needs to be called between BeginPlot() and EndPlot()!", at: src/implot_items.cpp,397,BeginItem)
at abort (fxqtest.js:1:22554)
at ___assert_fail (fxqtest.js:1:39999)
at 002eb962:0x14e07
at 002eb962:0x9a04
at callUserCallback (fxqtest.js:1:99385)
at Object.runIter (fxqtest.js:1:116151)
at Browser_mainLoop_runner (fxqtest.js:1:132745)
Uncaught RuntimeError: Aborted(Assertion failed: Ctx != 0L, at: src/imgui.cpp,1547,AddMousePosEvent)
at abort (fxqtest.js:1:22554)
at ___assert_fail (fxqtest.js:1:39999)
at 002eb962:0x42427
at 002eb962:0x2743b
at HTMLCanvasElement.onMouseenter (fxqtest.js:1:172855)

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

No branches or pull requests

1 participant