System.NullReferenceException at CmdLoadLavaMap.Use

System.NullReferenceException at CmdLoadLavaMap.Use

Postby Hawkzy » 15 Nov 2011, 14:20

Alrighty, so basically, I just downloaded 7.0.1.0 fresh to my Debian Squeeze VPS and I loaded it up with 'screen mono --gc=sgen MCDziennyLava.exe', and it was all going alright. Mid-game, it randomly said 'Object reference not set to an instance of an object', then when it came to it changing maps for the first time, it crashed on loading and dropped a System.NullReferenceException, crashing the server.

Error message:
Code: Select all
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an
object
  at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.CmdLoadLavaMap.Use (MCDzienny.Player p, System.String message) [0x00000] in <filename unknown>:0

  at MCDzienny.LavaSystem.LavaThread () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartUnsafe () [0x00000] in <filename unknown>:0


Log sixty seconds before error message:
Code: Select all
(13:10:20) !PLAYERS ONLINE: Hawkzy, jmart308, max_puleo, jonasoglau
(13:10:20) !LEVELS ONLINE: cube
(13:10:27) 1 minute left to end of lava flood
(13:11:27) Survivors, Congratulations!!!
(13:11:27) Winners list:
(13:11:27) max_puleo This round best! (Score: 244)
(13:11:27) Hawkzy (Score: 221)
(13:11:33) <max_puleo>[level] yay
(13:11:37) Vote for the next map
(13:11:37) Write 1 for pluto, 2 for island, 3 for cube
(13:11:59) 94.231.109.47 connected to the server.
(13:12:00) 94.231.109.47 disconnected.
(13:12:02) Results of voting:
(13:12:02) Map: pluto - 1, island - 0, cube - 1 votes.
(13:12:06) The next map is: pluto
(13:12:06) Level "pluto" loaded.
(13:12:06) !!!Error! See logs/errors/2011-11-15error.log for more information.
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an
object
  at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.CmdLoadLavaMap.Use (MCDzienny.Player p, System.String message) [0x00000] in <filename unknown>:0

  at MCDzienny.LavaSystem.LavaThread () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartUnsafe () [0x00000] in <filename unknown>:0


Any help on fixing this would be greatly appreciated - at the moment, this seems like the only problem we're having at the moment.
~Hawkzy
Hawkzy
 
Posts: 32
Joined: 19 Jul 2011, 01:55

Re: System.NullReferenceException at CmdLoadLavaMap.Use

Postby HelloWorldCool » 15 Nov 2011, 21:37

Log sixty seconds before error message:
Code: Select all
(13:10:20) !PLAYERS ONLINE: Hawkzy, jmart308, max_puleo, jonasoglau
(13:10:20) !LEVELS ONLINE: cube
(13:10:27) 1 minute left to end of lava flood
(13:11:27) Survivors, Congratulations!!!
(13:11:27) Winners list:
(13:11:27) max_puleo This round best! (Score: 244)
(13:11:27) Hawkzy (Score: 221)
(13:11:33) <max_puleo>[level] yay
(13:11:37) Vote for the next map
(13:11:37) Write 1 for pluto, 2 for island, 3 for cube
(13:11:59) 94.231.109.47 connected to the server.
(13:12:00) 94.231.109.47 disconnected.
(13:12:02) Results of voting:
(13:12:02) Map: pluto - 1, island - 0, cube - 1 votes.
(13:12:06) The next map is: pluto
(13:12:06) Level "pluto" loaded.
(13:12:06) !!!Error! See logs/errors/2011-11-15error.log for more information.
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an
object
  at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.CmdLoadLavaMap.Use (MCDzienny.Player p, System.String message) [0x00000] in <filename unknown>:0

  at MCDzienny.LavaSystem.LavaThread () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartUnsafe () [0x00000] in <filename unknown>:0


Any help on fixing this would be greatly appreciated - at the moment, this seems like the only problem we're having at the moment.
~Hawkzy


Ok well clearly there is a bug here. I think what may have caused the problem is 1 command. However before I say that it would be a good idea if you posted the error log. (IN this case: 2011-11-15error.log)

Possible Reasons for this Bug:
-One of your players may have decided to use /loadlavamap [map]
-You might have used that command
-And this might be a bug :D

Hope This helps and please reply back! :)
Download fCraft maps! - viewtopic.php?f=25&t=3012!



Note: The Developer(s) of MCDzienny have resigned and the software is no longer supported.
Errors are bound to occur and Mojang has not attempted to resolve them.
User avatar
HelloWorldCool
 
Posts: 867
Joined: 18 Oct 2011, 00:19
Location: MCDzienny Forums, HelloWorldCool Forums

Re: System.NullReferenceException at CmdLoadLavaMap.Use

Postby Hawkzy » 16 Nov 2011, 00:10

Nah, it wasn't anyone using /loadlavamap - I was the only superop online at the time. If you look at the last quote I posted, you'll see that it was straight after the voting for the next map was tallied and it began to load pluto, which is when it crashed. I will edit this post with logs after school because I can't access the VPS at school. I am sure it's happened before so I think it's a bug. I know that the problem lies in the loading process.
Code: Select all
MCDzienny.CmdLoadLavaMap.Use

And I definitely didn't use the /loadlavamap command. I was alt-tabbed away from the server at the time - I was idling there.
Hawkzy
 
Posts: 32
Joined: 19 Jul 2011, 01:55

Re: System.NullReferenceException at CmdLoadLavaMap.Use

Postby HelloWorldCool » 16 Nov 2011, 00:15

Hmm ok well if that isn't the case then i would suggest your maps are corrupted.

But Still I don't have any error log so idk.
Download fCraft maps! - viewtopic.php?f=25&t=3012!



Note: The Developer(s) of MCDzienny have resigned and the software is no longer supported.
Errors are bound to occur and Mojang has not attempted to resolve them.
User avatar
HelloWorldCool
 
Posts: 867
Joined: 18 Oct 2011, 00:19
Location: MCDzienny Forums, HelloWorldCool Forums

Re: System.NullReferenceException at CmdLoadLavaMap.Use

Postby Hawkzy » 16 Nov 2011, 06:48

Here's the error file.
Code: Select all
----11/15/2011 12:54:18 ----
Type: SqliteSyntaxException
Source: MCDzienny_
Message: unable to open database file
Target: GetNextStatement
Trace:   at Com.Sqlite.SQLiteClient.SqliteCommand.GetNextStatement (System.String pzStart, System.String& pzTai
l, Com.Sqlite.Vdbe& pStmt) [0x00000] in <filename unknown>:0
  at Com.Sqlite.SQLiteClient.SqliteCommand.ExecuteReader (CommandBehavior behavior, Boolean want_results, Syste
m.Int32& rows_affected) [0x00000] in <filename unknown>:0
  at Com.Sqlite.SQLiteClient.SqliteCommand.ExecuteNonQuery () [0x00000] in <filename unknown>:0
  at MCDzienny.SQLite.ExecuteQuery (System.String queryString) [0x00000] in <filename unknown>:0

-------------------------
----11/15/2011 12:54:34 ----
Type: NullReferenceException
Source: MCDzienny_
Message: Object reference not set to an instance of an object
Target: Use
Trace:   at MCDzienny.CmdTest.Use (MCDzienny.Player p, System.String message) [0x00000] in <filename unknown>:0

  at MCDzienny_.Gui.Program.handleComm (System.String s) [0x00000] in <filename unknown>:0
-------------------------
----11/15/2011 12:58:20 ----
Type: MySqlException
Source: MySql.Data
Message: Table 'MCDziennyLava.players' doesn't exist
Target: ReadPacket
Trace:   at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int32& insertedId) [0x000
00] in <filename unknown>:0

-------------------------
----11/15/2011 13:02:20 ----
Type: MySqlException
Source: MySql.Data
Message: Table 'MCDziennyLava.players' doesn't exist
Target: ReadPacket
Trace:   at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int32& insertedId) [0x000
00] in <filename unknown>:0

-------------------------
----11/15/2011 13:02:57 ----
Type: NullReferenceException
Source: MCDzienny_
Message: Object reference not set to an instance of an object
Target: GlobalMessage
Trace:   at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.CmdSetRank.Use (MCDzienny.Player p, System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny_.Gui.Program.handleComm (System.String s) [0x00000] in <filename unknown>:0

-------------------------
----11/15/2011 13:03:00 ----
Type: NullReferenceException
Source: MCDzienny_
Message: Object reference not set to an instance of an object
Target: GlobalMessage
Trace:   at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.CmdSetRank.Use (MCDzienny.Player p, System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny_.Gui.Program.handleComm (System.String s) [0x00000] in <filename unknown>:0
-------------------------
----11/15/2011 13:05:28 ----
Type: NullReferenceException
Source: MCDzienny_
Message: Object reference not set to an instance of an object
Target: GlobalMessage
Trace:   at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.CmdAfk.Use (MCDzienny.Player p, System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.Player+<>c__DisplayClass11.<HandleCommand>b__d () [0x00000] in <filename unknown>:0

-------------------------
----11/15/2011 13:05:38 ----
Type: NullReferenceException
Source: MCDzienny_
Message: Object reference not set to an instance of an object
Target: GlobalMessage
Trace:   at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.Player.HandleChat (System.Byte[] message) [0x00000] in <filename unknown>:0

-------------------------
----11/15/2011 13:05:38 ----
Type: NullReferenceException
Source: MCDzienny_
Message: Object reference not set to an instance of an object
Target: GlobalMessage
Trace:   at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.Player.HandleChat (System.Byte[] message) [0x00000] in <filename unknown>:0
  at MCDzienny.Player.HandleMessage (System.Byte[] buffer) [0x00000] in <filename unknown>:0

-------------------------
----11/15/2011 13:06:20 ----
Type: MySqlException
Source: MySql.Data
Message: Table 'MCDziennyLava.players' doesn't exist
Target: ReadPacket
Trace:   at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int32& insertedId) [0x000
00] in <filename unknown>:0
-------------------------
----11/15/2011 13:10:20 ----
Type: MySqlException
Source: MySql.Data
Message: Table 'MCDziennyLava.players' doesn't exist
Target: ReadPacket
Trace:   at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int32& insertedId) [0x000
00] in <filename unknown>:0

-------------------------
----11/15/2011 13:12:06 ----
Type: NullReferenceException
Source: MCDzienny_
Message: Object reference not set to an instance of an object
Target: GlobalMessage
Trace:   at MCDzienny.Player.GlobalMessage (System.String message) [0x00000] in <filename unknown>:0
  at MCDzienny.CmdLoadLavaMap.Use (MCDzienny.Player p, System.String message) [0x00000] in <filename unknown>:0

  at MCDzienny.LavaSystem.LavaThread () [0x00000] in <filename unknown>:0
  at System.Threading.Thread.StartUnsafe () [0x00000] in <filename unknown>:0

-------------------------
Hawkzy
 
Posts: 32
Joined: 19 Jul 2011, 01:55

Re: System.NullReferenceException at CmdLoadLavaMap.Use

Postby dzienny » 16 Nov 2011, 13:15

There was a reference to GUI object that in CLI mode doesn't exist and it was most likely the reason of the crash. This bug is fixed in the version 7.1RC.
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27

Re: System.NullReferenceException at CmdLoadLavaMap.Use

Postby Hawkzy » 16 Nov 2011, 15:11

That issue fixed, thank you!
Another issue, though. Every few minutes, the server software automatically shows the players online in console. Well..it used to. Every time it tries to now, it throws an exception regarding MySQL.

Code: Select all
----11/16/2011 14:07:39 ----
Type: MySqlException
Source: MySql.Data
Message: Table 'MCDziennyLava.players' doesn't exist
Target: ReadPacket
Trace:   at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int32& insertedId) [0x000
00] in <filename unknown>:0

-------------------------


It runs on Debian Squeeze 64bit. I have mysql-server installed and I've set the password and changed the settings in the server.properties and the /players command works fine, both in-game and on console. It's just when it tries to print the players online in console.
Hawkzy
 
Posts: 32
Joined: 19 Jul 2011, 01:55

Re: System.NullReferenceException at CmdLoadLavaMap.Use

Postby dzienny » 18 Nov 2011, 01:04

Hawkzy wrote:That issue fixed, thank you!
Another issue, though. Every few minutes, the server software automatically shows the players online in console. Well..it used to. Every time it tries to now, it throws an exception regarding MySQL.

Code: Select all
----11/16/2011 14:07:39 ----
Type: MySqlException
Source: MySql.Data
Message: Table 'MCDziennyLava.players' doesn't exist
Target: ReadPacket
Trace:   at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <filename unknown>:0
  at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int32& insertedId) [0x000
00] in <filename unknown>:0

-------------------------


It runs on Debian Squeeze 64bit. I have mysql-server installed and I've set the password and changed the settings in the server.properties and the /players command works fine, both in-game and on console. It's just when it tries to print the players online in console.

I think I found the reason of the error. It seems that MySQL for your system is case sensitive. The fix will be included in the next release.
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests

cron