RanorexAutomation crashing AUT

Bug reports.
drtaddei

RanorexAutomation crashing AUT

Post by drtaddei » Mon Jul 21, 2014 3:10 pm

Ranorex version: 5.1.0.18625
Operating System: Windows 8.1 64-bit
AUT: Netbeans Platform application, platform 7.0.1, Java 7, 32-bit

While evaluating Ranorex one of our AUTs continues to crash when Ranorex attempts to interact with it. While the application is running we cannot launch any Ranorex tool without crashing the application. We also tried launching the application from Ranorex but this had no effect. A stack trace produced in a console windows indicates there was a JNI fault.
RanorexAutomation: main entry point
RanorexAutomation: begin
RanorexAutomation: platform is '32'
RanorexAutomation: process: 6068
RanorexAutomation: tg main not found, running fallback setup from tg IDE Main
RanorexAutomation: retrieving windows
RanorexAutomation: window count: 5
RanorexAutomation: registering initial window hwnd: 4791782 comp: class javax.swing.JFrame
RanorexAutomation: registering initial window hwnd: 7085288 comp: class javax.swing.SwingUtilities$SharedOwnerFrame
RanorexAutomation: registering initial window hwnd: 3546294 comp: class com.company.product.dpcontroller.view.AbsoluteJDialog
RanorexAutomation: registering initial window hwnd: 6627120 comp: class com.company.product.dpcontroller.view.RelativeJDialog
RanorexAutomation: listen at 127.0.0.1:16068
RanorexAutomation: sync init complete
FATAL ERROR in native method: Wrong field ID passed to JNI
at com.ranorex.RanorexAutomation.getHWND(Native Method)
at com.ranorex.RanorexAutomation.getHandle(RanorexAutomation.java:354)
at com.ranorex.RanorexAutomation$GlobalAwtListener.eventDispatched(RanorexAutomation.java:220)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2422)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2314)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2272)
at java.awt.Component.dispatchEventImpl(Component.java:4757)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Unfortunately we do not know what the cause could be.

Thanks!

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: RanorexAutomation crashing AUT

Post by Support Team » Wed Jul 23, 2014 4:41 pm

Hi drtaddei,

Thank you for reporting your issue.
Can you please upgrade Ranorex to 5.1.1 which was released today and check if the error still exists.
If yes, please enable the internal logging mechanism in Ranorex as described in the following post:
http://www.ranorex.com/forum/java-linea ... tml#p23463

Is it possible for you to reproduce the issue on other machines too?
May I ask if it is possible to provide us your application in order to analyze the issue in more detail?
Tthank you.

Regards,
Bernhard

drtaddei

Re: RanorexAutomation crashing AUT

Post by drtaddei » Thu Jul 24, 2014 8:33 am

Hi Bernhard, unfortunately it is not possible to provide you with our application as it forms part of a modular system and requires the other parts to function.

I have installed Ranorex 5.1.1 and the issue persists. I also enabled logging as per your link. The studio log file does not appear to show anything however the Ranorex Spy log file has a lot more information.

Thanks!
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: RanorexAutomation crashing AUT

Post by Support Team » Tue Jul 29, 2014 3:20 pm

Hi David,

thank you for providing the log files. I sent you an email because this issue seems to be very specific to your application.
Please let me know if you didn't receive my email because I attached a file which could be blocked by your firewall.

Regards,
Bernhard