CheeseLord / warts

WAcky Real Time Strategy
MIT License
1 stars 0 forks source link

Client crashes gracelessly if no server running #64

Open kronmillerg opened 7 years ago

kronmillerg commented 7 years ago
ERROR    networking  Failed to connect to server: Connection was refused by other side: 111: Connection refused. 
INFO     graphics    Window close requested -- shutting down client. 
Traceback (most recent call last):
  File "/usr/share/panda3d/direct/showbase/EventManager.py", line 52, in eventLoopTask
    self.doEvents()
  File "/usr/share/panda3d/direct/showbase/EventManager.py", line 46, in doEvents
    processFunc(self.eventQueue.dequeueEvent())
  File "/usr/share/panda3d/direct/showbase/EventManager.py", line 105, in processEvent
    messenger.send(eventName)
  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 327, in send
    self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 412, in __dispatch
    method (*(extraArgs + sentArgs))
  File "src/client/graphics.py", line 543, in handleWindowClose
    self.graphicsInterface.graphicsMessage(message.serialize())
  File "src/client/graphics_interface.py", line 164, in graphicsMessage
    self.backend.graphicsMessage(messageStr)
  File "src/client/backend.py", line 255, in graphicsMessage
    component.cleanup()
AttributeError: 'NoneType' object has no attribute 'cleanup'
:task(error): Exception occurred in PythonTask eventManager
ERROR    main        Shutting down client due to unhandled exception in graphics code: 

and then another traceback from the more generic handler.