Code Monkey home page Code Monkey logo

Comments (7)

a11cf0 avatar a11cf0 commented on August 11, 2024 1

Thanks. This should be fixed now. Please test the latest commit and report the results.

from ttmediabot.

DraganRatkovich avatar DraganRatkovich commented on August 11, 2024

@a11cf0 @beqabeqa473 @gumerov-amir Please, review this issue, as it maybe a reason when sometimes bot falls after a few day of running.

from ttmediabot.

yukie-nobuharu avatar yukie-nobuharu commented on August 11, 2024

Hi devs. I think the Issue is, the application uses a lot of system memory in the long run. so it is killed by debian memory management. but, we still have a problem with logs. We still can't get logs because of the error.

from ttmediabot.

yukie-nobuharu avatar yukie-nobuharu commented on August 11, 2024

Ok, we dont know how it happeneds but, the bot is not responding to commands.
here is the errors.
Exception in thread TeamTalkThread:
ValueError: 1024 is not a valid UserStatusMode

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/opt/TTMediaBot/bot/TeamTalk/thread.py", line 43, in run
self.ttclient.message_queue.put(self.ttclient.get_message(msg.textmessage))
File "/opt/TTMediaBot/bot/TeamTalk/init.py", line 296, in get_message
return Message(re.sub(re_line_endings, '', _str(msg.szMessage)), self.get_user(msg.nFromUserID), self.get_channel(msg.nChannelID), MessageType(msg.nMsgType))
File "/opt/TTMediaBot/bot/TeamTalk/init.py", line 313, in get_user
gender = UserStatusMode(user.nStatusMode)
File "/usr/lib/python3.9/enum.py", line 360, in call
return cls.new(cls, value)
File "/usr/lib/python3.9/enum.py", line 684, in new
raise exc
File "/usr/lib/python3.9/enum.py", line 668, in new
result = cls.missing(value)
File "/usr/lib/python3.9/enum.py", line 808, in missing
possible_member = cls.create_pseudo_member(value)
File "/usr/lib/python3.9/enum.py", line 823, in create_pseudo_member
raise ValueError("%r is not a valid %s" % (value, cls.qualname))
ValueError: 1024 is not a valid UserStatusMode

from ttmediabot.

rexya2017 avatar rexya2017 commented on August 11, 2024

I think the error was caused by someone changing the status to question mode, or status while streaming a mediafile, and send commands to bots.
Here's the error I get from the terminal screen:
Exception in thread TeamTalkThread:
ValueError: 6144 is not a valid UserStatusMode

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\rexya\AppData\Local\Programs\Python\Python39\lib\threading.py", line 973, in bootstrap_inner
self.run()
File "D:\AudioPlayer\thetest\bot\TeamTalk\thread.py", line 43, in run
self.ttclient.message_queue.put(self.ttclient.get_message(msg.textmessage))
File "D:\AudioPlayer\thetest\bot\TeamTalk_init
.py", line 296, in get_message
return Message(re.sub(re_line_endings, '', str(msg.szMessage)), self.get_user(msg.nFromUserID), self.get_channel(msg.nChannelID), MessageType(msg.nMsgType))
File "D:\AudioPlayer\thetest\bot\TeamTalk_init
.py", line 313, in get_user
gender = UserStatusMode(user.nStatusMode)
File "C:\Users\rexya\AppData\Local\Programs\Python\Python39\lib\enum.py", line 384, in call
return cls.new(cls, value)
File "C:\Users\rexya\AppData\Local\Programs\Python\Python39\lib\enum.py", line 709, in new
raise exc
File "C:\Users\rexya\AppData\Local\Programs\Python\Python39\lib\enum.py", line 692, in new
result = cls.missing(value)
File "C:\Users\rexya\AppData\Local\Programs\Python\Python39\lib\enum.py", line 837, in missing
possible_member = cls.create_pseudo_member(value)
File "C:\Users\rexya\AppData\Local\Programs\Python\Python39\lib\enum.py", line 852, in create_pseudo_member
raise ValueError("%r is not a valid %s" % (value, cls.qualname))
ValueError: 6144 is not a valid UserStatusMode

I get this error when I Stream a mediafile, and send the s command to bot.

from ttmediabot.

yukie-nobuharu avatar yukie-nobuharu commented on August 11, 2024

o, I think, you are right.

from ttmediabot.

rexya2017 avatar rexya2017 commented on August 11, 2024

Thanks. This should be fixed now. Please test the latest commit and report the results.

fix now, thanks alot. :)

from ttmediabot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.