lxi-tools icon indicating copy to clipboard operation
lxi-tools copied to clipboard

it crashed running script

Open thewon86 opened this issue 9 months ago • 11 comments

lxi-tools-2.8.exe

WIN10

Click "Script -> Open -> selcet example connect-vxi11.lua -> Run", the gui tool exit . Click "Script -> Run", the gui tool exit .

thewon86 avatar Mar 12 '25 04:03 thewon86

I just tried do the same in the snap version on Linux. It does not crash.

It simply prints the following in the script output window pane:

Power Supply ID = -1.0

... because I don't have an instrument connected.

@psalic It is possible for you to see if you can confirm the issue on Windows?

Maybe we have an issue with the lua backend in the windows installer?

lundmar avatar Mar 14 '25 11:03 lundmar

Yes it crashed on windows. Seen only when device is not accessable. I open pull request.

psalic avatar Mar 14 '25 18:03 psalic

@psalic PR merged. Thanks!

FYI - I've also pushed some fixes to liblxi to better handle invalid handles so it should not crash.

lundmar avatar Mar 14 '25 20:03 lundmar

@thewon86 you can try new windows lxi tools. https://github.com/lxi-tools/lxi-tools-windows-installer/releases/tag/v2.8-4-g2a2dbe8

psalic avatar Mar 14 '25 20:03 psalic

@thewon86 you can try new windows lxi tools. https://github.com/lxi-tools/lxi-tools-windows-installer/releases/tag/v2.8-4-g2a2dbe8

when i open a example and run it, it seems ok. but, just open the app, open file "connect-vxi11.lua" with notepad, copy file context and paste into lxi-gui . click "Run", it crash.

open the app, without inputting anything, click "Run", it still crash

thewon86 avatar Mar 21 '25 08:03 thewon86

@thewon86 you can try new windows lxi tools. https://github.com/lxi-tools/lxi-tools-windows-installer/releases/tag/v2.8-4-g2a2dbe8

when i open a example and run it, it seems ok. but, just open the app, open file "connect-vxi11.lua" with notepad, copy file context and paste into lxi-gui . click "Run", it crash.

open the app, without inputting anything, click "Run", it still crash

Image Image

thewon86 avatar Mar 21 '25 08:03 thewon86

Confirm that newly created not saved script crashes on windows. It works on linux.

psalic avatar Mar 21 '25 13:03 psalic

@psalic Thanks for fixing the issue so quick!

lundmar avatar Mar 21 '25 14:03 lundmar

@thewon86 Now it should work. New windows installer: https://github.com/lxi-tools/lxi-tools-windows-installer/releases/download/v2.8-5-g482af29/lxi-tools-2.8-5-g482af29.exe

psalic avatar Mar 21 '25 15:03 psalic

@psalic Thanks for fixing the issue so quick!

@lundmar It is not big fix. Still need more then hour to find it.

psalic avatar Mar 21 '25 15:03 psalic

@thewon86 Now it should work. New windows installer: https://github.com/lxi-tools/lxi-tools-windows-installer/releases/download/v2.8-5-g482af29/lxi-tools-2.8-5-g482af29.exe

Well done, it looks ok present. Thanks.

thewon86 avatar Mar 25 '25 08:03 thewon86