Helper tool to automatically upload infologs

Helper tool to automatically upload infologs

Requests for features in the spring code.

Moderator: Moderators

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14599
Joined: 17 Nov 2005, 02:43

Helper tool to automatically upload infologs

Post by Forboding Angel » 09 Jun 2012, 12:53

To pastebin.

I haven't fully formed this idea and maybe someone can help me figure out a good one size fits all solution.

It would be nice to have a tool that we can invoke somehow that would automatically post an infolog, maybe even get an automatic stacktrace?

Problem is, I can't figure out the best method that would help everyone out.

Maybe you guys have some ideas on how an automated system could work?

The purpose is for newbies to provide infolog easily and possibly at the touch of a button.
0 x

gajop
Moderator
Posts: 3023
Joined: 05 Aug 2009, 20:42

Re: Helper tool to automatically upload infologs

Post by gajop » 09 Jun 2012, 13:35

Well, before spring starts, just have another "crash detector" program start, which is supposed to detect when spring crashes or has any error line and then post the said error in a fashion similar to: Image

The second option would be to use some sort of an automated data collector, which would include the crash detector and also send infologs regardless if an error has been detected or not.
Image

However, if you want people to be able to write anything when trying to submit bugs while no errors have been detected, it may be best to have a bug reporting tool integrated into whatever lobby there is. In this case though, it may be best to save multiple infologs, i've seen people often overwrite old ones as there's no backup.
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: Helper tool to automatically upload infologs

Post by danil_kalina » 09 Jun 2012, 13:42

we need to add HTML POST for main website.
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: Helper tool to automatically upload infologs

Post by koshi » 09 Jun 2012, 21:42

I've already had this in SL with a site backend by zydox/me. There was no continued interest after the initial "do want" --> it died.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14599
Joined: 17 Nov 2005, 02:43

Re: Helper tool to automatically upload infologs

Post by Forboding Angel » 09 Jun 2012, 22:24

That's because using that tool on windows causes SL and the error reporter to lock up and crash. You can avoid the crash by telling the window to go away.
0 x

User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Helper tool to automatically upload infologs

Post by jamerlan » 13 Jun 2012, 16:12

Looks like spring already has CrashHandler. Currently it writes stacktraces to infolog.txt:
#4 0x085704ed in SpringApp::Shutdown () at /usr/src/debug/spring_88.0/rts/System/SpringApp.cpp:1032
No locals.
#5 0x0856b637 in ErrorMessageBox (msg="Spring has crashed:\nSegmentation fault (SIGSEGV).\n\nA stacktrace has been written to:\n /home/revenant/.spring/infolog.txt", caption="Spring crashed", flags=8) at /usr/src/debug/spring_88.0/rts/System/Platform/errorhandler.cpp:92
forcedExitThread = 0xa3c008e8
#6 0x085cbe43 in CrashHandler::HandleSignal (signal=-1079900416) at /usr/src/debug/spring_88.0/rts/System/Platform/Linux/CrashHandler.cpp:553
but under linux you need to use debugger to get correct stacktrace. So sending raw infolog.txt does not helps much.

Also, linux has interesting tool. Automatic Bug Report Tool. I am making spring crash reports using it.

Screenshots:

Image
Image
Image
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: Helper tool to automatically upload infologs

Post by danil_kalina » 13 Jun 2012, 16:35

Ordinary people will just close it and you will never get a report.
"Make one label "Error" and one button "Send"."
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: Helper tool to automatically upload infologs

Post by Jools » 13 Jun 2012, 18:42

I would just block such an application with the firewall. You would have to explain why the lobby needs the rights to act as a server.
0 x

User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7017
Joined: 16 Nov 2004, 13:08

Re: Helper tool to automatically upload infologs

Post by zwzsg » 13 Jun 2012, 18:49

I don't really like the idea of automatically uploading infolog.

Also, who would analyse all those logs?
0 x

User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Helper tool to automatically upload infologs

Post by SinbadEV » 13 Jun 2012, 19:22

I'm thinking the best option would be to have an option somewhere of backing up your crash logs in a sub-folder... then you could populate a dialog asking what went wrong and append these comment to the crash-log helping people submit the right log file for the problem they are having... automating the upload is going to annoy more people than it helps but making it a more straightforward process would probably help.
0 x

Google_Frog
Moderator
Posts: 2440
Joined: 12 Oct 2007, 09:24

Re: Helper tool to automatically upload infologs

Post by Google_Frog » 13 Jun 2012, 19:59

If someone complained that their UI broke I would analyse the log from that game. Getting them to manually upload it is near impossible.
0 x

User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Helper tool to automatically upload infologs

Post by SinbadEV » 13 Jun 2012, 20:46

Google_Frog wrote:If someone complained that their UI broke I would analyse the log from that game. Getting them to manually upload it is near impossible.
What I'm thinking would be on crash (assuming it it caught) or if you start spring.exe and a special file (like "cleanrun.tmp" or something) is present in the root directory (so you can catch the last crash) you are prompted for a "Spring seems to have crashed, would you like to describe the problem?" dialog... this will move the last replay and the infolog and the notes of the user to a folder called "crash report_date_time" or something... then, if someone comes on to the forums complaining of crashes we can tell them to go to that folder, upload the replay and infolog associated with the crash from the correct "crash report" folder.
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: Helper tool to automatically upload infologs

Post by Jools » 14 Jun 2012, 00:03

A subfolder is a good idea. It's always a pain the the a* to find infolog.txt
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6109
Joined: 29 Apr 2005, 01:14

Re: Helper tool to automatically upload infologs

Post by FLOZi » 14 Jun 2012, 00:04

First step: Revert buffering of infolog.
0 x

Google_Frog
Moderator
Posts: 2440
Joined: 12 Oct 2007, 09:24

Re: Helper tool to automatically upload infologs

Post by Google_Frog » 14 Jun 2012, 06:07

FLOZi wrote:First step: Revert buffering of infolog.
+1000000

It's like the engine devs have no idea how we debug things. Developing games for spring became a lot harder after the infolog became buffered.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14599
Joined: 17 Nov 2005, 02:43

Re: Helper tool to automatically upload infologs

Post by Forboding Angel » 14 Jun 2012, 06:44

Google_Frog wrote:
FLOZi wrote:First step: Revert buffering of infolog.
+1000000

It's like the engine devs have no idea how we debug things. Developing games for spring became a lot harder after the infolog became buffered.
This. +9001

Moreover:
zwzsg wrote:I don't really like the idea of automatically uploading infolog.

Also, who would analyse all those logs?
Automagic when asked. IE, "please send your error report". Not after every game/crash. That would be useless.

Most people don't understand the concept of pastebin. It's pretty sad, but so many nubs don't even understand pastebin. Moreover, computer nubs think that google search == address bar.
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: Helper tool to automatically upload infologs

Post by Jools » 14 Jun 2012, 19:29

My dad opens a webpage from the dropdown list on the right side of the url.
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6109
Joined: 29 Apr 2005, 01:14

Re: Helper tool to automatically upload infologs

Post by FLOZi » 14 Jun 2012, 19:52

Google_Frog wrote:
FLOZi wrote:First step: Revert buffering of infolog.
+1000000

It's like the engine devs have no idea how we debug things. Developing games for spring became a lot harder after the infolog became buffered.
Worse yet - we were never offered any justification for it or consulted about it.
0 x

User avatar
MidKnight
Posts: 2650
Joined: 10 Sep 2008, 03:11

Re: Helper tool to automatically upload infologs

Post by MidKnight » 14 Jun 2012, 20:14

There was a minutes post or two about it.
I think http://springrts.com/phpbb/viewtopic.php?f=73&t=26893 may have been it.
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Helper tool to automatically upload infologs

Post by knorke » 14 Jun 2012, 20:38

the mantis ticket for the buffer thing is still on "feedback":
http://springrts.com/mantis/view.php?id=2796

imo automatic infolog upload has little use unless the logs are all browseable. (by error, by mod,..)
So that modders can for example look at all logs from their game where a gadget crashed or something.
To me it seems 90% of crashes are known problems such as "old buggy map", "ai crash", or "bad setting" and you would have to filter that.
But that would need some sort of website that parses the infolog (for modname, sort of error etc) and I do not see that happening?
When a player is unable/unwilling to register on forum to post his crash, not much usefull will come out of it anyway.
0 x

Post Reply

Return to “Feature Requests”