Bot crashed beim Starten auf RaspberryPi

In das Unterforum "Erledigt" werden alle Beiträge geschoben, die erledigt sind, bspw. bei behobenen Bugs.
Gesperrt
YominCarr
Beiträge: 2
Registriert: Mi 20. Jun 2018, 18:22
Hat sich bedankt: 0
Danksagung erhalten: 0

Bot crashed beim Starten auf RaspberryPi

Beitrag von YominCarr »

Hi,
ich habe heute versucht den Bot (neueste Release Version) auf meinem RaspberryPi zum ersten Mal zu starten, bekomme aber nach etwa 2 Sekunden eine Exception als erste Ausgabe:
SPOILER
Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: format
at System.ParameterizedStrings.Evaluate (System.String format, System.ParameterizedStrings+FormatParam[] args) [0x00003] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.ChangeColor (System.String format, System.ConsoleColor color) [0x00032] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.set_ForegroundColor (System.ConsoleColor value) [0x0000e] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.ConsoleDriver.set_ForegroundColor (System.ConsoleColor value) [0x00019] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.Console.set_ForegroundColor (System.ConsoleColor value) [0x00000] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at de.mfbot.MFBot_NG.Konsole.Program.WriteOutput (System.String str) [0x00000] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Konsole.Program.Run () [0x0008d] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Basisbibliothek.BaseProgram.start (System.Action methodToRun) [0x000d4] in <dcd7d840f14a47f48ccfd519d1feb266>:0
at de.mfbot.MFBot_NG.Konsole.Program.Main (System.String[] args) [0x00005] in <a29bc946a9d247b1809f7042b6a58032>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Value cannot be null.
Parameter name: format
at System.ParameterizedStrings.Evaluate (System.String format, System.ParameterizedStrings+FormatParam[] args) [0x00003] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.ChangeColor (System.String format, System.ConsoleColor color) [0x00032] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.set_ForegroundColor (System.ConsoleColor value) [0x0000e] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.ConsoleDriver.set_ForegroundColor (System.ConsoleColor value) [0x00019] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.Console.set_ForegroundColor (System.ConsoleColor value) [0x00000] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at de.mfbot.MFBot_NG.Konsole.Program.WriteOutput (System.String str) [0x00000] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Konsole.Program.Run () [0x0008d] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Basisbibliothek.BaseProgram.start (System.Action methodToRun) [0x000d4] in <dcd7d840f14a47f48ccfd519d1feb266>:0
at de.mfbot.MFBot_NG.Konsole.Program.Main (System.String[] args) [0x00005] in <a29bc946a9d247b1809f7042b6a58032>:0
Alle Pakete sind auf dem neuesten Stand, mono-runtime ist installiert und die Config habe ich von meinem Windows Rechner rüberkopiert. Damit sollte ich glaube ich alles so gemacht haben, wie in der Anleitung beschrieben.
Der Inhalt des logfiles ist vielleicht noch hilfreich:
SPOILER
#### Log für General
#### Beginn am 20.06.2018 18:30
#####################################################
20180620 18:30:16 Debug Database opening sqlite
20180620 18:30:16 Debug Database sqlite path is /home/pi/MFBot/bot.dat
20180620 18:30:17 Debug Database sqlite successfully opened
20180620 18:30:17 Debug Database current DB version is 6
20180620 18:30:17 Warn Core Value cannot be null.
Parameter name: format
Message: Value cannot be null.
Parameter name: format
HResult: -2147467261
Source: mscorlib
StackTrace: at System.ParameterizedStrings.Evaluate (System.String format, System.ParameterizedStrings+FormatParam[] args) [0x00
003] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.ChangeColor (System.String format, System.ConsoleColor color) [0x00032] in <b0e32063e1e04cbf802ab56dcff
ac4b0>:0
at System.TermInfoDriver.set_ForegroundColor (System.ConsoleColor value) [0x0000e] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.ConsoleDriver.set_ForegroundColor (System.ConsoleColor value) [0x00019] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.Console.set_ForegroundColor (System.ConsoleColor value) [0x00000] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at de.mfbot.MFBot_NG.Konsole.Program.WriteOutput (System.String str) [0x00000] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Konsole.Program.Run () [0x0008d] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Basisbibliothek.BaseProgram.start (System.Action methodToRun) [0x0007c] in <dcd7d840f14a47f48ccfd519d1feb266>:0
TargetSite: System.String Evaluate(System.String, FormatParam[])

20180620 18:30:17 Warn Core Value cannot be null.
Parameter name: format
Message: Value cannot be null.
Parameter name: format
HResult: -2147467261
Source: mscorlib
StackTrace: at System.ParameterizedStrings.Evaluate (System.String format, System.ParameterizedStrings+FormatParam[] args) [0x00003] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.ChangeColor (System.String format, System.ConsoleColor color) [0x00032] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.set_ForegroundColor (System.ConsoleColor value) [0x0000e] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.ConsoleDriver.set_ForegroundColor (System.ConsoleColor value) [0x00019] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.Console.set_ForegroundColor (System.ConsoleColor value) [0x00000] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at de.mfbot.MFBot_NG.Konsole.Program.WriteOutput (System.String str) [0x00000] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Konsole.Program.Run () [0x0008d] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Basisbibliothek.BaseProgram.start (System.Action methodToRun) [0x0007c] in <dcd7d840f14a47f48ccfd519d1feb266>:0
TargetSite: System.String Evaluate(System.String, FormatParam[])

20180620 18:30:17 Warn Core Value cannot be null.
Parameter name: format
Message: Value cannot be null.
Parameter name: format
HResult: -2147467261
Source: mscorlib
StackTrace: at System.ParameterizedStrings.Evaluate (System.String format, System.ParameterizedStrings+FormatParam[] args) [0x00003] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.ChangeColor (System.String format, System.ConsoleColor color) [0x00032] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.TermInfoDriver.set_ForegroundColor (System.ConsoleColor value) [0x0000e] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.ConsoleDriver.set_ForegroundColor (System.ConsoleColor value) [0x00019] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at System.Console.set_ForegroundColor (System.ConsoleColor value) [0x00000] in <b0e32063e1e04cbf802ab56dcffac4b0>:0
at de.mfbot.MFBot_NG.Konsole.Program.WriteOutput (System.String str) [0x00000] in <a29bc946a9d247b1809f7042b6a58032>:0
at de.mfbot.MFBot_NG.Konsole.Program.Run () [0x0008d] in <a29bc946a9d247b1809f7042b6a58032>:0
Ich hoffe jemand kann mir da weiterhelfen.
Viele Grüße
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: Bot crashed beim Starten auf RaspberryPi

Beitrag von Robin »

Hallo YominCarr!
Aus irgendeinem Grund meint Mono, dass es bei dir nicht möglich ist, die Schrift einzufärben. Dagegen könnte helfen, über das Terminal die TERM-Umgebungsvariable wie folgt zu setzen:

Code: Alles auswählen

export TERM=xterm-color
Lass mich wissen, ob es funktioniert hat.

Grüße,
Robin
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
YominCarr
Beiträge: 2
Registriert: Mi 20. Jun 2018, 18:22
Hat sich bedankt: 0
Danksagung erhalten: 0

Re: Bot crashed beim Starten auf RaspberryPi

Beitrag von YominCarr »

Oh wow, sowas blödes. Ich war über die SSH Secure Shell von Windows drauf, die hat ein farbloses Terminal als Standard Einstellung. Ich bin mal direkt lokal auf den Raspberry drauf mit nem ordentlichen Terminal und dann gings in der Tat. Vielen Dank! :-) :-)
Gesperrt

Wer ist online?

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