This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#151 2012-09-29 23:00:51

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

I just want to know when the server will...you know...ACTUALLY WORK!!!!

Not to sound whiny or anything  tongue


Fork Clamor on GitHub!

Offline

 

#152 2012-09-29 23:05:54

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

ohaiderstudios wrote:

I just want to know when the server will...you know...ACTUALLY WORK!!!!

Not to sound whiny or anything  tongue

Don't we all?


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#153 2012-09-29 23:09:18

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Molybdenum wrote:

ohaiderstudios wrote:

I just want to know when the server will...you know...ACTUALLY WORK!!!!

Not to sound whiny or anything  tongue

Don't we all?

Yes.


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#154 2012-09-29 23:11:08

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

ohaiderstudios wrote:

I just want to know when the server will...you know...ACTUALLY WORK!!!!

Not to sound whiny or anything  tongue

I know the problem! Too much school work! >.<

Well, you can look at the code and tell me what´s wrong.  smile

Offline

 

#155 2012-09-29 23:12:37

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

First thing I notice:

How's virtual space doing?  big_smile


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#156 2012-09-29 23:23:45

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

I got Chat.PY 3.0 to work.
tip: open multiple instances of the program


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#157 2012-09-29 23:40:06

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

zippynk wrote:

First thing I notice:

How's virtual space doing?  big_smile

I need to reformat it in my head.  tongue

Offline

 

#158 2012-09-29 23:44:11

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

The first thought that popped into my head when the problem happened this morning was, "Magnie changed the server and made a spelling error!" Which happened once before. However it could also have been any sort of exception thrown when a certain function was called.


Fork Clamor on GitHub!

Offline

 

#159 2012-09-30 00:08:56

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

ohaiderstudios wrote:

The first thought that popped into my head when the problem happened this morning was, "Magnie changed the server and made a spelling error!" Which happened once before. However it could also have been any sort of exception thrown when a certain function was called.

I was about to write an idea of what could be the problem. Then I realized, it´s probably an infinite loop in chat3.py where it´s removing dead clients. That would explain why no broadcasts reach the server, but you can still receive other broadcasts and updates.

Look at Server.server_message(), Server.channel_message(), Server.user_message(), and Server.lost_user(). That´s what I´ve been changing recently. I don´t know where the infinite loop is though.

Offline

 

#160 2012-09-30 08:40:46

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Magnie wrote:

ohaiderstudios wrote:

The first thought that popped into my head when the problem happened this morning was, "Magnie changed the server and made a spelling error!" Which happened once before. However it could also have been any sort of exception thrown when a certain function was called.

I was about to write an idea of what could be the problem. Then I realized, it´s probably an infinite loop in chat3.py where it´s removing dead clients. That would explain why no broadcasts reach the server, but you can still receive other broadcasts and updates.

Look at Server.server_message(), Server.channel_message(), Server.user_message(), and Server.lost_user(). That´s what I´ve been changing recently. I don´t know where the infinite loop is though.

Also, I think there might be an infinite loop in the command part, although I don't lmpw where it is.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#161 2012-09-30 10:33:02

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

I think I might have found the bug. It uses the same variable ("i") for removing users and sending messages to clients.

(chat3.py, starting near line 100)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#162 2012-09-30 16:55:59

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

here's what I think:
there are 2 bugs.

the first is obvious. using any /commands breaks the server so you can't broadcast anything.

the second: because you exit scratch without actually "leaving" the chat room, when you come back it glitches. You have to open another instance of Chat.PY and use a different name.


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#163 2012-09-30 18:49:40

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

zippynk wrote:

I think I might have found the bug. It uses the same variable ("i") for removing users and sending messages to clients.

(chat3.py, starting near line 100)

I hate when that happens  tongue


Fork Clamor on GitHub!

Offline

 

#164 2012-10-01 10:32:35

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

ohaiderstudios wrote:

zippynk wrote:

I think I might have found the bug. It uses the same variable ("i") for removing users and sending messages to clients.

(chat3.py, starting near line 100)

I hate when that happens  tongue

Since i is just a counter, I´m recycling it. I´ve changed the second part to 'n' though. And I think I just figured out what´s wrong. I´ve been adding 'i' to the to_delete when I should have been adding user_id... I don´t even know why I am using 'i' in that part.. Oh well. Hopefully it´s fixed now.

Offline

 

#165 2012-10-01 15:01:14

playzooki
Scratcher
Registered: 2012-02-07
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Magnie wrote:

ohaiderstudios wrote:

zippynk wrote:

I think I might have found the bug. It uses the same variable ("i") for removing users and sending messages to clients.

(chat3.py, starting near line 100)

I hate when that happens  tongue

Since i is just a counter, I´m recycling it. I´ve changed the second part to 'n' though. And I think I just figured out what´s wrong. I´ve been adding 'i' to the to_delete when I should have been adding user_id... I don´t even know why I am using 'i' in that part.. Oh well. Hopefully it´s fixed now.

ill test... EDIT: Yup

Last edited by playzooki (2012-10-01 15:02:33)


I iz a sig. So there. CLICK ME ITS SO IMPORTANT!!!!

Offline

 

#166 2012-10-01 17:38:23

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Ohaider, zippynk: It seems the bug is still occurring. I found a work-around though. Join another room, login, type /list-all then find /force-kill any of the users that may be dead ones. The bug also occurs in the automatic removal of a user.

Offline

 

#167 2012-10-02 14:41:17

playzooki
Scratcher
Registered: 2012-02-07
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Magnie wrote:

Ohaider, zippynk: It seems the bug is still occurring. I found a work-around though. Join another room, login, type /list-all then find /force-kill any of the users that may be dead ones. The bug also occurs in the automatic removal of a user.

Cant join a room  sad


I iz a sig. So there. CLICK ME ITS SO IMPORTANT!!!!

Offline

 

#168 2012-10-03 15:28:09

playzooki
Scratcher
Registered: 2012-02-07
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Still wont work. Nothing wrong with the code that i can find either.  sad

Last edited by playzooki (2012-10-03 15:30:39)


I iz a sig. So there. CLICK ME ITS SO IMPORTANT!!!!

Offline

 

#169 2012-10-06 01:29:57

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Alright, you know what? I'm going to do a very thorough analysis of the chat3.py code and get back to you guys at an indefinite time in the future.

EDIT: Is the SVN repository code the absolute latest? Because I suspect that it was some mistake Magnie made on his last update that is causing these errors.

FIRST REPORT:

Code:

message = 'Channel names have a '
message += 'maximum length of 10 characters.'

lol?

Last edited by ohaiderstudios (2012-10-06 01:56:08)


Fork Clamor on GitHub!

Offline

 

#170 2012-10-06 14:07:16

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

ohaiderstudios wrote:

Alright, you know what? I'm going to do a very thorough analysis of the chat3.py code and get back to you guys at an indefinite time in the future.

EDIT: Is the SVN repository code the absolute latest? Because I suspect that it was some mistake Magnie made on his last update that is causing these errors.

FIRST REPORT:

Code:

message = 'Channel names have a '
message += 'maximum length of 10 characters.'

lol?

I did that to keep the line under 70 characters.  tongue

Offline

 

#171 2012-10-06 17:57:56

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Magnie wrote:

ohaiderstudios wrote:

Alright, you know what? I'm going to do a very thorough analysis of the chat3.py code and get back to you guys at an indefinite time in the future.

EDIT: Is the SVN repository code the absolute latest? Because I suspect that it was some mistake Magnie made on his last update that is causing these errors.

FIRST REPORT:

Code:

message = 'Channel names have a '
message += 'maximum length of 10 characters.'

lol?

I did that to keep the line under 70 characters.  tongue

Ok  tongue

Anyway, can't really find anything wrong


Fork Clamor on GitHub!

Offline

 

#172 2012-10-06 18:14:53

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

ohaiderstudios wrote:

Magnie wrote:

ohaiderstudios wrote:

Alright, you know what? I'm going to do a very thorough analysis of the chat3.py code and get back to you guys at an indefinite time in the future.

EDIT: Is the SVN repository code the absolute latest? Because I suspect that it was some mistake Magnie made on his last update that is causing these errors.

FIRST REPORT:

Code:

message = 'Channel names have a '
message += 'maximum length of 10 characters.'

lol?

I did that to keep the line under 70 characters.  tongue

Ok  tongue

Anyway, can't really find anything wrong

Well, it has something to do with infinite loops and possibly something to do with an Exception somewhere in the code. I believe it also has something to do with removing clients that have disconnected but haven't been removed and when it removes them, it seems to just hang there.

Offline

 

#173 2012-10-06 20:05:24

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

Magnie wrote:

ohaiderstudios wrote:

Magnie wrote:


I did that to keep the line under 70 characters.  tongue

Ok  tongue

Anyway, can't really find anything wrong

Well, it has something to do with infinite loops and possibly something to do with an Exception somewhere in the code. I believe it also has something to do with removing clients that have disconnected but haven't been removed and when it removes them, it seems to just hang there.

I agree. When a user disconnects, it breaks all other users. I focused my search on those areas, however I can't find anything that could create an infinite loop, even though that's what it most likely is, because a user can receive but not send.
Some weird exception being called is a possibility. Have you read the server logs?


Fork Clamor on GitHub!

Offline

 

#174 2012-10-06 21:35:44

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

I suggest reverting to an old version of the code until the bug is found.
(Ohaider agrees.)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#175 2012-10-06 21:37:11

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Little Server That Can (Chat.PY, Bit Art, etc.)

zippynk wrote:

(Ohaider agrees.)

Yes he does. He just didn't mention it before because he didn't want to inconvenience Magnie.


Fork Clamor on GitHub!

Offline

 

Board footer