Issue 5439 in selenium: Exception in thread "stp-thread" java.nio.BufferUnderflowException when page loads on remote Opera browser

4 views
Skip to first unread message

sele...@googlecode.com

unread,
Apr 3, 2013, 10:38:19 AM4/3/13
to selenium-develope...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged

New issue 5439 by neskazu: Exception in thread "stp-thread"
java.nio.BufferUnderflowException when page loads on remote Opera browser
http://code.google.com/p/selenium/issues/detail?id=5439

What steps will reproduce the problem?
1. On the local PC create WebDriver with "new OperaDriver(capabilities)"
and single capability opera.autostart set to false
2. On the remote device (set-top box in our case) load opera:debug connect
to PC
3. Connection is established. It is possible to get page source, etc...
4. On the remote device load another page: in our case widget representing
SVG application. It takes several minutes for application to load and the
DOM tree changes several time during it.

Exception is thrown in stp-thread of local WebDriver
Exception in thread "stp-thread" java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:472)
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:219)
at
com.opera.core.systems.scope.stp.StpConnection.readRawVarint32(StpConnection.java:571)
at
com.opera.core.systems.scope.stp.StpConnection.readMessage(StpConnection.java:443)
at
com.opera.core.systems.scope.stp.StpConnection.canRead(StpConnection.java:265)
at
com.opera.core.systems.internal.SocketMonitor.processSelectionKey(SocketMonitor.java:212)
at
com.opera.core.systems.internal.SocketMonitor.pollSockets(SocketMonitor.java:134)
at
com.opera.core.systems.internal.SocketMonitor.poll(SocketMonitor.java:108)
at com.opera.core.systems.scope.stp.StpThread.run(StpThread.java:58)


Exception is thrown when DOM tree changes at different phases of
application loading and quite rarely not thrown at all.
Stack Trace is just printed to the std.err, no WebDriver methods are called
at that time by the client app.

After such exception any WebDriver methods invocation finish with timeout.

In case BufferUnderflowException does not appear during page loading, it is
possible to access the page source and web elements on it.
The page size is ~1.5 MB.

Tried to reproduce with Opera Dragonfly on the same environment and same
application:
Dragonfly obtains the page in most of the cases (sometimes it shows
Out-of-Memory error). So, seems that Dragonfly receives the DOM tree
correctly and since the remote device and application are the same, the
issue should be on the WebDriver side.

Selenium version: 2.31.0 or latest opera web driver code from master branch
on GitHub (3 Apr 13)

OS: Remote: Linux, Local: Windows 7
Browser: Opera
Browser version: Opera/9.80 (Linux mips; U; en) Presto/2.10.250
Version/11.60

Unfortunately it's not possible to share any part of the application.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

sele...@googlecode.com

unread,
May 13, 2013, 10:41:07 AM5/13/13
to selenium-develope...@googlegroups.com
Updates:
Cc: andreas.tolf.tolfsen
Labels: Browser-Opera

Comment #1 on issue 5439 by barancev: Exception in thread "stp-thread"
java.nio.BufferUnderflowException when page loads on remote Opera browser
http://code.google.com/p/selenium/issues/detail?id=5439

(No comment was entered for this change.)

sele...@googlecode.com

unread,
Nov 2, 2013, 1:28:20 PM11/2/13
to selenium-develope...@googlegroups.com
Updates:
Status: WontFix

Comment #2 on issue 5439 by barancev: Exception in thread "stp-thread"
java.nio.BufferUnderflowException when page loads on remote Opera browser
http://code.google.com/p/selenium/issues/detail?id=5439

If the issue is still actual please move it to the OperaDriver tracker [1]

[1] https://github.com/operasoftware/operadriver/issues
Reply all
Reply to author
Forward
0 new messages