View Issue Details

IDProjectCategoryView StatusLast Update
0004475Spring engineLuapublic2014-07-22 16:32
Reportersilentwings Assigned Tocleanrock  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version97.0.1+git 
Target Version98.0 
Summary0004475: AddConsoleLine is only called a finite number of times.
DescriptionSee summary - tested with BA 8.00, with Spring 97.0.1-179.
Steps To ReproduceRun the widget below - you will see it counting up in the chat console and after some time it will suddenly stop counting. Then, if you look inside the infolog (or disable Red Console and resort to the engines built in chat console), in there the counting continues!

I added debug printing info to my widget handler, and it seems that widget:AddConsoleLine is called for the first 1025 chat messages, after which it is never called again.

In 96.0 the issue does not occur; AddConsoleLine continues to be called no matter how many messages you spam at the console.
Additional Informationfunction widget:GetInfo()
  return {
    name = "TEST",
    desc = "",
    author = "",
    date = "",
    license = "",
    layer = 0,
    enabled = true -- loaded by default?
  }
end

local i = 0
function widget:DrawScreen()
    i = i + 1
    Spring.Echo(i)
end

TagsNo tags attached.
Checked infolog.txt for Errors

Activities

cleanrock

2014-07-20 13:55

reporter   ~0013437

Caused by https://github.com/spring/spring/commit/5f9d050 (fix a danling pointer bug in CInfoConsole).

Issue History

Date Modified Username Field Change
2014-07-19 18:26 silentwings New Issue
2014-07-20 13:55 cleanrock Note Added: 0013437
2014-07-20 13:56 cleanrock Target Version => 98.0
2014-07-20 18:18 cleanrock Assigned To => jK
2014-07-20 18:18 cleanrock Status new => assigned
2014-07-22 16:32 cleanrock Changeset attached => spring develop 42ecae94
2014-07-22 16:32 cleanrock Assigned To jK => cleanrock
2014-07-22 16:32 cleanrock Status assigned => resolved
2014-07-22 16:32 cleanrock Resolution open => fixed