Thread Tools Display Modes
06/23/17, 07:56 AM   #1
silvereyes
 
silvereyes's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2015
Posts: 66
[notabug] Certain d() colored formatting causing game to crash

This isn't so much a feature request as a fix request for a strange bug that creeps up sometimes during addon development.

The d() system chat channel output function sometimes freezes the game - as if there's an infinite loop - if given specific strings with color formatting as input. The most simple form of the pattern that I could find is as follows:

Lua Code:
  1. d("|cFFFFFF|r<any character not a color code>|r")

The following all crash the game:
Lua Code:
  1. d("|cFFFFFF|r)|r")
  2. d("|cFFFFFF|rx|r")
  3. d("|cFFFFFF|r|r|r")

The following all work fine:
Lua Code:
  1. d("|cFFFFFF|r|r")
  2. d("|r)|r")
  3. d("|cFFFFFF|r|cFFFFFF|r")
 
06/23/17, 08:22 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
Moved it to the correct forum.
 
06/23/17, 09:58 AM   #3
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
Hmm, I tried all of these using /script and didn't see an issue. Is there more to the repro?
 
06/23/17, 10:12 AM   #4
silvereyes
 
silvereyes's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2015
Posts: 66
Originally Posted by ZOS_ChipHilseberg View Post
Hmm, I tried all of these using /script and didn't see an issue. Is there more to the repro?
Okay, now I'm embarrassed. I disabled pChat, and the problem went away. Sorry for wasting your time. I'll report the bug to the pChat comments.
 

ESOUI » Developer Discussions » Bug Reports » [notabug] Certain d() colored formatting causing game to crash

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off