Skip to content

Commit

Permalink
Refactor 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Oct 30, 2024
1 parent cca9131 commit c05068b
Show file tree
Hide file tree
Showing 53 changed files with 33,997 additions and 33,557 deletions.
31 changes: 22 additions & 9 deletions Dotnet/LogWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -603,15 +603,15 @@ private bool ParseLogVideoError(FileInfo fileInfo, LogContext logContext, string
var data = line.Substring(offset + 24);
if (data == logContext.LastVideoError)
return true;
logContext.LastVideoError = data;
logContext.LastVideoError = data;

AppendLog(new[]
{
fileInfo.Name,
ConvertLogTimeToISO8601(line),
"event",
"VideoError: " + data
});
AppendLog(new[]
{
fileInfo.Name,
ConvertLogTimeToISO8601(line),
"event",
"VideoError: " + data
});

return true;
}
Expand Down Expand Up @@ -1015,6 +1015,19 @@ private bool ParseLogUdonException(FileInfo fileInfo, string line)
{
// 2022.11.29 04:27:33 Error - [UdonBehaviour] An exception occurred during Udon execution, this UdonBehaviour will be halted.
// VRC.Udon.VM.UdonVMException: An exception occurred in an UdonVM, execution will be halted. --->VRC.Udon.VM.UdonVMException: An exception occurred during EXTERN to 'VRCSDKBaseVRCPlayerApi.__get_displayName__SystemString'. --->System.NullReferenceException: Object reference not set to an instance of an object.

if (line.Contains("[PyPyDance]"))
{
AppendLog(new[]
{
fileInfo.Name,
ConvertLogTimeToISO8601(line),
"udon-exception",
line
});
return true;
}

var lineOffset = line.IndexOf(" ---> VRC.Udon.VM.UdonVMException: ");
if (lineOffset < 0)
return false;
Expand Down Expand Up @@ -1193,7 +1206,7 @@ private bool ParseOscFailedToStart(FileInfo fileInfo, LogContext logContext, str
fileInfo.Name,
ConvertLogTimeToISO8601(line),
"event",
$"VRChat couldn't start OSC server, you may be affected by (https://vrchat.canny.io/bug-reports/p/installexe-breaks-osc-port-binding) \"{line.Substring(offset)}\""
$"VRChat couldn't start OSC server, \"{line.Substring(offset)}\""
});
return true;
}
Expand Down
Loading

0 comments on commit c05068b

Please sign in to comment.