liyunfan1223 / mod-playerbots

AzerothCore Playerbots Module
https://discord.gg/NQm5QShwf9
GNU Affero General Public License v3.0
290 stars 158 forks source link

German texts in 'ai_playerbot_texts' cause crashes #518

Open MichaTausKamR opened 2 months ago

MichaTausKamR commented 2 months ago

Describe the bug When chatting with german texts, the server crashes.

Commit hash The hash of the current commit.

To Reproduce Steps to reproduce the behavior:

  1. Go to your db-manager
  2. Click on the mentioned table
  3. Add texts with german umlauts, other special characters
  4. See error

Expected behavior Don't crash

gdb.txt

atidot3 commented 2 months ago

I'm french and i'd like to do thousand of joke based on that but unfortunatly its unrelated.

9 0x00007ffff7048265 in std::__throw_bad_alloc() () from /lib/x86_64-linux-gn\

u/libstdc++.so.6

10 0x0000555556ff35fc in handleOOM(unsigned long, bool) ()

You've reach max RAM usage

MichaTausKamR commented 2 months ago

Alright, so when I deleted the german texts, the problem occured far more less than that. The machine doesn't use even half of the ram.

hermensbas commented 3 weeks ago

Alright, so when I deleted the german texts, the problem occured far more less than that. The machine doesn't use even half of the ram.

thats interesting is related to RAM usage by adding or changes texts...

hermensbas commented 3 weeks ago

The language support sure, but the mem usage increase needs to be verified and looked into. I guess its cached.

Anyway adding and changing db records manually that on itself makes it low in prior i would say. The memory growth if confirmed could point to more serious issues though