[ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Fehler der Nightly-Versionen
Antworten
ch4d1
Beiträge: 12
Registriert: Mo 16. Jan 2023, 01:40
Hat sich bedankt: 8 Mal
Danksagung erhalten: 1 Mal

[ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Beitrag von ch4d1 »

Bot Version: 66cf2f93 ARM64/AArch64

Hi zusammen,

ich versuche derzeit die ARM64/AArch64 Version des Bots ans laufen zu bekommen... allerdings bekomme ich immer eine unhandled execption (siehe unten).
Dieser Fehler tritt sowohl mit Acc.ini (getestet mit beiden Windows Version) als auch ohne auf. Mein erster Verdacht war die Acc.ini ... aber ich würde sie daher irgendwie ausschließen.
Ich habe auch geprüft ob irgendwelche Abhängigkeiten fehlen.. scheint aber alles da zu sein (siehe unten)

Hat jemand eine Idee?

Es wird ein "core" dump erstellt, den ich jetzt ungern ins Forum laden würde (weil wer weiß was da drin steht).. Gerne stelle ich diesen dem Team zur Verfügung^^

Code: Alles auswählen

local-mfbot-nightly:/mfbot# ldd MFBot_Konsole
        /lib/ld-linux-aarch64.so.1 (0x7f946d4000)
        libpthread.so.0 => /lib/ld-linux-aarch64.so.1 (0x7f946d4000)
        libdl.so.2 => /lib/ld-linux-aarch64.so.1 (0x7f946d4000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f943fe000)
        libm.so.6 => /lib/ld-linux-aarch64.so.1 (0x7f946d4000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f943cd000)
        libc.so.6 => /lib/ld-linux-aarch64.so.1 (0x7f946d4000)
        ld-linux-aarch64.so.1 => /lib/ld-linux-aarch64.so.1 (0x7f943ac000)

Code: Alles auswählen

local-mfbot-nightly:/mfbot# readelf -h MFBot_Konsole
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              DYN (Shared object file)
  Machine:                           AArch64
  Version:                           0x1
  Entry point address:               0x10000
  Start of program headers:          64 (bytes into file)
  Start of section headers:          198312 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         12
  Size of section headers:           64 (bytes)
  Number of section headers:         33
  Section header string table index: 32

Code: Alles auswählen

local-mfbot-nightly:/mfbot# ./MFBot_Konsole
Loaded assembly
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path')
   at System.IO.Directory.GetParent(String path)
   at System.Configuration.LocalFileSettingsProvider.GetPreviousConfigFileName(Boolean isRoaming)
   at System.Configuration.LocalFileSettingsProvider.Upgrade(SettingsContext context, SettingsPropertyCollection properties, Boolean isRoaming)
   at System.Configuration.ApplicationSettingsBase.Upgrade()
   at de.mfbot.MFBot_NG.Basisbibliothek.GlobalSettings.get_Settings()
   at de.mfbot.MFBot_NG.Konsole.Program.Main(String[] args)
Aborted (core dumped)
Mandre
Beiträge: 1
Registriert: Di 5. Dez 2023, 16:14
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: [ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Beitrag von Mandre »

Bei der x86_64 ist das gleiche Problem
jsfrz
Beiträge: 5
Registriert: Sa 18. Nov 2023, 21:15
Hat sich bedankt: 1 Mal
Danksagung erhalten: 0

Re: [ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Beitrag von jsfrz »

Same with x86_64, but for some reason works with sudo
ch4d1
Beiträge: 12
Registriert: Mo 16. Jan 2023, 01:40
Hat sich bedankt: 8 Mal
Danksagung erhalten: 1 Mal

Re: [ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Beitrag von ch4d1 »

Ich hab den verdacht, dass es an der neuen UI der Konsole liegen könnte... ich versuche ja das ganze in einem Docker Container laufen zu lassen.
Gibt es eine Option (Parameter) auf die Klassische Ansicht (log) umzuschalten?

Sowas wie:

Code: Alles auswählen

./MFBot_Konsole --ui="old"
jsfrz
Beiträge: 5
Registriert: Sa 18. Nov 2023, 21:15
Hat sich bedankt: 1 Mal
Danksagung erhalten: 0

Re: [ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Beitrag von jsfrz »

Tried to create x86_64 Docker images with Alpine and Ubuntu:

Code: Alles auswählen

FROM alpine:latest

RUN apk --no-cache add wget dotnet6-runtime libc6-compat

WORKDIR /app

RUN wget https://download.mfbot.de/nightly/MFBot_Konsole_x86_64

RUN chmod +x MFBot_Konsole_x86_64

CMD ["./MFBot_Konsole_x86_64"]

Code: Alles auswählen

FROM ubuntu:latest

RUN apt-get update && \
    apt-get install -y dotnet-runtime-6.0 wget

WORKDIR /app

RUN wget https://download.mfbot.de/nightly/MFBot_Konsole_x86_64

RUN chmod +x MFBot_Konsole_x86_64

CMD ["./MFBot_Konsole_x86_64"]
Both crash after start:

Code: Alles auswählen

Loaded assembly

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path')

   at System.IO.Directory.GetParent(String path)

   at System.Configuration.LocalFileSettingsProvider.GetPreviousConfigFileName(Boolean isRoaming)

   at System.Configuration.LocalFileSettingsProvider.Upgrade(SettingsContext context, SettingsPropertyCollection properties, Boolean isRoaming)

   at System.Configuration.ApplicationSettingsBase.Upgrade()

   at de.mfbot.MFBot_NG.Basisbibliothek.GlobalSettings.get_Settings()

   at de.mfbot.MFBot_NG.Konsole.Program.Main(String[] args)
Benutzeravatar
Robin
Administrator
Beiträge: 1723
Registriert: So 30. Jun 2013, 18:12
Wohnort: Rheinland-Pfalz
Hat sich bedankt: 303 Mal
Danksagung erhalten: 354 Mal

Re: [ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Beitrag von Robin »

Hallo zusammen,

das Problem wird hier eher nicht an der UI liegen (btw: Zum Abschalten siehe aktuell hier viewtopic.php?p=18580#p18580, ggf. kommt da noch ein einfacher Schalter in Zukunft).
Ich vermute, dass es mit dem .NET Upgrade zusammenhängt.

Könntet ihr einmal die Ausgabe folgender Kommandos posten?

Code: Alles auswählen

ls -lah ~/.local/share/mfbot.de/
ls -lah ~/.config/mfbot.de
Viele Grüße
Robin

Edit 23:44: Try it with the current Nightly, I've made the code there a bit more robust.
MFBot-VersionCode-Zeilen*In Dateien*Letzte Version
MFBot 1.5.x64851Juli 2013
MFBot 2.x1436316März 2014
MFBot 3.x2209536März 2015
MFBot 4.x55242241Juli 2018
MFBot 5.x66000440Tbc
*Ohne automatisch generierten Designer-Code
jsfrz
Beiträge: 5
Registriert: Sa 18. Nov 2023, 21:15
Hat sich bedankt: 1 Mal
Danksagung erhalten: 0

Re: [ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Beitrag von jsfrz »

Thanks, works after creating suggested directories which were not present.
Benutzeravatar
Robin
Administrator
Beiträge: 1723
Registriert: So 30. Jun 2013, 18:12
Wohnort: Rheinland-Pfalz
Hat sich bedankt: 303 Mal
Danksagung erhalten: 354 Mal

Re: [ARM64/AArch64][66cf2f93] Unhandled exception Value cannot be null

Beitrag von Robin »

Thanks for your response!

It seems you have dug up an old .NET Core Issue (see https://github.com/dotnet/runtime/issues/28833), but we can get around that, now that we know. :slightly_smiling_face:
We'll fix this for the next nightly.

Regards,
Robin

Edit: Nightly is out now, should be working with that.
Folgende Benutzer bedankten sich beim Autor Robin für den Beitrag:
ch4d1 (Mi 28. Feb 2024, 13:46)
MFBot-VersionCode-Zeilen*In Dateien*Letzte Version
MFBot 1.5.x64851Juli 2013
MFBot 2.x1436316März 2014
MFBot 3.x2209536März 2015
MFBot 4.x55242241Juli 2018
MFBot 5.x66000440Tbc
*Ohne automatisch generierten Designer-Code
Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 23 Gäste