summaryrefslogtreecommitdiff
path: root/src/frontEnd
diff options
context:
space:
mode:
authorrahulp132020-08-30 14:37:44 +0530
committerrahulp132020-08-30 14:37:44 +0530
commit4713e795b6c9508c0e40462e155f90d769708775 (patch)
tree303171cda03e67c610ebe2a8e3ac85ef053454f0 /src/frontEnd
parenta61c3edf10706ca0231b4441f84f801f0c9d4773 (diff)
downloadeSim-4713e795b6c9508c0e40462e155f90d769708775.tar.gz
eSim-4713e795b6c9508c0e40462e155f90d769708775.tar.bz2
eSim-4713e795b6c9508c0e40462e155f90d769708775.zip
fixed crash on exception of ngspice taking too long time
Diffstat (limited to 'src/frontEnd')
-rw-r--r--src/frontEnd/Application.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 44616ab7..4edf7a9f 100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -532,16 +532,27 @@ class Application(QtWidgets.QMainWindow):
break
except Exception:
pass
- time.sleep(0.5)
+ time.sleep(1)
# Fail Safe ===>
count += 1
if count >= 10:
- raise Exception(
+ print(
"Ngspice taking too long for simulation. "
"Check netlist file to change simulation parameters."
)
+ self.msg = QtWidgets.QErrorMessage()
+ self.msg.setModal(True)
+ self.msg.setWindowTitle("Warning Message")
+ self.msg.showMessage(
+ 'Ngspice taking too long for simulation. '
+ 'Check netlist file to change simulation parameters.'
+ )
+ self.msg.exec_()
+
+ return
+
# Calling Python Plotting
try:
self.obj_Mainview.obj_dockarea.plottingEditor()