ACEmulator / ACE

Asheron's Call server emulator.
https://emulator.ac
GNU Affero General Public License v3.0
297 stars 244 forks source link

Ok I give! #3708

Closed Warloxx01 closed 3 years ago

Warloxx01 commented 3 years ago

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Repro steps.

Run Sever, Create a new Character, Talk to Jonathan, Get Academy Exit Token, Hand Token Back... Crash!

The log given by the failure.

ACEmulator command prompt ready.

Type "acecommands" for help.

ACE >> 2021-10-17 05:58:12,492 INFO : [CHAT][AUDIT] [SYSTEM] says on the Audit channel, "World is now open" 2021-10-17 05:58:29,197 INFO : client owner connected with verified password Unhandled exception. System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object. at ACE.Server.WorldObjects.WorldObject.ItemMagic(WorldObject target, Spell spell, WorldObject itemCaster, WorldObject weapon, Boolean equip) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\WorldObject_Magic.cs:line 815 at ACE.Server.WorldObjects.WorldObject.TryCastSpell_Inner(Spell spell, WorldObject target, WorldObject itemCaster, WorldObject weapon, Boolean isWeaponSpell, Boolean fromProc, Boolean tryResist, Boolean showMsg) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\WorldObject_Magic.cs:line 121 at ACE.Server.WorldObjects.WorldObject.TryCastSpell(Spell spell, WorldObject target, WorldObject itemCaster, WorldObject weapon, Boolean isWeaponSpell, Boolean fromProc, Boolean tryResist, Boolean showMsg) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\WorldObject_Magic.cs:line 85 at ACE.Server.WorldObjects.WorldObject.TryCastSpell_WithRedirects(Spell spell, WorldObject target, WorldObject itemCaster, WorldObject weapon, Boolean isWeaponSpell, Boolean fromProc, Boolean tryResist, Boolean showMsg) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\WorldObject_Magic.cs:line 52 at ACE.Server.WorldObjects.Managers.EmoteManager.ExecuteEmote(PropertiesEmote emoteSet, PropertiesEmoteAction emote, WorldObject targetObject) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\Managers\EmoteManager.cs:line 243 at ACE.Server.WorldObjects.Managers.EmoteManager.DoEnqueue(PropertiesEmote emoteSet, WorldObject targetObject, Int32 emoteIdx, PropertiesEmoteAction emote) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\Managers\EmoteManager.cs:line 1628 at ACE.Server.WorldObjects.Managers.EmoteManager.<>cDisplayClass19_0.b1() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\Managers\EmoteManager.cs:line 1611 at ACE.Server.Entity.Actions.ActionEventDelegate.Act() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Entity\Actions\ActionEventDelegate.cs:line 16 at ACE.Server.Entity.Actions.ActionQueue.RunActions() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Entity\Actions\ActionQueue.cs:line 33 at ACE.Server.Entity.Landblock.TickMultiThreadedWork(Double currentUnixTime) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Entity\Landblock.cs:line 441 at ACE.Server.Managers.LandblockManager.<>c.b20_0(LandblockGroup landblockGroup) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\LandblockManager.cs:line 329 at System.Threading.Tasks.Parallel.<>cDisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.b1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, ParallelOptions parallelOptions, Action`1 body) at ACE.Server.Managers.LandblockManager.TickMultiThreadedWork() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\LandblockManager.cs:line 325 at ACE.Server.Managers.LandblockManager.Tick(Double portalYearTicks) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\LandblockManager.cs:line 258 at ACE.Server.Managers.WorldManager.UpdateGameWorld() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\WorldManager.cs:line 418 at ACE.Server.Managers.WorldManager.UpdateWorld() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\WorldManager.cs:line 375 at ACE.Server.Managers.WorldManager.<>c.b15_0() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\WorldManager.cs:line 61 at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() 2021-10-17 05:59:02,089 ERROR: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object. at ACE.Server.WorldObjects.WorldObject.ItemMagic(WorldObject target, Spell spell, WorldObject itemCaster, WorldObject weapon, Boolean equip) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\WorldObject_Magic.cs:line 815 at ACE.Server.WorldObjects.WorldObject.TryCastSpell_Inner(Spell spell, WorldObject target, WorldObject itemCaster, WorldObject weapon, Boolean isWeaponSpell, Boolean fromProc, Boolean tryResist, Boolean showMsg) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\WorldObject_Magic.cs:line 121 at ACE.Server.WorldObjects.WorldObject.TryCastSpell(Spell spell, WorldObject target, WorldObject itemCaster, WorldObject weapon, Boolean isWeaponSpell, Boolean fromProc, Boolean tryResist, Boolean showMsg) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\WorldObject_Magic.cs:line 85 at ACE.Server.WorldObjects.WorldObject.TryCastSpell_WithRedirects(Spell spell, WorldObject target, WorldObject itemCaster, WorldObject weapon, Boolean isWeaponSpell, Boolean fromProc, Boolean tryResist, Boolean showMsg) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\WorldObject_Magic.cs:line 52 at ACE.Server.WorldObjects.Managers.EmoteManager.ExecuteEmote(PropertiesEmote emoteSet, PropertiesEmoteAction emote, WorldObject targetObject) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\Managers\EmoteManager.cs:line 243 at ACE.Server.WorldObjects.Managers.EmoteManager.DoEnqueue(PropertiesEmote emoteSet, WorldObject targetObject, Int32 emoteIdx, PropertiesEmoteAction emote) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\Managers\EmoteManager.cs:line 1628 at ACE.Server.WorldObjects.Managers.EmoteManager.<>cDisplayClass19_0.b1() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\WorldObjects\Managers\EmoteManager.cs:line 1611 at ACE.Server.Entity.Actions.ActionEventDelegate.Act() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Entity\Actions\ActionEventDelegate.cs:line 16 at ACE.Server.Entity.Actions.ActionQueue.RunActions() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Entity\Actions\ActionQueue.cs:line 33 at ACE.Server.Entity.Landblock.TickMultiThreadedWork(Double currentUnixTime) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Entity\Landblock.cs:line 441 at ACE.Server.Managers.LandblockManager.<>c.b20_0(LandblockGroup landblockGroup) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\LandblockManager.cs:line 329 at System.Threading.Tasks.Parallel.<>cDisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.b1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, ParallelOptions parallelOptions, Action`1 body) at ACE.Server.Managers.LandblockManager.TickMultiThreadedWork() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\LandblockManager.cs:line 325 at ACE.Server.Managers.LandblockManager.Tick(Double portalYearTicks) in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\LandblockManager.cs:line 258 at ACE.Server.Managers.WorldManager.UpdateGameWorld() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\WorldManager.cs:line 418 at ACE.Server.Managers.WorldManager.UpdateWorld() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\WorldManager.cs:line 375 at ACE.Server.Managers.WorldManager.<>c.b15_0() in D:\AC Stuff\0) Server\2020\ACE-1.31.4082\ACE-master\Source\ACE.Server\Managers\WorldManager.cs:line 61 at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

Desired functionality.

Mention any other details that might be useful.