TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Crash when reading many commands at once.

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
vencabot



Joined: 11 Sep 2009
Posts: 5

PostPosted: Fri Sep 11, 2009 1:02 am    Post subject: Crash when reading many commands at once. Reply with quote

I run a clan in my favorite MUD, and part of my duty is to keep help files updated and send out letters. As such, I'm frequently copy-pasting large amounts of text into TinTin++ or using the #READ command to accomplish the same task.

Lately, though, I've been crashing when doing this and getting this message:

ERROR: write in write_line_mud (11: Resource temporarily unavailable)

It appears that the crash is a result of trying to send too many commands too quickly, but it seems like, rather than resulting in a terminal error, the excess commands could be stored into a buffer and sent when the resource becomes available. Sure, I'm sending a lot of commands, but should the program crash?

Thanks in advance for your help.

-David Hernandez

Also, with this being my first post here (I think), I wanna say that I've been using TinTin++ as my primary MUD client for years, and it's great. Elegant in the simplicity of its interface and extremely extensible. Perfect. Thanks to the devs for their hard work in creating and continuing to improve their very excellent console MUD client.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Fri Sep 11, 2009 9:25 am    Post subject: Reply with quote

Hiyas,

One option is using #textin <filename> <delay>. On classic Diku muds for example you'd use: #textin helpfile.txt 0.25 which will make textin send 4 lines per second.

The above solution isn't ideal on more robust servers, so I went ahead and tried to fix the issue so you can try running the beta a try. As far as I can tell the problem is fixed.

http://tintin.sf.net/download/tintin-beta.tar.gz
Back to top
View user's profile Send private message Send e-mail
vencabot



Joined: 11 Sep 2009
Posts: 5

PostPosted: Fri Sep 11, 2009 2:24 pm    Post subject: Reply with quote

Thanks for the tip, and thanks for addressing the problem so quickly. I downloaded the beta and it does indeed work the trick! I'm off on vacation as of today, although I don't imagine that this problem needs any further resolution.

Thanks again for working on this excellent client, and have a nice night.

-David Hernandez
Back to top
View user's profile Send private message
vencabot



Joined: 11 Sep 2009
Posts: 5

PostPosted: Fri Oct 02, 2009 4:32 am    Post subject: Reply with quote

I'm bumping this thread because, after having success with the beta version that I downloaded as a result of this bug fix, I seem to once again be having trouble with the same bug. Now, I'm copy-pasting a list of commands about a thousand lines long, and, again, TT++ consistently segfaults before being able to read them all.

In the meantime, I'll try using the #textin command as you suggested, but the problem isn't with the server refusing to accept so many commands so quickly; the segfault does seem to be a case of the client not being able to handle it, which is a shame.

Thanks again for your help.

-David

EDIT: Although I was not previously familiar with #textin, I used to try using #read for this purpose, and it would read the entire file without segfaulting, although empty lines would be lost, making it unsuitable for this task. I'm pleased to see that #textin regards these blank lines, and it also doesn't cause TT++ to crash. Still, when copy-pasting a list of commands this long, my beta version of TT++ will crash every time.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Fri Oct 02, 2009 7:57 am    Post subject: Reply with quote

I think I may have fixed the segfault in the beta, but I'm not 100% certain.

http://tintin.sourceforge.net/download/tintin-beta.tar.gz
Back to top
View user's profile Send private message Send e-mail
vencabot



Joined: 11 Sep 2009
Posts: 5

PostPosted: Sun Oct 04, 2009 6:37 pm    Post subject: Reply with quote

Scandum, thank you, and I'm sorry that I didn't respond sooner -- I guess that I forgot to check the box for notification when a reply is posted on this thread. I'll give the new beta a try and get back to you regarding whether or not it still segfaults for me.

-David
Back to top
View user's profile Send private message
vencabot



Joined: 11 Sep 2009
Posts: 5

PostPosted: Thu Oct 22, 2009 5:56 pm    Post subject: Reply with quote

Apologies again for not responding, but I've been too busy to get into my MUDs, and I felt guilty each time that I snuck on for five minutes and neglected to re-install TinTin++ and see if copy-pasting segfaulted it. I finally got around to it today, and I pasted in 1027 lines of commands directly into it and it didn't segfault.

Last time the problem was addressed, it seemed like everything was all clear, but an even LARGER file caused the problem to consistently arise again. Back then, the problem was pasting 500 lines, and then it became 1000 lines. I really can't imagine why anyone would need to execute THIS many commands except that, as I stated before, I maintain some very large help files and I have each line formatted as a separate command for presentational reasons.

Anyway, if the problem is fixed, I imagine that no amount of commands should cause the program to quit unexpectedly, although experimenting beyond 1027 lines would seem to be overkill, so I'll be satisfied that this is resolved for now.

Thanks again for your commitment to making TinTin++ such an excellent MUD client.

-David

PS: I'll probably continue using #TEXTIN, now, as you suggested. It's much neater, haha.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group