diff --git a/Telegram/SourceFiles/storage/file_download.cpp b/Telegram/SourceFiles/storage/file_download.cpp index 14a1b298d..aef32a116 100644 --- a/Telegram/SourceFiles/storage/file_download.cpp +++ b/Telegram/SourceFiles/storage/file_download.cpp @@ -690,7 +690,10 @@ void mtpFileLoader::partLoaded(int offset, base::const_byte_span bytes) { return cancel(true); } } else { + SignalHandlers::setCrashAnnotation("DebugInfo", QString("offset: %1, size: %2").arg(offset).arg(bytes.size())); _data.reserve(offset + bytes.size()); + SignalHandlers::setCrashAnnotation("DebugInfo", QString()); + if (offset > _data.size()) { _skippedBytes += offset - _data.size(); _data.resize(offset);