Bug in RXOntouchListener

Bug reports.
grndvl1
Posts: 2
Joined: Mon Feb 10, 2014 5:35 pm

Bug in RXOntouchListener

Post by grndvl1 » Mon Feb 10, 2014 6:10 pm

Noticed when debugging through an onTouchListener that my android instrumented apk starts to infinite loop through RXOntouchListener, which then eventually crashes the app with with a StackOverFlowError. Our onTouch Listener is in a Custom AutoCompleteTextView in this we call the listeners onTouch(view, motionevent) to trigger a touch event in the view to show a dropdown list. We do this to only trigger this view onTouch and not the layouts other touch events. But this seems to create an infinite loop in RXOnTouchListener.

File has the error attached stack trace

Can submit psuedo code of class we customized but due to client can't submit actual real code. Here is out onTouch code

...

Code: Select all

	private OnTouchListener l;

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		if (something != null) {
             ... do something and return true
				return true;
		}

		if (l != null) {
         // infinite loop happens here when going from onTouch into 
         // RXOntouchListener class at line 139 - 142
			return l.onTouch(v, event);
		}
                //otherwise return false
		return false;
	}
...
Attachments
RanorexError.txt
StackTrace on infinite loop
(5.9 KiB) Downloaded 100 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Bug in RXOntouchListener

Post by Support Team » Fri Feb 14, 2014 10:01 am

Hi,

thank you for the detailed information! We where able to reproduce this issue and will fix this in one of the next releases. This happens when overriding the onTouch of a control and chaining of OnTouchListeners. Then the RxOnTouchListener injects in the wrong place.

Best Regards,
Florian
.
Image

grndvl1
Posts: 2
Joined: Mon Feb 10, 2014 5:35 pm

Re: Bug in RXOntouchListener

Post by grndvl1 » Mon Feb 17, 2014 6:08 pm

Thank you for the updated information and look forward to the fix. I appreciate your customer support and glad I can help out.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Bug in RXOntouchListener

Post by Support Team » Tue Feb 18, 2014 3:17 pm

Thanks for the positive feedback :)!

Regards,
Markus
.
Image