Closed son-link closed 6 years ago
What OS and version are you using? What Node.js version? Are you able to reproduce the problem using one of the example? (node-pad has an open menu that open a file dialog)
OS: Arch Linux NodeJS: 10.2.1 And, yes, crash in examples/node-pad.js in Open, Save and Save AS
Ok I'll try to reproduce it.
related to https://github.com/mimecorg/vuido/issues/21
Yes, it's a libui-node bug.
TL;DR: uiOpenFile
returns NULL when aborting and we're then free
ing the NULL.
Code from libui/test/page5:
static void openFile(uiButton *b, void *data)
{
char *fn;
fn = uiOpenFile(parent);
if (fn == NULL)
uiLabelSetText(uiLabel(data), "(cancelled)");
else {
uiLabelSetText(uiLabel(data), fn);
uiFreeText(fn);
}
}
Fixed in version 0.2.1
I, firts sorry mi english. When i use the OpenFile dialog if i close it or press Cancel the program is crass. This us the error messages:
If i select a file and press Accept works correctly. I use the last release installed with npm