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
4c525832
Commit
4c525832
authored
5 years ago
by
Oz Linden
Browse files
Options
Downloads
Patches
Plain Diff
remove old crash logger more
parent
b6f1529b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llappviewermacosx.cpp
+7
-2
7 additions, 2 deletions
indra/newview/llappviewermacosx.cpp
indra/newview/llappviewerwin32.cpp
+1
-5
1 addition, 5 deletions
indra/newview/llappviewerwin32.cpp
with
8 additions
and
7 deletions
indra/newview/llappviewermacosx.cpp
+
7
−
2
View file @
4c525832
...
@@ -241,7 +241,7 @@ bool LLAppViewerMacOSX::init()
...
@@ -241,7 +241,7 @@ bool LLAppViewerMacOSX::init()
{
{
bool
success
=
LLAppViewer
::
init
();
bool
success
=
LLAppViewer
::
init
();
#if LL_SEND_CRASH_REPORTS
#if
!defined LL_BUGSPLAT &&
LL_SEND_CRASH_REPORTS
if
(
success
)
if
(
success
)
{
{
LLAppViewer
*
pApp
=
LLAppViewer
::
instance
();
LLAppViewer
*
pApp
=
LLAppViewer
::
instance
();
...
@@ -368,6 +368,7 @@ bool LLAppViewerMacOSX::restoreErrorTrap()
...
@@ -368,6 +368,7 @@ bool LLAppViewerMacOSX::restoreErrorTrap()
void
LLAppViewerMacOSX
::
initCrashReporting
(
bool
reportFreeze
)
void
LLAppViewerMacOSX
::
initCrashReporting
(
bool
reportFreeze
)
{
{
#ifndef LL_BUGSPLAT
std
::
string
command_str
=
"mac-crash-logger.app"
;
std
::
string
command_str
=
"mac-crash-logger.app"
;
std
::
stringstream
pid_str
;
std
::
stringstream
pid_str
;
...
@@ -379,6 +380,9 @@ void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze)
...
@@ -379,6 +380,9 @@ void LLAppViewerMacOSX::initCrashReporting(bool reportFreeze)
LL_WARNS
()
<<
"about to launch mac-crash-logger"
<<
pid_str
.
str
()
LL_WARNS
()
<<
"about to launch mac-crash-logger"
<<
pid_str
.
str
()
<<
" "
<<
logdir
<<
" "
<<
appname
<<
LL_ENDL
;
<<
" "
<<
logdir
<<
" "
<<
appname
<<
LL_ENDL
;
launchApplication
(
&
command_str
,
&
args
);
launchApplication
(
&
command_str
,
&
args
);
#else
LL_DEBUGS
(
"InitOSX"
)
<<
"using BugSplat instead of legacy crash logger"
<<
LL_ENDL
;
#endif // ! LL_BUGSPLAT
}
}
std
::
string
LLAppViewerMacOSX
::
generateSerialNumber
()
std
::
string
LLAppViewerMacOSX
::
generateSerialNumber
()
...
@@ -390,7 +394,8 @@ std::string LLAppViewerMacOSX::generateSerialNumber()
...
@@ -390,7 +394,8 @@ std::string LLAppViewerMacOSX::generateSerialNumber()
CFStringRef
serialNumber
=
NULL
;
CFStringRef
serialNumber
=
NULL
;
io_service_t
platformExpert
=
IOServiceGetMatchingService
(
kIOMasterPortDefault
,
io_service_t
platformExpert
=
IOServiceGetMatchingService
(
kIOMasterPortDefault
,
IOServiceMatching
(
"IOPlatformExpertDevice"
));
IOServiceMatching
(
"IOPlatformExpertDevice"
));
if
(
platformExpert
)
{
if
(
platformExpert
)
{
serialNumber
=
(
CFStringRef
)
IORegistryEntryCreateCFProperty
(
platformExpert
,
serialNumber
=
(
CFStringRef
)
IORegistryEntryCreateCFProperty
(
platformExpert
,
CFSTR
(
kIOPlatformSerialNumberKey
),
CFSTR
(
kIOPlatformSerialNumberKey
),
kCFAllocatorDefault
,
0
);
kCFAllocatorDefault
,
0
);
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llappviewerwin32.cpp
+
1
−
5
View file @
4c525832
...
@@ -174,7 +174,7 @@ static void exceptionTerminateHandler()
...
@@ -174,7 +174,7 @@ static void exceptionTerminateHandler()
long
*
null_ptr
;
long
*
null_ptr
;
null_ptr
=
0
;
null_ptr
=
0
;
*
null_ptr
=
0xDEADBEEF
;
//Force an exception that will trigger breakpad.
*
null_ptr
=
0xDEADBEEF
;
//Force an exception that will trigger breakpad.
//LLAppViewer::handleViewerCrash();
// we've probably been killed-off before now, but...
// we've probably been killed-off before now, but...
gOldTerminateHandler
();
// call old terminate() handler
gOldTerminateHandler
();
// call old terminate() handler
}
}
...
@@ -362,10 +362,6 @@ int APIENTRY WINMAIN(HINSTANCE hInstance,
...
@@ -362,10 +362,6 @@ int APIENTRY WINMAIN(HINSTANCE hInstance,
viewer_app_ptr
->
setErrorHandler
(
LLAppViewer
::
handleViewerCrash
);
viewer_app_ptr
->
setErrorHandler
(
LLAppViewer
::
handleViewerCrash
);
#if LL_SEND_CRASH_REPORTS
// ::SetUnhandledExceptionFilter(catchallCrashHandler);
#endif
// Set a debug info flag to indicate if multiple instances are running.
// Set a debug info flag to indicate if multiple instances are running.
bool
found_other_instance
=
!
create_app_mutex
();
bool
found_other_instance
=
!
create_app_mutex
();
gDebugInfo
[
"FoundOtherInstanceAtStartup"
]
=
LLSD
::
Boolean
(
found_other_instance
);
gDebugInfo
[
"FoundOtherInstanceAtStartup"
]
=
LLSD
::
Boolean
(
found_other_instance
);
...
...
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