You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use eframe::egui;use eframe::egui::Context;#[no_mangle]pubfnrender(ctx:&Context){
egui::SidePanel::left("dll").show(ctx, |ui| {
ui.heading("My egui Application dll");});}
Expected behavior
Exit normally.
Screenshots
Desktop (please complete the following information):
OS: Windows11
Additional context
Error appears on both Glow and wgpu backend.
Both panic before dropping painter. Eframe version: 0.28.1
Error 0xc000041d exists when exception isn't handled in windows' user callback.
The text was updated successfully, but these errors were encountered:
The render function in lib.rs is not defined as extern "C" but it is imported as one, which might result in the calling convention mismatching.
It made no difference in my test. And I have something more from debugger(sorry for the pic reading but I don't know how to dump it in vscode) :
And it seem like a deallocation problem here (in the first pic it started from egui::memory::Memory when dropped IdTypeMap), may be it is caused by using Arc in dll(wait for more test)?
In 0.29.1, after using mimalloc and applying -Zbuild-std=core,std, allocation issue is toward to LayoutJob's text's dropping, and it seems like a double-free problem?
Describe the bug
When use dynamic library to render, clicking the exit button the application stop for seconds and exit with error.
To Reproduce
Steps to reproduce the behavior:
main.rs:
lib.rs:
Expected behavior
Exit normally.
Screenshots

Desktop (please complete the following information):
Additional context
Error appears on both
Glow
andwgpu
backend.Both panic before dropping
painter
.Eframe version: 0.28.1
Error
0xc000041d
exists when exception isn't handled inwindows
' user callback.The text was updated successfully, but these errors were encountered: