It is currently 31 Aug 2025, 13:46
   
Text Size

MageKing17's Releases (Latest: v0.7.1c)

by Incantus

Moderator: CCGHQ Admins

Re: New special-super-ultra-awesome edition

Postby staggerwingjtstw » 18 Nov 2008, 11:41

Interesting. If I go farther back, it's information from other past games (and usually the same thing.) On thinking back about other games where that happened, I know that the opponent had a Favor of the Overbeing enchanted creature (so that it had flying) but not a creature with flying as one of its abilities. That help at all?
I like being bad... it makes me happy...
User avatar
staggerwingjtstw
 
Posts: 181
Joined: 31 May 2008, 18:03
Has thanked: 3 times
Been thanked: 1 time

Re: New special-super-ultra-awesome edition

Postby The Scientist » 18 Nov 2008, 12:40

A log has a number of paragraphs, we want the last paragraph which starts usually with "Traceback (most recent call last):" That way, we can track were in incantus a bug may be.
The Scientist
 
Posts: 94
Joined: 05 Jun 2008, 07:39
Has thanked: 0 time
Been thanked: 0 time

Re: New special-super-ultra-awesome edition

Postby staggerwingjtstw » 19 Nov 2008, 13:23

Unfortunately, that is the last paragraph. That's all it gives me after it's frozen.
I like being bad... it makes me happy...
User avatar
staggerwingjtstw
 
Posts: 181
Joined: 31 May 2008, 18:03
Has thanked: 3 times
Been thanked: 1 time

Re: New special-super-ultra-awesome edition

Postby MageKing17 » 19 Nov 2008, 23:20

I mean we want from "Traceback" to "UserWarning". For example, if I intentionally cause my game to "crash" (this isn't actually an error, but it generates a traceback anyway), the full traceback looks like this:

Code: Select all
Traceback (most recent call last):
  File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function'
  File "pyglet\window\win32\__init__.pyo", line 849, in _wnd_proc
  File "pyglet\window\win32\__init__.pyo", line 918, in _event_key
  File "pyglet\window\__init__.pyo", line 1217, in dispatch_event
  File "pyglet\event.pyo", line 349, in dispatch_event
  File "ui\Incantus.pyo", line 269, in on_key_press
  File "ui\Incantus.pyo", line 527, in action_new_game
  File "game\GameKeeper.pyo", line 62, in init
  File "game\Player.pyo", line 408, in getIntention
  File "game\Player.pyo", line 368, in input
  File "ui\Incantus.pyo", line 752, in userinput
ui.Incantus.GameOverException
See, all of those lines that start with "File" give a filename, a linenumber, and a function name. With this information, we can track down what steps the program went through until it hit the actual crash (in this case, "ui.Incantus.GameOverException", which means I quit while a "Yes/No" dialog was onscreen) so we can find out what the problem is (in this case, that we use an exception to quit the program instead of just quitting, but that's not important :P ).
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: New special-super-ultra-awesome edition

Postby staggerwingjtstw » 20 Nov 2008, 14:35

I tried again and I actually got something in my .exe! So here you go!
C:\Documents and Settings\The Massive\Desktop\Incantus-win\Incantus.exe\pyglet\window\win32\__init__.py:552: UserWarning: Could not set vsync; unsupported extension.
Traceback (most recent call last):
File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function'
File "pyglet\window\win32\__init__.pyo", line 849, in _wnd_proc
File "pyglet\window\win32\__init__.pyo", line 1032, in _event_lbuttonup
File "pyglet\window\win32\__init__.pyo", line 1021, in _event_mousebutton
File "pyglet\window\__init__.pyo", line 1217, in dispatch_event
File "pyglet\event.pyo", line 340, in dispatch_event
File "ui\controllers.pyo", line 751, in on_mouse_release
File "ui\card.pyo", line 410, in restore_pos
AttributeError: 'PlayCard' object has no attribute 'old_pos'
Traceback (most recent call last):
File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function'
File "pyglet\window\win32\__init__.pyo", line 849, in _wnd_proc
File "pyglet\window\win32\__init__.pyo", line 1052, in _event_rbuttonup
File "pyglet\window\win32\__init__.pyo", line 1021, in _event_mousebutton
File "pyglet\window\__init__.pyo", line 1217, in dispatch_event
File "pyglet\event.pyo", line 340, in dispatch_event
File "ui\controllers.pyo", line 751, in on_mouse_release
File "ui\card.pyo", line 410, in restore_pos
AttributeError: 'PlayCard' object has no attribute 'old_pos'
Traceback (most recent call last):
File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function'
File "pyglet\window\win32\__init__.pyo", line 849, in _wnd_proc
File "pyglet\window\win32\__init__.pyo", line 1032, in _event_lbuttonup
File "pyglet\window\win32\__init__.pyo", line 1021, in _event_mousebutton
File "pyglet\window\__init__.pyo", line 1217, in dispatch_event
File "pyglet\event.pyo", line 340, in dispatch_event
File "ui\controllers.pyo", line 751, in on_mouse_release
File "ui\card.pyo", line 410, in restore_pos
AttributeError: 'PlayCard' object has no attribute 'old_pos'
I like being bad... it makes me happy...
User avatar
staggerwingjtstw
 
Posts: 181
Joined: 31 May 2008, 18:03
Has thanked: 3 times
Been thanked: 1 time

Re: New special-super-ultra-awesome edition

Postby MageKing17 » 20 Nov 2008, 19:10

See, now, that's a completely different error. And makes no sense, either.
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: New special-super-ultra-awesome edition

Postby frwololo » 21 Nov 2008, 00:53

MageKing17 wrote:See, now, that's a completely different error. And makes no sense, either.
I'm no python expert, but I'd say the vsync error is just a warning and not the actual error.
The actual error seems to be that the attribute "old_pos" doesn't exist... I'd guess that happens when trying to move a card on the board with a drag and drop ?
frwololo
DEVELOPER
 
Posts: 265
Joined: 21 Jun 2008, 04:33
Has thanked: 0 time
Been thanked: 3 times

Re: New special-super-ultra-awesome edition

Postby staggerwingjtstw » 21 Nov 2008, 13:38

I'm no python expert, but I'd say the vsync error is just a warning and not the actual error.
The actual error seems to be that the attribute "old_pos" doesn't exist... I'd guess that happens when trying to move a card on the board with a drag and drop ?
That's entirely possible. In trying to get incantus to do SOMETHING after it froze when I tried to use the ability, I probably tried to move a card with drag and drop.
I like being bad... it makes me happy...
User avatar
staggerwingjtstw
 
Posts: 181
Joined: 31 May 2008, 18:03
Has thanked: 3 times
Been thanked: 1 time

Re: New special-super-ultra-awesome edition

Postby MageKing17 » 21 Nov 2008, 15:54

frwololo wrote:
MageKing17 wrote:See, now, that's a completely different error. And makes no sense, either.
I'm no python expert, but I'd say the vsync error is just a warning and not the actual error.
That is, in fact, what I meant by "completely different"... he'd previously pasted only the warning. In fact, I'd be prepared to wager that I even know where that warning came from, and if I'm right, it's completely harmless.

As for the real error, "old_pos" is only used when the card is being zoomed. You can't drag cards around, although to be honest, I haven't checked to see if there isn't legacy code for it that might cause a crash like this. I'll run a couple tests.
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: New special-super-ultra-awesome edition

Postby juzamjedi » 22 Nov 2008, 02:22

Hello,

I have had the game abort a couple times in a row now here is there error traceback:

Code: Select all
Traceback (most recent call last):
  File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function'
  File "pyglet\window\win32\__init__.pyo", line 849, in _wnd_proc
  File "pyglet\window\win32\__init__.pyo", line 918, in _event_key
  File "pyglet\window\__init__.pyo", line 1217, in dispatch_event
  File "pyglet\event.pyo", line 349, in dispatch_event
  File "ui\Incantus.pyo", line 288, in on_key_press
  File "ConfigParser.pyo", line 511, in get
ConfigParser.NoSectionError: No section: 'network'
Traceback (most recent call last):
  File "main.py", line 7, in <module>
  File "ui\Incantus.pyo", line 778, in main
  File "ui\Incantus.pyo", line 656, in run
  File "game\GameKeeper.pyo", line 68, in start
  File "game\GameObjects.pyo", line 15, in send
  File "game\pydispatch\dispatcher.pyo", line 392, in send
  File "game\pydispatch\robustapply.pyo", line 47, in robustApply
  File "game\Zone.pyo", line 84, in commit
  File "game\Zone.pyo", line 36, in _remove_card
  File "game\GameObjects.pyo", line 15, in send
  File "game\pydispatch\dispatcher.pyo", line 392, in send
  File "game\pydispatch\robustapply.pyo", line 47, in robustApply
  File "ui\animator.pyo", line 285, in leave_zone
AttributeError: 'NoneType' object has no attribute 'pos'
Traceback (most recent call last):
  File "main.py", line 7, in <module>
  File "ui\Incantus.pyo", line 778, in main
  File "ui\Incantus.pyo", line 656, in run
  File "game\GameKeeper.pyo", line 68, in start
  File "game\GameObjects.pyo", line 15, in send
  File "game\pydispatch\dispatcher.pyo", line 392, in send
  File "game\pydispatch\robustapply.pyo", line 47, in robustApply
  File "game\Zone.pyo", line 84, in commit
  File "game\Zone.pyo", line 36, in _remove_card
  File "game\GameObjects.pyo", line 15, in send
  File "game\pydispatch\dispatcher.pyo", line 392, in send
  File "game\pydispatch\robustapply.pyo", line 47, in robustApply
  File "ui\animator.pyo", line 285, in leave_zone
AttributeError: 'NoneType' object has no attribute 'pos'
juzamjedi
Tester
 
Posts: 575
Joined: 13 Nov 2008, 08:35
Has thanked: 6 times
Been thanked: 8 times

Re: New special-super-ultra-awesome edition

Postby MageKing17 » 22 Nov 2008, 03:33

That's why you don't start a new game without restarting the program.
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: New special-super-ultra-awesome edition

Postby juzamjedi » 22 Nov 2008, 18:49

New error. This happened after my laptop "woke up" from sleep mode. The application fails to start at all and crashes with this error. I will restart the computer also to see if the problem goes away (likely it will):

Code: Select all
Traceback (most recent call last):
  File "main.py", line 7, in <module>
  File "ui\Incantus.pyo", line 771, in main
  File "ui\Incantus.pyo", line 130, in __init__
  File "ui\soundfx.pyo", line 9, in __init__
  File "pyglet\__init__.pyo", line 307, in __getattr__
  File "zipextimporter.pyo", line 82, in load_module
  File "pyglet\media\__init__.pyo", line 1340, in <module>
  File "pyglet\media\drivers\directsound\__init__.pyo", line 378, in driver_init
  File "\loewis\25\python\Modules\_ctypes\callproc.c", line 757, in GetResult
WindowsError: [Error -2005401480] Windows Error 0x88780078
juzamjedi
Tester
 
Posts: 575
Joined: 13 Nov 2008, 08:35
Has thanked: 6 times
Been thanked: 8 times

Re: New special-super-ultra-awesome edition

Postby juzamjedi » 22 Nov 2008, 19:00

Confirmed; when I restart my laptop Incantus starts correctly.
juzamjedi
Tester
 
Posts: 575
Joined: 13 Nov 2008, 08:35
Has thanked: 6 times
Been thanked: 8 times

Re: New special-super-ultra-awesome edition

Postby MageKing17 » 23 Nov 2008, 19:21

As you can see, the error is being generated in the middle of core Python code and, worse, the error is a WindowsError, which means there's very little we can do about it... WindowsErrors seem to pop up for no reason whatsoever, and then don't show up again if you resume from the replay, so there's not much debugging to be done about it.
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: New special-super-ultra-awesome edition

Postby juzamjedi » 24 Nov 2008, 02:13

Pacifism has a bug in Windows v0.52. Whenever I play Pacifism it becomes the active area for the entire screen. In other words if I right click anywhere on the game board it will always show Pacifism's card even if I'm right clicking on the table itself. This does not generate a traceback so unfortunately I have no code to paste here.

Do you use bug tracking tools to track these? I am willing to submit them formally if you use one; just trying to provide constructive feedback.
juzamjedi
Tester
 
Posts: 575
Joined: 13 Nov 2008, 08:35
Has thanked: 6 times
Been thanked: 8 times

PreviousNext

Return to Incantus

Who is online

Users browsing this forum: No registered users and 4 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 4 guests

Login Form