Print Thread
Page 1 of 3 1 2 3
Test window can not be closed when debug has gone wrong or connection has been lost
#44497 09/04/12 08:29 AM
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Member
OP Offline
Member
Joined: Dec 2005
Posts: 2,004
Roima Denmark
I have a test window that has "crashed" because of failing to break a debug session on an 11g database. The result now is that the execution has stopped, but the green Run arrow and the red Break lightning are enabled like the debugging session was still aktive. Nothing happens whether I press the green arrow nor the red lightning.

The problem is that the test window can not be closed. I get the message: "Test Window cannot be closed, Script is still executing". If I press Terminate, nothing happens.

I am now severely limited in what I can do in PLD: no compilation, no running of new test scripts. Only option is to save all programs, selects etc. and use task manager to force PLD to end. Not a very elegant solution.

This can also happen if I run SQL scripts of test windows using a databse connected via a VPN connection and the VPN connection fails for some reason (network problems etc.)

Please make it possible to force close a test window no matter the state of the debugging session. It must always be possible to close a window and end PLD in an orderly fashion without having to use the task manager.

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #44500 09/04/12 09:13 AM
Joined: Aug 1999
Posts: 22,203
Member
Offline
Member
Joined: Aug 1999
Posts: 22,203
I have added this to the list of enhancement requests.


Marco Kalter
Allround Automations
Re: Test window can not be closed when debug has gone wrong or connection has been lost
Marco Kalter #44502 09/04/12 09:16 AM
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Member
OP Offline
Member
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Thanks. Please make it a high priority, it causes great amounts of extra work and frustrations

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #44510 09/05/12 09:53 AM
Joined: Apr 2011
Posts: 49
Member
Offline
Member
Joined: Apr 2011
Posts: 49
i've experienced the same issue. i believe this works:
- click the X to close the window
- that terminates the debug session
- then Cancel the window closure

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #46879 04/20/13 11:39 AM
Joined: Dec 2012
Posts: 17
G
Member
Offline
Member
G
Joined: Dec 2012
Posts: 17
Still the probelem is persisting??
Any solution u got ??

---we are facing same issues ---Hari Developer Team

Re: Test window can not be closed when debug has gone wrong or connection has been lost
archer #46947 04/29/13 09:17 PM
Joined: Aug 2007
Posts: 53
Phoenix
J
Member
Offline
Member
J
Joined: Aug 2007
Posts: 53
Phoenix
I have a similar problem, but I don't think the workaround from archer works for me. When I try to close the window, I get the "Test Window can't be closed..." box. Clicking Terminate give me the error:
Error during debug step:
ORA-03114: not connected to ORACLE
Debug session terminated.

but the debug session remains; the green arrow and the red lightning bolt are both active, and clicking them gives the same error.

Can PL/SQL Developer be modified to actually terminate the debug session when it says "Debug session terminated"? (I'm using Version 9.0.6.1665)

One other note: Right-clicking on the window in the Window List shows the "Close Window" disabled, but the "Execute" is enabled. (Choosing Execute just locks up PSD as "Initializing...")

Last edited by juanian; 04/29/13 09:49 PM.
Re: Test window can not be closed when debug has gone wrong or connection has been lost
juanian #47021 05/08/13 08:40 AM
Joined: Aug 2007
Posts: 13
R
Member
Offline
Member
R
Joined: Aug 2007
Posts: 13
To confirm, this is still an issue with 10.0.2

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Richard Scott #47494 07/19/13 09:04 PM
Joined: Aug 2007
Posts: 53
Phoenix
J
Member
Offline
Member
J
Joined: Aug 2007
Posts: 53
Phoenix
And it has been around for quite a while . . .

Debug session 'stuck' on ORA-03114 - not connected to oracle loop

Re: Test window can not be closed when debug has gone wrong or connection has been lost
juanian #49861 12/05/14 09:35 PM
Joined: Dec 2014
Posts: 1
D
Member
Offline
Member
D
Joined: Dec 2014
Posts: 1
This issue is still with 10.0.5. is there any plan to get it corrected? every time have to terminate the process from task management, it's very frustrating!

Re: Test window can not be closed when debug has gone wrong or connection has been lost
davqi #49865 12/08/14 04:22 PM
Joined: Apr 2003
Posts: 517
Portland, OR, USA
M
Member
Offline
Member
M
Joined: Apr 2003
Posts: 517
Portland, OR, USA
When I get this problem, I open another PL/SQL Developer program, open the sessions window and then kill the hung test session. That has always worked as far as I remember. It's still not elegant and it's a hassle, but I don't lose anything else this way.

Re: Test window can not be closed when debug has gone wrong or connection has been lost
mike #51668 06/16/15 10:30 AM
Joined: Jun 2015
Posts: 7
A
Member
Offline
Member
A
Joined: Jun 2015
Posts: 7
This is still an issue with 11.0.0.1762. Thx for mike. In win'7 sometimes is possible to mouse right-click on taskbar, choose "close window" and next "try to restore".

The simplest workaround would be: to set run state of SQL/cmd window to "no" while not connecting to database and break button is clicked.

Last edited by AWegierski; 06/18/15 11:15 AM.
Re: Test window can not be closed when debug has gone wrong or connection has been lost
davqi #52086 09/07/15 09:52 AM
Joined: Jan 2013
Posts: 52
Greece
A
Member
Offline
Member
A
Joined: Jan 2013
Posts: 52
Greece
[quote=davqi]This issue is still with 10.0.5. is there any plan to get it corrected? every time have to terminate the process from task management, it's very frustrating![/quote]

+1

Still an issue at the latest version. Please Marco have a look at it.

Last edited by Arky; 09/07/15 09:52 AM.
Re: Test window can not be closed when debug has gone wrong or connection has been lost
Arky #52968 01/25/16 09:59 AM
Joined: Mar 2007
Posts: 12
Swiss
L
Member
Offline
Member
L
Joined: Mar 2007
Posts: 12
Swiss
I have the same problem. I cannot always close or stop a test window that doesn't answer anymore.

Please fix the problem, it's really frustrating us.

Last edited by Laurent Feltz; 01/25/16 10:02 AM.
Re: Test window can not be closed when debug has gone wrong or connection has been lost
Laurent Feltz #53082 02/05/16 03:56 PM
Joined: Mar 2008
Posts: 2
Onoenta, New York
S
Member
Offline
Member
S
Joined: Mar 2008
Posts: 2
Onoenta, New York
I am on 11.0.4.1774 02.15491 and test window keeps freezing at the end of the test run. Stepping through with debug.


Two things that equal the same thing are equal to each other
Re: Test window can not be closed when debug has gone wrong or connection has been lost
Stan #53086 02/09/16 04:30 PM
Joined: Mar 2005
Posts: 7
Nebraska, USA
C
Member
Offline
Member
C
Joined: Mar 2005
Posts: 7
Nebraska, USA
This is a very annoying issue. Makes my productivity go way down. Is this a bug in PL/SQL Developer or in the way that we install it or in the way we install the Oracle client or ....?

Marco or someone please post a way for us to trouble shoot this. I would think with the minimal number of posts that not every user is experiencing this issue.

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Cecil Jones #53630 06/22/16 01:35 PM
Joined: Mar 2005
Posts: 7
Nebraska, USA
C
Member
Offline
Member
C
Joined: Mar 2005
Posts: 7
Nebraska, USA
If found a resolution to this issue. In case someone else stumbles upon this thread. I was running the 10g oracle client with and 11g database (long story on why so no room for details here ;>). I upgrade my Oracle client to the same version as the DB and the debugger is behaving as expected.

So make sure that your Oracle Client matches the version of the DB that you are debugging on.

PL/SQL Developer
Version 11.0.6.1776
12.100110 - Unlimited user license
Service Contract: 5/1/2016
Windows 7 (64-bit) Build 7601 (Service Pack 1)

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Cecil Jones #61958 08/17/20 01:08 PM
Joined: Aug 2007
Posts: 53
Phoenix
J
Member
Offline
Member
J
Joined: Aug 2007
Posts: 53
Phoenix
Sadly, it appears that this will never be fixed. I recently upgraded to Version 14 and just ran into the problem (again). Checking the forums, I still see my original post from 13 years ago ( Debug session 'stuck' on ORA-03114 - not connected to oracle loop ).

The problem can occur when a debugging session is left 'executing' too long, and Oracle times out the session. So, the previous workarounds (like killing the Oracle session) won't work, because Oracle has already killed the session on the database side.

I would have thought it should be a pretty 'simple' fix in PL/SQL Developer - when the user tries to close the window and receives the "Test Window cannot be closed, Script is still executing", and then clicks the Terminate button, and gets the error:
Error during debug step:
ORA-03114: not connected to ORACLE
Debug session terminated.

clear the 'flag' that indicates that the session is still executing. Since the session is already disconnected from Oracle, there is no need to be concerned about a dangling process on the Oracle side.

The only way I can see that will get out of the situation is to kill the PL/SQL Developer app in Task Manager. That is a bit drastic, but since there is no known work-around, that is the only way to solve the issue. (Trying to close the window from the Task Bar (or by clicking the X in the upper right of the application) just pops up the same "Test Window cannot be closed, Script is still executing" dialog.)

This problem should be very simple to reproduce - start a Debug session, disconnect the PC from the network, and try to do a step. Once the connection times out, the error should occur.

I'm assuming that fixing this is too low on the list of bug fixes for AA, likely because an insufficient number of people have let AA know that they have this problem. So if you do have this problem, let AA know, so it might inch up a tad on their 'bugs to fix' list.

Thanks
Juan


Re: Test window can not be closed when debug has gone wrong or connection has been lost
juanian #61963 08/20/20 07:00 AM
Joined: Jan 2013
Posts: 52
Greece
A
Member
Offline
Member
A
Joined: Jan 2013
Posts: 52
Greece
+1

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Arky #61964 08/20/20 09:21 AM
Joined: Jan 2006
Posts: 66
Lithuania
Member
Offline
Member
Joined: Jan 2006
Posts: 66
Lithuania
+1


Dalius
Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #61980 08/27/20 10:31 AM
Joined: Jul 2013
Posts: 8
A
Member
Offline
Member
A
Joined: Jul 2013
Posts: 8
And another +1

We are working via VPN a lot and every time the connection drops and you do something like debugging you have to kill those sessions, sometimes it works, sometimes the only way out is killing PL/SQL Developer via the task manager. Can't close the window or application while debugging, can't stop debugging, can't disconnect, can't do anything. Handling connection errors during compares could be improved too.

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #62196 11/16/20 09:41 AM
Joined: Jan 2020
Posts: 2
S
Member
Offline
Member
S
Joined: Jan 2020
Posts: 2
+1

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #62281 12/22/20 03:56 PM
Joined: Dec 2020
Posts: 1
A
Member
Offline
Member
A
Joined: Dec 2020
Posts: 1
+1 Have had this issue forever with PL/SQL Developer. It is a great tool but the one feature that I like the best gives me the most trouble and that is a hung debug window (for any reason). Will highly appreciate if this is fixed.

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #62282 12/23/20 12:32 PM
Joined: Sep 2019
Posts: 34
Spain
E
El Offline
Member
Offline
Member
E
Joined: Sep 2019
Posts: 34
Spain
+1 I have the same problem


-------------------------------
Elias F.M.
Re: Test window can not be closed when debug has gone wrong or connection has been lost
Marco Kalter #63858 04/20/22 01:10 PM
Joined: Apr 2022
Posts: 1
C
Member
Offline
Member
C
Joined: Apr 2022
Posts: 1
Currently using PL/SQL Developer V13, and the issue still exists.
Is there a fix for this, and if not maybe some explanation?
Is it necessary for the connected user to have ALTER SESSION privilege? because this is required to use the workaround to open another PL/SQL Developer instance and kill the rogue test session.

Re: Test window can not be closed when debug has gone wrong or connection has been lost
juanian #64515 03/17/23 12:21 PM
Joined: Nov 2022
Posts: 5
M
Member
Offline
Member
M
Joined: Nov 2022
Posts: 5
Most annoying bug occurring on a daily basis to date, which should be solvable even in a suboptimal manner, regardless if it's related to some obscure oci driver bug.


Originally Posted by juanian
Sadly, it appears that this will never be fixed. I recently upgraded to Version 14 and just ran into the problem (again). Checking the forums, I still see my original post from 13 years ago ( Debug session 'stuck' on ORA-03114 - not connected to oracle loop ).

The problem can occur when a debugging session is left 'executing' too long, and Oracle times out the session. So, the previous workarounds (like killing the Oracle session) won't work, because Oracle has already killed the session on the database side.

I would have thought it should be a pretty 'simple' fix in PL/SQL Developer - when the user tries to close the window and receives the "Test Window cannot be closed, Script is still executing", and then clicks the Terminate button, and gets the error:
Error during debug step:
ORA-03114: not connected to ORACLE
Debug session terminated.

clear the 'flag' that indicates that the session is still executing. Since the session is already disconnected from Oracle, there is no need to be concerned about a dangling process on the Oracle side.

The only way I can see that will get out of the situation is to kill the PL/SQL Developer app in Task Manager. That is a bit drastic, but since there is no known work-around, that is the only way to solve the issue. (Trying to close the window from the Task Bar (or by clicking the X in the upper right of the application) just pops up the same "Test Window cannot be closed, Script is still executing" dialog.)

This problem should be very simple to reproduce - start a Debug session, disconnect the PC from the network, and try to do a step. Once the connection times out, the error should occur.

I'm assuming that fixing this is too low on the list of bug fixes for AA, likely because an insufficient number of people have let AA know that they have this problem. So if you do have this problem, let AA know, so it might inch up a tad on their 'bugs to fix' list.

Thanks
Juan

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #64516 03/17/23 10:18 PM
Joined: Dec 2022
Posts: 6
G
Member
Offline
Member
G
Joined: Dec 2022
Posts: 6
+1

Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #64517 03/20/23 07:53 AM
Joined: Jan 2006
Posts: 66
Lithuania
Member
Offline
Member
Joined: Jan 2006
Posts: 66
Lithuania
+1


Dalius
Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #64521 03/22/23 11:09 AM
Joined: Jan 2003
Posts: 88
A
Member
Offline
Member
A
Joined: Jan 2003
Posts: 88
+1

So irritating... SQL Developer doesn't seem to suffer from this.


Andy
Re: Test window can not be closed when debug has gone wrong or connection has been lost
Claus Pedersen #64559 04/21/23 10:48 AM
Joined: Dec 2001
Posts: 236
berlin
F
Member
Offline
Member
F
Joined: Dec 2001
Posts: 236
berlin
+1

It is possible to kill the session(s) on the database server in order to be able to interact with the program again. However, debugging is no longer possible until plsd is restarted (debug = run).

Page 1 of 3 1 2 3

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.062s Queries: 15 (0.017s) Memory: 2.6644 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-25 05:15:53 UTC
Valid HTML 5 and Valid CSS