Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
562fe5bf
Commit
562fe5bf
authored
5 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
SL-10908 Output class names we are clearing on startup
parent
8c32aa0d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llcommon/llmortician.cpp
+36
-0
36 additions, 0 deletions
indra/llcommon/llmortician.cpp
indra/llcommon/llmortician.h
+2
-0
2 additions, 0 deletions
indra/llcommon/llmortician.h
indra/newview/llstartup.cpp
+8
-0
8 additions, 0 deletions
indra/newview/llstartup.cpp
with
46 additions
and
0 deletions
indra/llcommon/llmortician.cpp
+
36
−
0
View file @
562fe5bf
...
@@ -37,6 +37,42 @@ LLMortician::~LLMortician()
...
@@ -37,6 +37,42 @@ LLMortician::~LLMortician()
sGraveyard
.
remove
(
this
);
sGraveyard
.
remove
(
this
);
}
}
U32
LLMortician
::
logClass
(
std
::
stringstream
&
str
)
{
U32
size
=
sGraveyard
.
size
();
str
<<
"Mortician graveyard count: "
<<
size
;
str
<<
" Zealous: "
<<
(
sDestroyImmediate
?
"True"
:
"False"
);
if
(
size
==
0
)
{
return
size
;
}
str
<<
" Output:
\n
"
;
std
::
list
<
LLMortician
*>::
iterator
iter
=
sGraveyard
.
begin
();
std
::
list
<
LLMortician
*>::
iterator
end
=
sGraveyard
.
end
();
while
(
iter
!=
end
)
{
LLMortician
*
dead
=
*
iter
;
iter
++
;
// Be as detailed and safe as possible to figure out issues
str
<<
"Pointer: "
<<
dead
;
if
(
dead
)
{
try
{
str
<<
" Is dead: "
<<
(
dead
->
isDead
()
?
"True"
:
"False"
);
str
<<
" Name: "
<<
typeid
(
*
dead
).
name
();
}
catch
(...)
{
}
}
str
<<
"
\n
"
;
}
str
<<
"--------------------------------------------"
;
return
size
;
}
void
LLMortician
::
updateClass
()
void
LLMortician
::
updateClass
()
{
{
while
(
!
sGraveyard
.
empty
())
while
(
!
sGraveyard
.
empty
())
...
...
This diff is collapsed.
Click to expand it.
indra/llcommon/llmortician.h
+
2
−
0
View file @
562fe5bf
...
@@ -34,6 +34,8 @@ class LL_COMMON_API LLMortician
...
@@ -34,6 +34,8 @@ class LL_COMMON_API LLMortician
{
{
public:
public:
LLMortician
()
{
mIsDead
=
FALSE
;
}
LLMortician
()
{
mIsDead
=
FALSE
;
}
static
U32
graveyardCount
()
{
return
sGraveyard
.
size
();
};
static
U32
logClass
(
std
::
stringstream
&
str
);
static
void
updateClass
();
static
void
updateClass
();
virtual
~
LLMortician
();
virtual
~
LLMortician
();
void
die
();
void
die
();
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llstartup.cpp
+
8
−
0
View file @
562fe5bf
...
@@ -348,6 +348,14 @@ bool idle_startup()
...
@@ -348,6 +348,14 @@ bool idle_startup()
// to work.
// to work.
gIdleCallbacks
.
callFunctions
();
gIdleCallbacks
.
callFunctions
();
gViewerWindow
->
updateUI
();
gViewerWindow
->
updateUI
();
// There is a crash on updateClass, this is an attempt to get more information
if
(
LLMortician
::
graveyardCount
())
{
std
::
stringstream
log_stream
;
LLMortician
::
logClass
(
log_stream
);
LL_INFOS
()
<<
log_stream
.
str
()
<<
LL_ENDL
;
}
LLMortician
::
updateClass
();
LLMortician
::
updateClass
();
const
std
::
string
delims
(
" "
);
const
std
::
string
delims
(
" "
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment