Ticket #201 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

JavElimBot Crashing

Reported by: Left_Eye Assigned to:
Priority: high Component: Bots - Other
Version: Latest version from repository Severity: blocking
Keywords: Cc:

Description

After the new database was installed on the JavElimBot, it is now crashing it when doing teams. It apparently allows Solo to commence fine, but after it gives the 90 seconds to make their own teams, the bot stop responding and just crashes. It may have to do with database or the assigning of teammates that have no teams. I have no clue what it is, but it's killing the bot constantly, doesn't even allow the game to start, unless it's a solo game. This is one of the upmost important bots for weekend games, so can someone please fix this asap? It would be greatly appreciated! Like a lot! Thank you!

Attachments

Change History

01/11/08 12:16:50 changed by Maverick

  • priority changed from highest to high.
  • severity changed from critical to blocking.
Exception in thread "Timer-38" java.util.NoSuchElementException
	at java.util.TreeMap.key(TreeMap.java:433)
	at java.util.TreeMap.firstKey(TreeMap.java:287)
	at java.util.Collections$SynchronizedSortedMap.firstKey(Collections.java:2126)
	at twcore.bots.javelim.javelim$7.run(javelim.java:877)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)

Investigating now…

01/11/08 12:45:38 changed by Maverick

According to the stacktrace, it crashes in this task:

        //scoreboard checking task
        m_botAction.scheduleTask(new TimerTask() {
            public void run() {
                KimPlayer kp;
                synchronized(m_deathMap) {
877 >>>>            kp = m_deathMap.get(m_deathMap.firstKey());
                }
                if(m_mvp != m_prevMvp || m_survivor != kp) {
                    m_prevMvp = m_mvp;
                    refreshScoreboard();
                }
            }
        }, DELAY_GOGOGO + 5000, SCOREBOARD_CHECK_PERIOD);

Commited a fix in changeset:2132.

01/11/08 13:06:54 changed by Maverick

2:Left_Eye> good, it works now

flibb, can you verify I've fixed it the right way (and not just broken it more) and close this ticket?

Thanks :)

01/11/08 15:37:51 changed by flibb

  • status changed from new to closed.
  • resolution set to fixed.

Oh, thanks Mav :) Looks good


Add/Change #201 (JavElimBot Crashing)




Change Properties
Action