Baofeng DMR.exe TypeInitializationException and deadlock

Questions about Wine on Linux
Locked
JuhaniJaakola
Newbie
Newbie
Posts: 3
Joined: Fri Jul 03, 2020 3:14 am

Baofeng DMR.exe TypeInitializationException and deadlock

Post by JuhaniJaakola »

DMR.exe (version v1.0.0.4) is a software from Baofeng for programming RD-5R radio channels etc. I can run it in Windows XP, but in Fedora 30 (32 bit) in Wine (wine-5.0-1.fc30.i686) I can install the program but when I try to start it, no window is displayed.

If I start DMR.exe in command line, I can see that I get two exceptions and wine gets stuck in a deadlock.

I tried to attach the full log but I get always error "Invalid file extension". I tried .txt, .log, .doc and no extension at all.

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'DMR.MainForm' threw an exception. ---> System.InvalidProgramException: Invalid IL code in pm4hmBPUb581GF1aCAc.HA0IQxPvGcew1yYAlhR:apvJliCGPS (int): IL_00aa: brfalse IL_2c3c
...
002c:err:ntdll:RtlpWaitForCriticalSection section 0x643d70a0 "metahost.c: runtime_list_cs" wait timed out in thread 002c, blocked by 0009, retrying (60 sec)
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Baofeng DMR.exe TypeInitializationException and deadlock

Post by jkfloris »

I tried to attach the full log but I get always error "Invalid file extension". I tried .txt, .log, .doc and no extension at all.
Can you make a .tar.gz archive and try again to attach the full log?
Or use a site like https://paste.debian.net/
 
JuhaniJaakola
Newbie
Newbie
Posts: 3
Joined: Fri Jul 03, 2020 3:14 am

Re: Baofeng DMR.exe TypeInitializationException and deadlock

Post by JuhaniJaakola »

I have attached .tar.gz of the log.
Attachments
LOG.tar.gz
(816 Bytes) Downloaded 83 times
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Baofeng DMR.exe TypeInitializationException and deadlock

Post by jkfloris »

Use winetricks to install the .Net Framework version 3.5 and try again.

Code: Select all

winetricks -q dotnet35
JuhaniJaakola
Newbie
Newbie
Posts: 3
Joined: Fri Jul 03, 2020 3:14 am

Re: Baofeng DMR.exe TypeInitializationException and deadlock

Post by JuhaniJaakola »

Installing dotnet35 helped, now DMR.exe works in Wine!

But now OpenGD77CPS.exe (another radio configuration program) complains that I must install .NET Framework v4.0.30319. It worked before I installed dotnet35... But after "winetricks -q dotnet40" both programs worked!

Thanks!
Locked