epezent / epezent/implot

implot run with webassembly occur some errors in browser console

Open
#556 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
693
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.