Comments (7)
Thanks. This should be fixed now. Please test the latest commit and report the results.
from ttmediabot.
@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.
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.
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.
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.
o, I think, you are right.
from ttmediabot.
Thanks. This should be fixed now. Please test the latest commit and report the results.
fix now, thanks alot. :)
from ttmediabot.
Related Issues (20)
- Can't play anything Debian 11
- Buffering audio on long youTube videos
- possibility to know the time remaining and total
- ttmediabot kurulum aşaması HOT 3
- Error running in Ubuntu 22.04. HOT 6
- libssl dependencies HOT 2
- we should get releaces versions for this bot
- After Cache File is Modified, the Bot Is Prevented from Running because of It Not Properly Recognized (So It Seems) HOT 3
- Extreme CPU usage caused by TeamTalk SDK update to 5.15 HOT 4
- teamtalk SDK license
- can type commands in oter channels HOT 4
- Bot connects but get a database error if I send commands. HOT 1
- a bug when the bot enter ina tt5Srv in ubuntu: HOT 2
- Ability to process the linked channel by default in the TeamTalk account. HOT 1
- I can't change bot languaje HOT 5
- Problem running the bot as a service HOT 3
- Feature request: use toml instead of json as a configuration file format HOT 1
- Add ability to process youtube links with time signature
- About TeamTalkSDK HOT 6
- Vaious ishues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttmediabot.