marco402 / plugin-Rtl433-for-SdrSharp

86 stars 13 forks source link

SDRSHARP chrash with rt433 plugins #1

Open drepou opened 2 years ago

drepou commented 2 years ago

tested with many version of sdrsharp i get a crash everytime seem related to frequency tuning tested with 1732 x64 version and 1777 32 bits

Consultez la fin de ce message pour plus de détails sur l'appel du débogage juste-à-temps (JIT) à la place de cette boîte de dialogue.

** Texte de l'exception ** System.BadImageFormatException: Tentative de chargement d’un programme de format incorrect. (Exception de HRESULT : 0x8007000B) à SDRSharp.Rtl_433.NativeMethods.setCenterFrequency(UInt32 centerFrequency) à System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e) à SDRSharp.SharpControlProxy.PropertyChangedEventHandler(Object sender, PropertyChangedEventArgs e) à SDRSharp.MainForm.NotifyPropertyChanged(String property) à SDRSharp.MainForm.UpdateCenterFrequency(Int64 frequency, Boolean setVFO, Boolean centerZoom) à SDRSharp.MainForm.vfoFrequencyEdit_FrequencyChanging(Object sender, FrequencyChangingEventArgs e) à SDRSharp.FrequencyEdit.FrequencyEdit.DigitClickHandler(Object sender, FrequencyEditDigitClickEventArgs args) à SDRSharp.FrequencyEdit.FrequencyEditDigit.OnMouseDown(MouseEventArgs e) à System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.UserControl.WndProc(Message& m) à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Assemblys chargés ** mscorlib Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4390.0 built by: NET48REL1LAST_C CodeBase : file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

SDRSharp Version de l'assembly : 1.0.0.1732 Version Win32 : 1.0.0.1732 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.exe

System Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4360.0 built by: NET48REL1LAST_C CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

SDRSharp.Radio Version de l'assembly : 0.0.0.0 Version Win32 : 0.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.Radio.DLL

System.Windows.Forms Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4390.0 built by: NET48REL1LAST_C CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4390.0 built by: NET48REL1LAST_C CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

Telerik.WinControls.UI Version de l'assembly : 2019.3.917.40 Version Win32 : 2019.3.917.40 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/Telerik.WinControls.UI.DLL

Telerik.WinControls Version de l'assembly : 2019.3.917.40 Version Win32 : 2019.3.917.40 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/Telerik.WinControls.DLL

SDRSharp.Common Version de l'assembly : 0.0.0.0 Version Win32 : 0.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.Common.DLL

SDRSharp.PanView Version de l'assembly : 0.0.0.0 Version Win32 : 0.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.PanView.DLL

System.Configuration Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4190.0 built by: NET48REL1LAST_B CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4390.0 built by: NET48REL1LAST_C CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4084.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

TelerikCommon Version de l'assembly : 2019.3.917.40 Version Win32 : 2019.3.917.40 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/TelerikCommon.DLL

Microsoft.GeneratedCode Version de l'assembly : 1.0.0.0 Version Win32 : 4.8.4084.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

SDRSharp.CollapsiblePanel Version de l'assembly : 0.0.0.0 Version Win32 : 0.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.CollapsiblePanel.DLL

SDRSharp.FrequencyEdit Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.FrequencyEdit.DLL

System.Data Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4270.0 built by: NET48REL1LAST_C CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

mscorlib.resources Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4084.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll

SDRSharp.RTLSDR Version de l'assembly : 0.0.0.0 Version Win32 : 0.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.RTLSDR.DLL

SDRSharp.RTLTCP Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.RTLTCP.DLL

SDRSharp.SDRIP Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.SDRIP.DLL

SDRSharp.AfedriSDRNet Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.AfedriSDRNet.DLL

Telerik.WinControls.Themes.FluentDark Version de l'assembly : 2019.3.917.40 Version Win32 : 2019.3.917.40 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/Telerik.WinControls.Themes.FluentDark.DLL

SDRSharp.DNR Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.DNR.DLL

SDRSharp.NoiseBlanker Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.NoiseBlanker.DLL

SDRSharp.WavRecorder Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.WavRecorder.DLL

SDRSharp.ZoomFFT Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.ZoomFFT.DLL

SDRSharp.BandPlan Version de l'assembly : 0.0.0.0 Version Win32 : 0.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.BandPlan.DLL

Microsoft.GeneratedCode Version de l'assembly : 1.0.0.0 Version Win32 : 4.8.4084.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

SDRSharp.FrequencyManager Version de l'assembly : 0.0.0.0 Version Win32 : 0.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.FrequencyManager.DLL

Microsoft.GeneratedCode Version de l'assembly : 1.0.0.0 Version Win32 : 4.8.4084.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

SDRSharp.Diagnostics Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.Diagnostics.DLL

SDRSharp.Rtl_433 Version de l'assembly : 1.4.0.0 Version Win32 : 1.4.0.0 CodeBase : file:///C:/RADIOS/sdrsharp-x64.1732/SDRSharp.Rtl_433.DLL

Accessibility Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4084.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

System.Windows.Forms.resources Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4084.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll

** Débogage JIT ** Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette application ou cet ordinateur (machine.config) doit avoir la valeur jitDebugging définie dans la section system.windows.forms. L'application doit également être compilée avec le débogage activé.

Par exemple :

Lorsque le débogage juste-à-temps est activé, les exceptions non gérées seront envoyées au débogueur JIT inscrit sur l'ordinateur plutôt que d'être gérées par cette boîte de dialogue.

marco402 commented 2 years ago

Hello I don’t have an explanation right now.

-The problem is loading the rtl_433.dll dll associated with its format.

-The error is on setCenterFrequency because it is the first call to the rtl_433 dll which causes it to load.

-I compile c# (SDRSharp.Rtl_433.dll and GraphLib.dll) sources with ANY CPU and rtl_433 with machineX86 target processor.

AnyCPU=>generates intermediate code(IL) which will be transformed into code corresponding to the machine by ngen at the first run.

I couldn’t find a 64-bit version of SDRSharp?

Have you tried with version 1811 of SDRSharp?

Marc

drepou commented 2 years ago

Hi

i finaly make it work with this version

https://airspy.com/download/ V1.0.0.1811

all others version with collapsible panels i tested and describe here dont work for me with the 433 plugins but work in sdantard listening with my 820t2 usb key

If you are looking for the last unskinned SDR# build, check here. For the latest SDR# build with collapsible panels check here. For the latest dotnet 4.x build (1784) check here. These packages also contain the legacy hardware support tools.

marco402 commented 2 years ago

Hi I think there is a problem with your link?

marco402 commented 2 years ago

Hi I tried the sdrsharp-x86-dotnet4(1784) version which gives me a different error from yours, this version tests the sdrsharp version used as reference in the project. while the current versions do not test it. I fixed the problem by setting sdrsharp.exe from sdrsharp-x86-dotnet4 as a reference in my project and it works, but also the 1777?. I’ll put a . zip with the 3 dll if you want to do some testing. sdrsharp-x86-dotnet4.zip Marc

drepou commented 2 years ago

ok i will try and tell you thanks

Le jeu. 5 août 2021 à 13:17, marco402 @.***> a écrit :

I tried the sdrsharp-x86-dotnet4(1784) version which gives me a different error from yours, this version tests the sdrsharp version used as reference in the project. while the current versions do not test it. I fixed the problem by setting sdrsharp.exe from sdrsharp-x86-dotnet4 as a reference in my project and it works, but also the 1777?. I’ll put a . zip with the 3 dll if you want to do some testing. sdrsharp-x86-dotnet4.zip https://github.com/marco402/plugin-Rtl433-for-SdrSharp/files/6938140/sdrsharp-x86-dotnet4.zip

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/marco402/plugin-Rtl433-for-SdrSharp/issues/1#issuecomment-893376238, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZEZIYYWX77K2UM6F33TZTT3JXMXANCNFSM5A2D2KPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

marco402 commented 2 years ago

Hi drepou

I added specific SDRSharp.Rtl_433.dll for versions 1777 ,1784 and 1732

Post me if OK or not

Do you have a specific reason to use older versions of SDRSharp?

For info my plugin is ok with new version SDRSharp 1812.

Marc

LabRatJason commented 2 years ago

I am seeing this same error in the latest version of SDR# (1854) I'm currently attempting to find a downloadable version of 1811 or 1812 (as mentioned above) but am unsuccessful so far, so I am unable to test if this resolves the issue for me.

marco402 commented 2 years ago

Hi Normally, version 1854 works with the "normal" version 1.5.5.0 and not dll_1.5.5.0_for_SDRSharp_1784. Can you give me the details of the error displayed (details button). Marc

LabRatJason commented 2 years ago

Sorry, unable to reproduce error again. (I found this issue by searching the error I was seeing, so I think I was getting it at first) but I removed and re-installed SDR# then reinstalled RTL-433 and it seems to be working now. May have been related to having multiple versions of SDR#, but I can't tell now. Sorry for the false alarm.

ms-jdow commented 2 years ago

FWIW I have the same problem. I have side by side and up to date installs of VS2010, 2017, 2019, and 2022. So I should have the latest libraries that Microsoft still supports. (.NET 5 is no longer supported and may have been removed with the latest VS updates.) The machine is one I used for video development at one time. It is WAY oversized for SDRSharp. I am testing with an AirSpy mini source. I am using 32 bit versions of everything for testing. I have never loaded the community version on this machine. The test versions were clean unzip of the official version followed by copying in the rtl_433.dll.

The symptom is fairly complex. I can load your dll but not enable it and SDRSharp behaves as normal, 1858 and 1860. As soon as I enable your DLL I get the above message and a new popup window. If I select the ignore choice SDRSharp continues to run. None of the controls seem to work and all produce the same message. So the problem appears to be something in a try {} clause. I don't have the Telerik development code on my machine or I'd debug this myself.

I hope that gives you a better chance of experiencing the problem yourself. Remote debugging is a PITA.

{^_^} Joanne

marco402 commented 2 years ago

hello Joanne Thanks for your message, I can't find the problem but if you want to debug in visual studio 2017, you need to download version 1732 of sdrsharp on Github(https://github.com/SDRSharpR/SDRSharp) , and use SDRSharp.sln(https://github.com/marco402/plugin-Rtl433-for-SdrSharp) which contains the sdrsharp projects and my 3 projects https://github.com/marco402/plugin-Rtl433-for-SdrSharp https://github.com/marco402/GraphLibSpecific https://github.com/marco402/Rtl_433_dll-for-plugin-SdrSharp

you will have to add in the debug or release: rtlsdr.dll

marc