Print any module name+ offset in host exception reports

print thread name in host exception reports
trying to force win32 error descriptions to english
Return if output buffer block count is 0 in XmaContext, this is an attempt to fix a divide by zero crash many users have reported
This commit is contained in:
chss95cs@gmail.com
2022-12-09 12:24:06 -08:00
parent 7c5da821d4
commit 7d49b97e4c
2 changed files with 98 additions and 18 deletions

View File

@@ -355,13 +355,20 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
: nullptr;
uint8_t* current_input_buffer = data->current_buffer ? in1 : in0;
XELOGAPU("Processing context {} (offset {}, buffer {}, ptr {:p})", id(),
data->input_buffer_read_offset, data->current_buffer,
current_input_buffer);
XELOGAPU(
"Processing context {} (offset {}, buffer {}, ptr {:p}, output buffer "
"{}, output buffer count {})",
id(), data->input_buffer_read_offset, data->current_buffer,
current_input_buffer, data->output_buffer_ptr,
data->output_buffer_block_count);
if (!current_input_buffer) {
return;
}
if (!data->output_buffer_block_count) {
XELOGE("Received 0 for output_buffer_block_count!");
return;
}
size_t input_buffer_0_size =
data->input_buffer_0_packet_count * kBytesPerPacket;
size_t input_buffer_1_size =
@@ -492,8 +499,8 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
}
if (frame_count > 0) {
//assert_true(xma::GetPacketFrameOffset(packet) - 32 ==
// split_frame_len_ - split_frame_len_partial_);
// assert_true(xma::GetPacketFrameOffset(packet) - 32 ==
// split_frame_len_ - split_frame_len_partial_);
}
if (split_frame_len_partial_ > split_frame_len_) {