Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

View Capture shows Wireshark Error "The file could not be opened: Uncompression error: buffer error" #202

Open
pstavirs opened this issue Dec 1, 2016 · 1 comment

Comments

@pstavirs
Copy link
Owner

pstavirs commented Dec 1, 2016

This typically happens when no packets were captured and is answered in the FAQ

However, it might be better to show a error dialog saying as much instead of triggering Wireshark which displays this non-intuitive error

Adding the following to PortGroup::processViewCaptureAck() should do the trick -

@@ -1419,6 +1419,14 @@ void PortGroup::processViewCaptureAck(PbRpcController *controller)
     capFile->flush();
     capFile->close();
 
+    if (!capFile->size())
+    {
+        QMessageBox::information(NULL, "Capture Buffer Empty",
+                QFileInfo(capFile->fileName()).baseName()
+                    + " - No packets were captured");
+        goto _exit;
+    }
+
     if (!QFile::exists(viewer))
     {
         QMessageBox::warning(NULL, "Can't find Wireshark", 
@pstavirs
Copy link
Owner Author

5c1aa6f fixes #212 not this issue

@pstavirs pstavirs reopened this Apr 10, 2017
cdm-work pushed a commit to cdm-work/ostinato that referenced this issue Dec 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant