raspbiano
Posts: 2
Joined: Fri Oct 28, 2016 12:05 pm

Java + RPi3 + selenium 3.0.1 + iceweasel 38 (display error)

Fri Oct 28, 2016 12:37 pm

Hi all, Ive been searching for a solution for some days and I couldnt find any. I apologize in advance if this is a silly question (Im kind of new to linux). Thank everyone who could help me.

First of all, this is my environment:
- OS release: Raspbian GNU/Linux 8 (jessie)
- Firefox (iceweasel) version: 38.8.0esr-1~deb8u1
- Selenium version: Either selenium-server-standalone-2.53.1.jar or selenium-server-standalone-3.0.1.jar

Brief description: Incompatible versions of iceweasel (38.8.0esr-1~deb8u1) and selenium(2.53.1 / 3.0.1) + problems with display

In the past I could run a program (web crawling) using selenium 2.53.1 and iceweasel (dont know the version) so I made another program reusing some parts --> This second program failed and I couldnt understand why so I checked again my first program and... it failed! I found out there's an incompatibility between latest versions of firefox (38) and selenium < 3.0 so I guessed I was facing a problem of compatibility between versions.

I tried to update selenium to 3.0.1 and use geckodriver and I made it work on my laptop (windows) but it failed on my RPi3
(process:3177): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Error: no display specified


I googled and try to use Xvfb, basically add to my .sh
sudo Xvfb :1 -screen 0 1024x768x24 &
export DISPLAY=":1"



but the result was another error:
(process:3314): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Xlib: extension "RANDR" missing on display ":1".



So far, seems for me I have 3 options:
- Keep latest selenium and solve the display error --> The options I found for the "RANDR" error didnt work and I dont know what to do. Could anyone help?
- Go back to selenium 2.53.1 and downgrade iceweasel. My problem here is I cant find older versions of iceweasel anywhere. This is probably very easy but Im kind of new to linux
- Installing another browser --> any suggestions? (chromium seems to throw some errors too)

Thanks and sorry for a so long message but wanted to make everything clear

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Java + RPi3 + selenium 3.0.1 + iceweasel 38 (display err

Fri Oct 28, 2016 1:33 pm

Regards Iceweasel / Firefox it is out of date, latest version is firefox-esr 45.4.0, to update Raspbian Jessie:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
https://lwn.net/Articles/676799
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

raspbiano
Posts: 2
Joined: Fri Oct 28, 2016 12:05 pm

Re: Java + RPi3 + selenium 3.0.1 + iceweasel 38 (display err

Fri Oct 28, 2016 5:48 pm

thanks, it didnt fully fix my problem but it helped. Gonna continue investigating.

Return to “Java”