Burp Suite User Forum

Create new post

Division by zero while loading a saved project

Petri | Last updated: Jun 11, 2021 08:11AM UTC

I am using v2021.5.2 and loading a project written with it. Unfortunately the project has a fault and keeps reporting division by zero at every load. Is there something I can do to fix the project file? The implications seem to be that the startup open dialog will remain open in the background with the error message and closing it will close Burp too. Second possibly related implication is that autosave will keep failing for that project. I would rather not include the file because it contains scans I have made on customer system. If it were possible to trim down the file so that it would not contain any requests and responses I might be able to share it. I have tried to make another project and import the broken project into it. Unfortunately then the new project will became corrupted too. 11-06-2021 11:02:33 EEST | java.lang.ArithmeticException: / by zero | burp.cuz.a(Unknown Source) burp.g4u.a(Unknown Source) burp.g4u.a(Unknown Source) burp.g0w.a(Unknown Source) burp.bc7.b(Unknown Source) burp.bc7.a(Unknown Source) burp.cvi.a(Unknown Source) burp.cvi.a(Unknown Source) burp.dh8.a(Unknown Source) burp.dh8.doInBackground(Unknown Source) java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304) java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) java.base/java.lang.Thread.run(Thread.java:832) 11-06-2021 11:02:34 EEST | java.lang.RuntimeException: java.lang.ArithmeticException: / by zero | burp.cvi.a(Unknown Source) burp.dh8.a(Unknown Source) burp.dh8.doInBackground(Unknown Source) java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304) java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) java.base/java.lang.Thread.run(Thread.java:832)

Petri | Last updated: Jun 11, 2021 09:15AM UTC

We were unable to conclude the search for the issue, but there is OneDrive sync involved.

Uthman, PortSwigger Agent | Last updated: Jun 11, 2021 09:22AM UTC

We are actively investigating an issue where syncing to OneDrive corrupts project files. If any other user experiences this, please send an email to support@portswigger.net with the information below: - Try launching Burp at the command line (https://portswigger.net/burp/documentation/desktop/getting-started/launching/command-line) with --project-file --auto-repair and --diagnostics - Steps to replicate the issue - Is the project file syncing online? (e.g. to OneDrive or a shared drive on your network) - Does the issue occur in other versions of Burp? When did the issue first appear? - Does the issue persist in the latest early adopter version (2021.6) of Burp? - Screenshots of any errors

brizeljohn | Last updated: Jan 09, 2023 05:58AM UTC

Arithmetic exceptions are raised during run time by Java Virtual Machine when you try to perform any arithmetic operation which is not possible in mathematics. In most cases, when a number is divided by zero, the result is undefined and that is when this ArithmeticException occurs. You can handle Java ArithmeticException in the following methods: You should make sure the divisor isn't zero (0) before attempting any division. You can handle the ArithmeticException using Java try and catch blocks. http://net-informations.com/java/err/ari.htm

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.