sdrangel icon indicating copy to clipboard operation
sdrangel copied to clipboard

Unfortunately 7.6.1 crashes on close under Windows.

Open mistergitj opened this issue 1 year ago • 4 comments

Thanks for the latest version (7.6.1) of SDRangel. I am running under W10. Unfortunately it crashes when I click the X button (Close it). Enjoy, John.

mistergitj avatar Aug 03 '22 19:08 mistergitj

Works OK for me.

What SDR are you using? What plugins/features do you have open before pressing close? A screenshot would be useful.

srcejon avatar Aug 04 '22 08:08 srcejon

@mistergitj indeed your description is too vague and discourages me to continue developing this software

f4exb avatar Aug 04 '22 09:08 f4exb

Sorry for the vague post. I erroneously thought that my first reporting this problem, here, would be recalled. I am running the AirSpy R2 and it does not seem to matter what configuration I am running. If I open SDRangel, load any configuration, make changes and close SDRangel, all is fine. If I Start the configuration, it always crashes on close after clicking the X on the main dialog or X on the SDRangel window. Thanks and enjoy, John.

mistergitj avatar Aug 04 '22 12:08 mistergitj

A friend loaned me an SDRplay and it does crash on W10 using v7.6.1. Hope this helps. Enjoy, John.

mistergitj avatar Aug 05 '22 18:08 mistergitj

This issue is going to be closed due to inactivity

github-actions[bot] avatar Oct 05 '22 04:10 github-actions[bot]

I have continued to test this problem on each new release and the results are the same. Using W10 with an Airspy R2, if I start the radio, SDRangel crashes on close using the X. If I have modified a Configuration, the changes are lost. Either I am doing something wrong or SDRangel has a problem with W10. My SDRplay never crashes on close. Thanks, John.

mistergitj avatar Oct 05 '22 12:10 mistergitj

I don't have an airspy, so can't test this myself. However, a few changes have been made to the airspy driver regarding threading, so perhaps that might make a difference. If you want to try them, download this latest test build:

https://github.com/f4exb/sdrangel/suites/8588595921/artifacts/384751205

srcejon avatar Oct 05 '22 13:10 srcejon

Thanks, srcejon, I ran a quick test on the sdrangel-7.7.0-102-ga94752602-win64 but it crashed as soon as I clicked the X in the device window. I get a blue circle when I click. I am running W10 x64. In the original thread I opened, here, this problem was reproduced on your end. Thanks for your response, John.

mistergitj avatar Oct 05 '22 13:10 mistergitj

Ok, here's another attempt at a fix:

https://github.com/f4exb/sdrangel/suites/8628210569/artifacts/387514948

srcejon avatar Oct 05 '22 16:10 srcejon

Thanks, srcejon, will test after lunch. Enjoy, John.

mistergitj avatar Oct 05 '22 16:10 mistergitj

Unfortunately, srcejon but got the same results. Here is what showed up in the Windows Event Log:

  • System

    • Provider

    [ Name] Application Error

    • EventID 1000

    [ Qualifiers] 0

    Version 0

    Level 2

    Task 100

    Opcode 0

    Keywords 0x80000000000000

    • TimeCreated

    [ SystemTime] 2022-10-05T18:16:55.1242372Z

    EventRecordID 37763

    Correlation

    • Execution

    [ ProcessID] 0 [ ThreadID] 0

    Channel Application

    Computer xxxxxx

    Security

  • EventData

    sdrangel.exe 0.0.0.0 633d9f2b libusb-1.0.dll 1.0.26.11724 6252cb06 c0000005 0000000000001d05 338c 01d8d8e64918014e C:\Program Files\SDRangel\sdrangel.exe C:\Program Files\SDRangel\libusb-1.0.dll e011efcf-8d51-4d16-b272-7d6e1bfb8839

    Thanks, John.

mistergitj avatar Oct 05 '22 18:10 mistergitj

So I've managed to reproduce the problem. It appears to be related to the version of libusb used. With 1.0.26, it crashes, with 1.0.25 it doesn't.

image

Not obvious what sdrangel could be doing wrong here, as this is when it calls airspyhf_close().

srcejon avatar Oct 07 '22 12:10 srcejon

Great! Thanks, srcejon. Thanks for your work. Enjoy, john.

mistergitj avatar Oct 07 '22 13:10 mistergitj

Ok, my crash was with AirspyHF+ rather than Airspy, and is due to a bug in the airspyhf driver which was fixed here:

https://github.com/airspy/airspyhf/commit/c55a305a79eea70cf61ea22a081b29d37805b9fc

So we need to update AIRSPYHF_TAG to a more recent tag.

It looks like the same bug was fixed in the Airspy driver, so we also need to update that:

https://github.com/airspy/airspyone_host/commit/41c439f16818d931c4d0f8a620413ea5131c0bd6

srcejon avatar Oct 07 '22 14:10 srcejon

I have a Airspy mini and it does crash on close with the previous revision. Let's wait for the build... No need to wait in fact. and... it does fix the issue. Well done!

f4exb avatar Oct 07 '22 17:10 f4exb

Thanks much! I will some more testing tomorrow but a quick test showed 7.8.1 does no crash on close using an AirSpy under W10. Thank you very much, John.

mistergitj avatar Oct 19 '22 21:10 mistergitj