Skip to content

Unhandled Exception #27

@Yanik39

Description

@Yanik39

Hello,

I am using Hearth Ranger and Silverfish latest versions on windows 10 x64.
Everything was ok since months but for last few days i get "Unhandled Exception" error few times.

At Silver.exe screen i get this error text at the end of normal calculations;

deep 4 len 171 dones 5
cut to len 77
ailoop
deep 5 len 76 dones 6
cut to len 31
ailoop
deep 6 len 7 dones 7
cut to len 7

Unhandled Exception:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at HREngine.Bots.PenalityManager.getSpecialCardComboPenalitys(Handcard playedhcard, Minion target, Playfield p, Boolean lethal, Int32 choice)
at HREngine.Bots.PenalityManager.getPlayCardPenality(Handcard hcard, Minion target, Playfield p, Int32 choice, Boolean lethal)
at HREngine.Bots.Movegenerator.getMoveList(Playfield p, Boolean isLethalCheck, Boolean usePenalityManager, Boolean useCutingTargets)
at HREngine.Bots.MiniSimulatorNextTurn.doallmoves(Playfield playf, Boolean isLethalCheck, Boolean print)
at HREngine.Bots.EnemyTurnSimulator.simulateEnemysTurn(Playfield rootfield, Boolean simulateTwoTurns, Boolean playaround, Boolean print, Int32 pprob, Int32 pprob2)
at HREngine.Bots.MiniSimulator.dirtyWorkthread(Object to)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
System.NullReferenceException: Object reference not set to an instance of an object.
at HREngine.Bots.PenalityManager.getSpecialCardComboPenalitys(Handcard playedhcard, Minion target, Playfield p, Boolean lethal, Int32 choice)
at HREngine.Bots.PenalityManager.getPlayCardPenality(Handcard hcard, Minion target, Playfield p, Int32 choice, Boolean lethal)
at HREngine.Bots.Movegenerator.getMoveList(Playfield p, Boolean isLethalCheck, Boolean usePenalityManager, Boolean useCutingTargets)
at HREngine.Bots.MiniSimulatorNextTurn.doallmoves(Playfield playf, Boolean isLethalCheck, Boolean print)
at HREngine.Bots.EnemyTurnSimulator.simulateEnemysTurn(Playfield rootfield, Boolean simulateTwoTurns, Boolean playaround, Boolean print, Int32 pprob, Int32 pprob2)
at HREngine.Bots.MiniSimulator.dirtyWorkthread(Object to)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)

How can i fix this?

Kind regards..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions