Quantcast [notabug] Certain d() colored formatting causing game to crash - ESOUI
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: 51
[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,085
Moved it to the correct forum.
__________________
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
 
06/23/17, 09:58 AM   #3
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 515
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: 51
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