View topic - UnitSync :: GetModOptionCount Crash



All times are UTC + 1 hour


Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 10 Jan 2012, 21:44 
Lobby Developer
User avatar

Joined: 08 Feb 2010, 22:21
Location: Saint-Petersburg, Russia
Execute GetModOptionCount, crash in game The Cursed and Evolution RTS

try to execute in separate project, also crash


Last edited by danil_kalina on 13 Jan 2012, 16:21, edited 1 time in total.

Top
 Offline Profile  
 
PostPosted: 10 Jan 2012, 22:10 
Lobby Developer

Joined: 06 Dec 2007, 11:12
Same problem I have with SPADS on Windows I guess...


Top
 Offline Profile  
 
PostPosted: 10 Jan 2012, 22:56 
Lobby Developer
User avatar

Joined: 08 Feb 2010, 22:21
Location: Saint-Petersburg, Russia
I guess the same issue


Top
 Offline Profile  
 
PostPosted: 13 Jan 2012, 15:06 
Spring Developer

Joined: 31 May 2009, 23:08
mantised: http://springrts.com/mantis/view.php?id=2916


Top
 Offline Profile  
 
PostPosted: 13 Jan 2012, 16:20 
Lobby Developer
User avatar

Joined: 08 Feb 2010, 22:21
Location: Saint-Petersburg, Russia
unitsync.log is empty
how to turn it on ?


Top
 Offline Profile  
 
PostPosted: 13 Jan 2012, 17:59 
Spring Developer

Joined: 31 May 2009, 23:08
setting

Quote:
LogSections = ArchiveScanner, VFS


in springsettings.cfg should enable some logging.

can you be more specific what functions you are calling?

this example doesn't crash: http://pastebin.com/R7izPY59

(written in python using the unitsync / ctypes wrapper from upq)


Top
 Offline Profile  
 
PostPosted: 14 Jan 2012, 11:20 
Lobby Developer
User avatar

Joined: 08 Feb 2010, 22:21
Location: Saint-Petersburg, Russia
we call GetModOptionCount()

games that are 100% crash: The Cursed 1.16, Evoultion RTS 1.9
OS: Windows

we'll try to turn the logging


Top
 Offline Profile  
 
PostPosted: 14 Jan 2012, 12:43 
Lobby Developer

Joined: 02 Dec 2009, 12:01
Location: Russia, Krasnodar
UnitSync crashed exactly after getModOptionCount in The Cursed 1.16.
By the way, can I change LOG_LEVEL_INFO?


Attachments:
unitsync.log [1.72 KiB]
Downloaded 114 times
Top
 Offline Profile  
 
PostPosted: 14 Jan 2012, 16:40 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
abma was asking for what functions you are calling.
if you would really be calling only this one function, it would be no wonder that you crash, and i am sure you are not doing that.

i guess we can be somewhat sure that it is a problem that happens on windows only. that could mean it is related to a file-system call, or it has to do with access to non-explicitly initialized memory, or... maybe something else. :D


Top
 Offline Profile  
 
PostPosted: 14 Jan 2012, 18:39 
Lobby Developer

Joined: 02 Dec 2009, 12:01
Location: Russia, Krasnodar
That's UnitSync Functions calls sequence that cause crash. Help me!!!


Attachments:
NotaLobbyUnitSync.log [1.61 KiB]
Downloaded 38 times
Top
 Offline Profile  
 
PostPosted: 15 Jan 2012, 02:53 
Spring Developer

Joined: 31 May 2009, 23:08
sorry, i don't get a crash here, when i try to call these functions on windows...


can you please run the program with an attached debugger and get a stacktrace?


Top
 Offline Profile  
 
PostPosted: 15 Jan 2012, 21:52 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
Abma, spring must be in isolation mode in order to get the crash


Top
 Offline Profile  
 
PostPosted: 16 Jan 2012, 00:01 
Spring Developer

Joined: 31 May 2009, 23:08
it also doesn't crash for me in isolation-mode... :-/

please do a "bt full" with "gdb"...


Top
 Offline Profile  
 
PostPosted: 16 Jan 2012, 17:28 
Lobby Developer

Joined: 02 Dec 2009, 12:01
Location: Russia, Krasnodar
Thx for responce :)
It's really weird crash. I can't catch exception by gdb, stack is not available. May be it's special to windows7 64 or mingw 4.4.0?


Top
 Offline Profile  
 
PostPosted: 16 Jan 2012, 17:36 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
you need debug symbols for untisync. they can be found here for current latest release:
http://springrts.com/dl/buildbot/defaul ... ync_dbg.7z
extract this archive, and make sure that gdb uses the file. i think you do it with the -s symbol-file cmd-line switch (or some gdb console command).


Top
 Offline Profile  
 
PostPosted: 16 Jan 2012, 20:22 
Lobby Developer

Joined: 02 Dec 2009, 12:01
Location: Russia, Krasnodar
It's too hard to me :) I'm not strong in gdb debuging. But I got trace at last.
It looks like exception raised by "throw content_error()" in Option.cpp raise another uncaught exception. Or something else... )))


Attachments:
dump.txt [12.07 KiB]
Downloaded 25 times
Top
 Offline Profile  
 
PostPosted: 16 Jan 2012, 20:44 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
nice! :-)
thanks, and well done! :-)

it looks like this archive contains bad options:
28f1e3632fb713d232c8c75f2373f2bf.sdp
this is a an archive managed by rapid, and as much as i know, you should be able to delete the file by hand, or .. maybe try to do a rapid cleanup first, and see if that removes it already.

edit:
to det/Licho/anyone else who knows... how can we find out the rapid tag that belongs to this archive, so we can test ourselfs?
thanks to jk, i found out that it is thecursed:version:1.16, will now extract mod options...


Last edited by hoijui on 16 Jan 2012, 20:53, edited 1 time in total.

Top
 Offline Profile  
 
PostPosted: 16 Jan 2012, 20:52 
Lobby Developer

Joined: 02 Dec 2009, 12:01
Location: Russia, Krasnodar
So why it cause crash? In code content_error created and crash is caused exactly by throw. It's strange, because I think exception must be caught and try to log error.
Of cause I can delete this file but where I can get good mod file. And what to do with broken archive?

P.S. I downloaded that archive just now using rapid_gui (The Cursed 1.16)


Top
 Offline Profile  
 
PostPosted: 16 Jan 2012, 21:02 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
(i edited my last post)

modoptions.lua from thecursed:version:1.16
Quote:
---- KING OF THE HILL OPTIONS ----
{
key = 'koth',
name = 'King of the Hill Settings',
desc = 'Settings for King of the Hill mode.',
type = 'section',
},
{
key="KOTH",
name="King Of The Hill",
desc="The one with ...",
type="number",
section= 'koth',
min = 0,
max = 10080,
step = 1,
def = 0,
},
indeed we should catch that error and log it in unitsync (it is a bug).
also the cursed should be fixed of course.

to uninstall:
rapid unpin thecursed:version:1.16


Top
 Offline Profile  
 
PostPosted: 16 Jan 2012, 21:23 
Lobby Developer

Joined: 02 Dec 2009, 12:01
Location: Russia, Krasnodar
You are pretty fast :-)


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.