Skip to Content
3

ABAP ADT 2.68.3 Bugs - Eclipse crashes

Nov 07, 2016 at 07:18 PM

605

avatar image

I am running ADT 2.68.3 with Neon 4.6.1 on OS X (Sierra) with ABAP backend SAPKA74012. I am seeing a lot more crashes than before. From version 2.68 on, I have not really been able to use the debugger without risking a crash. With this latest update, I am have the Eclipse environment crash even if all I am doing is working on GUI for 15-20 minutes and going back to Eclipse.

Note: By crash, I mean the Eclipse environment become unresponsive and I get the spinning beachball. I have to Force Quit and then reopen Eclipse to continue working.

Is there any particular log that I can upload that would be helpful?

adt
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

12 Answers

Raghu Govindarajan Nov 29, 2016 at 09:20 PM
1

Armin, welcome back from your vacation... I also just returned to work after Thanksgiving - and have something new to report - I have not had any crashes for the last 2 days!! (Knocking on wood)

The only difference is that I went from using two sets of Windows with tabs like in my November 15th screen shot to just a single window with all the tabs that I am using. I have used F3 to follow code all around, I have even done a bit of debugging and I have not crashed at all! Hope this helps too.

Share
10 |10000 characters needed characters left characters exceeded
Armin Beil
Nov 08, 2016 at 08:48 AM
0

Hello Raghu,

there is an issue in the combination ADT & SAP GUI for Java & OS X that can cause an ADT freeze. We are working on a fix for this. Based on your description we currently guess that you are facing the same issue that is already reproducible on our side, although we cannot be exactly sure. I would let you know if we have updates on this.

To check your issue in detail and for further processing we would ask you to create a customer incident and attach the support zip file (ADT menu "Help" -> "Collect Support Information..."). It would also be helpful if you could add some more details regarding "even if all I am doing is working on GUI for 15-20 minutes and going back to Eclipse."

"Working on GUI" means embedded GUI in ADT or standalone GUI?

"Going back to Eclipse" means only switch back or also performing some action like starting a report, activating a source or starting another embedded SAP GUI window?

As a work around you can try to deactivate the ADT Debugger completely via the Debug Properties (Context menu on ADT project -> "Properties" -> "ABAP Development" -> "Debug" -> Uncheck "Enable debugger" and confirm).

Best regards,
Armin

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Armin,

I am a consultant so I will try to convince the team here to create a customer incident for me, but I am not sure I will be able to.

"Working on GUI" meant working on standalone SAP GUI for Java. I usually switch to standard SAP GUI for test data and to run standard T-Codes like MIGO, etc.

The last crash I had was when I just opened a new tab with source code and tried switching to another tab which was already open. In this case it was nothing to do with the debugger. I might have had one embedded SAP GUI tab open - I cannot be positive about that right now though. The next time it happens, I will make a note.

Trying to deactivate the Debugger, the only setting that I had was "Enable System Debugging". I have disabled that for now.

The support file - I have taken a snapshot this morning with no crashes. I am guessing you would want the snapshot right after a crash?

0
Armin Beil
Nov 09, 2016 at 09:18 AM
0

Hi Raghu,

actually the debugger may be involved, even if you have no breakpoints and no active debug session. I still think that the deactivation of the debugger might work as a temporary workaround. For debugging you would then have to use SAP GUI debugger of course (with external breakpoints).

The system debugging setting is part of the ADT preferences which are the overall settings for the whole workspace / all projects. The debugger main on/off switch can be found in the ADT properties which are the project specific settings. You can find the project properties as described above or if you open the preferences as you did and then choose the link "Configure Project Specific Settings". You would have to do this for every project that you use.

Regarding the support file: Yes the crash information would be helpful but I also asked for it because it contains the Java GUI version. Once the crash occcured again and you got the file you can upload it here or send it to me via mail (first.second [at] sap.com).

Best regards,
Armin Beil

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Interestingly, turning off the system debugger appeared to reduce the crashes to only once. I did use the debugger and breakpoints successfully a few times. I will turn the debugger off completely today. I will post some of the relevant parts of the log with versions here if it ends up helping someone else and also email the who might have an issue too.

SAP GUI for Java Embedding
Version                  : Tue Sep 30 06:12:23 CEST 2014 (1518805) on ldm046
Legacy System Repository : /Library/Preferences/SAP/platin.properties
Legacy User Repository   : null
System Repository        : /Library/Preferences/SAP/sapgui.registry
User Repository          : /Users/raghug/Library/Preferences/SAP/sapgui.registry
======================================================
SAP GUI for Java
------------------------------------------------------
* SAPGUI 7.20 rev 1, 072000040100, /Applications/SAP Clients/SAPGUI 7.20rev1/SAPGUI 7.20rev1.app
  SAP GUI 7.30, 073000040000, /Applications/SAP Clients/SAPGUI 7.30/SAPGUI 7.30.app
  SAP GUI 7.30 rev 8, 073000040800, /Applications/SAP Clients/SAPGUI 7.30rev8/SAPGUI 7.30rev8.app
  SAP GUI 7.40, 074000040000, /Applications/SAP Clients/SAPGUI 7.40/SAPGUI 7.40.app
  SAP GUI 7.40 rev 5, 074000040500, /Applications/SAP Clients/SAPGUI 7.40rev5/SAPGUI 7.40rev5.app
* SAP GUI 7.40 rev 9, 074000040900, /Applications/SAP Clients/SAPGUI 7.40rev9/SAPGUI 7.40rev9.app
======================================================
SAPWDP Client for Java
------------------------------------------------------
======================================================
SAP Netweaver Business Client
------------------------------------------------------
======================================================

I have been using 7.40rev9 exclusively for the last 2 weeks. Before that 7.40rev5 also had some crashes.

### Root Installable Units ###
com.sap.adt.core.devedition.feature.group=2.68.3
com.sap.adt.pitools.tlf.devedition.feature.group=1.61.1
com.sap.adt.tools.bopf.devedition.feature.group=1.45.1
com.sap.adt.tools.hana.devedition.feature.group=2.68.1
com.sap.adt.wda.core.devedition.feature.group=1.61.1
epp.package.testing=4.6.1.20161007-1200
org.eclipse.jubula.feature.feature.group=4.0.0.201605250813
org.eclipse.mylyn.bugzilla_feature.feature.group=3.20.0.v20160425-1835
org.eclipse.mylyn.context_feature.feature.group=3.20.0.v20160608-1905
org.eclipse.mylyn.ide_feature.feature.group=3.20.0.v20160421-1902
org.eclipse.mylyn.wikitext_feature.feature.group=2.9.0.v20160601-1831
org.eclipse.mylyn_feature.feature.group=3.20.0.v20160608-1838

... and some miscellaneous lines pulled from the systemProperties.txt

eclipse.buildId=4.6.1.M20160907-1200


--launcher.library
/Applications/Eclipse Neon.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.400.v20160518-1444/eclipse_1615.so
-startup
/Applications/Eclipse Neon.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar


-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/../jre/lib/server/libjvm.dylib

-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

os.arch=x86_64
os.name=Mac OS X
os.version=10.12.1
osgi.arch=x86_64

### JAVA RUNTIME PROPERTIES (from java.lang.Runtime) ###
# Values only reflect roughly the actual memory sizes

maxMemory=1 GB
freeMemory=85.98 MB
totalMemory=256 MB

0
Raghu Govindarajan Nov 09, 2016 at 07:31 PM
0

Update: First crash of the day. I was curious to see what would happen if I did a "/h" to turn on the debugger from an embedded SAP GUI session. It did popup a standalone debugger window. I hardly got through my thought of "this is cool, I can live with this in the interim quite easily" and pressed F8 to continue - and boom, both the SAP GUI Window and my Eclipse session disappeared and I get a "Eclipse quit unexpectedly. Do you want to inform Apple" messages.

I am able to replicate this pretty easily.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Update 2: Another crash. This time Eclipse debugger was off and I was not even debugging. All I was trying to do was pressing F3 to navigate to a function module within the code.

0
Armin Beil
Nov 10, 2016 at 10:16 AM
0

Hello Raghu,

I see. Update 2 actually shows that the debugger is most probably not involved.

Besides this I talked to an Java GUI expert and he strongly advises to use an updated JDK (your trace file shows that you are currently using 1.8.0_25). Could you please update the JDK that is used for eclipse and see if the issues persist?

Best regards,
Armin

Show 1 Share
10 |10000 characters needed characters left characters exceeded

I will try to update when I can. Right now Oracle thinks I am not in a country that is authorized to download the JDK... I am in the US in Pennsylvania now and have tried 2 different networks and my cell service with the same results. Part of #calexit?? I will be in New Jersey tonight and give it a try :)

Thank you for accessing the Oracle Software Delivery Cloud. Due to your country location, we are unable to process your request.
0
Raghu Govindarajan Nov 14, 2016 at 07:02 PM
0

Ok, I have updated to the latest version of the JDK 1.8.0_112. I still have crashes.

One was related to debugging, when I tried switching tabs from the current code being debugged to another tab.

The latest one was from the Feed Reader, I had double clicked a dump and then from within the Dump's Source Code extract (in the Embedded GUI) I tried selecting a line and Eclipse froze. This time I did get corresponding Dumps in ST22. It does reference note 84176. Do you think this will fix the issues?

Category 	              	Internal Kernel Error                                                     
Runtime Errors	         	CALL_FUNCTION_RECEIVE_ERROR                                               
Application Component  	BC-MID-RFC                                                                
Date and Time 	         	11/14/2016	 	13:53:07                                                       
                                                                                                 
Short Text                                                                                      
    	Error when receiving answer to a Remote Function Call.                                      
                                                                                                 
What happened?                                                                                  
    	Error in the SAP kernel                                                                     
    	                                                                                            
    	The current ABAP program "SAPLSADT_REST" had to be terminated because the ABAP              
    	processor detected a system error.                                                          
                                                                                                 
What can you do?                                                                                
    	Note which actions and entries caused the error to occur.                                   
    	                                                                                            
    	Consult your SAP administrator.                                                             
    	                                                                                            
    	Using transaction ST22 for ABAP dump analysis, you can view, manage,                        
    	and retain termination messages for longer periods.                                         
                                                                                                 
How to correct the error                                                                        
    	Refer to note 84176.                                                                        
    	                                                                                            
    	" "                                                                                         
    	The internal system error cannot be resolved using ABAP.                                    
    	                                                                                            
    	You might be able to find a solution in the SAP Notes system. If you                        
    	have access to the SAP Notes system, check there first using the                            
    	following keywords:                                                                         
    	"CALL_FUNCTION_RECEIVE_ERROR"                                                               
    	"SAPLSADT_REST" or LSADT_RESTU01                                                            
    	"SADT_REST_RFC_ENDPOINT"                                                                    
    	If you cannot solve the problem yourself, please send the following                         
Share
10 |10000 characters needed characters left characters exceeded
Armin Beil
Nov 15, 2016 at 04:13 PM
0

Hello Raghu,

too bad, I actually thought the JDK update could help.

Regarding your newest inputs: Of course a back-end dump can cause front-end errors but we think it's quite unlikely that it would actually cause a front-end freeze. Maybe it's a separate issue. But since it might be related and since this is a kernel dump it is surely not wrong to try to fix it.

Could you please let us know the kernel version (menu 'System' -> 'Status...' -> Shift F5 -> at least release & patch level on the top left) and send me the whole dump via mail? (ST22 -> open dump -> menu 'System' -> List -> Save -> Local File -> Unconverted)

Is one of the mentioned cases reliable reproducible on your side meanwhile or is it still randomly happening?

If the next freeze occured you could also do the following: Before closing the hanging IDE use activity monitor to look up the pid of eclipse, execute 'jstack <pid>' via command line and send us the result.

We will also have a meeting with the mentioned SAP GUI expert end of next week. We will analyse the freeze issue that we have reproducible in-house but I'll also ask him whether he has further advises for your case.

Best regards,
Armin

PS: I'm on vacation 17th-22th Nov.

Share
10 |10000 characters needed characters left characters exceeded
Raghu Govindarajan Nov 15, 2016 at 05:19 PM
0

Armin, first off I have to thank you for being so unbelievably responsive!

Here is the Kernel version information... and I am sending you an email with the dump information.

The crashes appear to be random - the closest thing to a pattern that I can see is that it happens when switching between source code tabs or pressing F3 to navigate to another program / function module / class - which also switches tabs. You are correct about the dumps vs freezes, I had about 20 dumps yesterday (they all superficially appear identical), but only 4 freezes.

If it makes any difference, I usually have two sets of Windows open for source code. I am attaching a current screen shot to illustrate where I have a vertical monitor setup. I also have a horizontal monitor setup in another location (same computer, different monitor) with the two windows side-by-side. I haven't noticed any difference in frequency of issues in either of the setups.

PS - Have fun on vacation, I am in no hurry, just hope this helps the community as a whole.


Share
10 |10000 characters needed characters left characters exceeded
Armin Beil
Nov 28, 2016 at 04:47 PM
0

Hello Raghu,

your welcome. Thanks for the time and effort you spent on providing the inputs.

Since we already discussed the further handling of the kernel dump via mail I think we can use this thread to concentrate on the freeze issues.

We identified a general issue between ABAP in Eclipse and embedded Java GUI (usage of an outdated library) that could potentially cause freezes. But unfortunately I cannot say for sure whether this is the cause for some of your freeze situations. We are working on a correction for the identified issue.

At least for your last reported freeze the mentioned correction will not be helpful because the JStack you provided shows that no embedded GUI was involved in that certain situation. However a colleague identified your JStack as an issue that also occurs in-house. I'll request the processing of this topic at the appropriate team and I'll link this SCN discussion, but I will not be working on the further analysis.

Since this is not an OSS ticket but SCN I also cannot guarantee whether the issue will handled with priority or whether the other team will answer via SCN. But I will try to give you an update here if a fix is available.

Best regards,
Armin

Share
10 |10000 characters needed characters left characters exceeded
Armin Beil
Dec 06, 2016 at 04:02 PM
0

Hi Raghu,

I think this information could actually help a lot. Did you experience further crashes since using only one window?

I forwarded your issue as mentioned. A colleague from the other team (he had the same issue with his Mac before but not often) told me he will work now with your setup in order to get the issue reproducible.

In case you get further crashes please feel free to provide us some further JStacks.

Best regards,
Armin

Share
10 |10000 characters needed characters left characters exceeded