slimerjs icon indicating copy to clipboard operation
slimerjs copied to clipboard

Multiple instances crash

Open eddienkounou opened this issue 8 years ago • 6 comments

versions

  • SlimerJS: 0.9.6
  • Firefox: 50.0 / but I am using Xvfb
  • Operating system: Fedora 23

Steps to reproduce the issue

I am using SlimerJS to run my tests with Siesta like here http://bryntum.se/docs/siesta/#!/guide/siesta_automation

here is my personnal script /opt/lampp/htdocs/sencha/TP/MediaExtplorer13/tests/siesta/bin/slimerjs http://127.0.0.1/sencha/TP/MediaExtplorer13/tests/index.html --verbose --max-workers 3 --report-format junit --report-file builds/224/TestFLOSlimerJS_224.xml

And I want to run multiple instances simultaneously

Actual results:

but when I launch multiple instances, only one works. The other instances crash, displaying this message :

xvfb-run: line 171: kill: (171) - No such process

Expected results:

I'd like all the instances to run independently to one another. Please is there a way to achieve that ?

eddienkounou avatar Nov 30 '16 16:11 eddienkounou

is this bin/slimerjs is the original slimerjs bash script, or an other provided by siesta?

Please provide an example without Siesta, that shows the problem.

laurentj avatar Dec 01 '16 14:12 laurentj

Note that Slimerjs 0.9.6 is deprecated and has not been tested with Firefox 50.

laurentj avatar Dec 01 '16 14:12 laurentj

The bin/slimerjs I am using is the one provided by siesta.

I did try to use the last version of slimer available 0.10.2 I have downloaded the zip file and unzipped it in a local folder and I used it with this script

/home/enkounou/Téléchargements/slimerjs-0.10.2/slimerjs http://127.0.0.1/sencha/TP/MediaExtplorer13/tests/index.html --verbose --max-workers 3 --report-format junit --report-file builds/238/TestFLOSlimerJS_238.xml

but it didn't work. So I put the option --debug to look into it and I got this.

+ /home/enkounou/Téléchargements/slimerjs-0.10.2/slimerjs http://127.0.0.1/sencha/TP/MediaExtplorer13/tests/index.html --debug --verbose --max-workers 3 --report-format junit --report-file builds/236/TestFLOSlimerJS_236.xml MOZILLA_FIVE_HOME=/usr/lib64/firefox LD_LIBRARY_PATH=/usr/lib64/firefox:/usr/lib64/firefox/plugins:/usr/lib64/firefox FONTCONFIG_PATH=/etc/fonts:/usr/lib64/firefox/res/Xft DYLD_LIBRARY_PATH=/usr/lib64/firefox:/usr/lib64/firefox LIBRARY_PATH= SHLIB_PATH=/usr/lib64/firefox:/usr/lib64/firefox LIBPATH=/usr/lib64/firefox:/usr/lib64/firefox ADDON_PATH= MOZ_PROGRAM=/usr/lib64/firefox/firefox MOZ_TOOLKIT= moz_debug=1 moz_debugger= moz_debugger_args= which: no ddd in (/usr/local/jdk1.8.0_111/bin:/sbin:/usr/sbin:/bin:/usr/bin) /bin/gdb --args /usr/lib64/firefox/firefox -app /home/enkounou/Téléchargements/slimerjs-0.10.2/application.ini --profile /tmp/slimerjs.uulLrP2g -no-remote http://127.0.0.1/sencha/TP/MediaExtplorer13/tests/index.html --verbose --max-workers 3 --report-format junit --report-file builds/236/TestFLOSlimerJS_236.xml GNU gdb (GDB) Fedora 7.10.1-31.fc23 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib64/firefox/firefox...Reading symbols from /usr/lib64/firefox/firefox...(no debugging symbols found)...done. (no debugging symbols found)...done. Missing separate debuginfos, use: dnf debuginfo-install firefox-50.0-2.fc23.x86_64 (gdb) quit

Then I used this command to dowload whatever it needed dnf debuginfo-install firefox-50.0-2.fc23.x86_64

And I ran the script again. Didn't work, but I got this :

+ /home/enkounou/Téléchargements/slimerjs-0.10.2/slimerjs http://127.0.0.1/sencha/TP/MediaExtplorer13/tests/index.html --verbose --max-workers 3 --report-format junit --report-file builds/238/TestFLOSlimerJS_238.xml Gecko error: it seems /bin/firefox is not compatible with SlimerJS. See Gecko version compatibility. If version is correct, launch slimerjs with --debug=true to see Firefox error message

It looks like a compatibility issue but I checked again, I have firefox 50.0 it should be compatible with the 0.10.2 version of slimer .

and in --debug mode I got this now : + /home/enkounou/Téléchargements/slimerjs-0.10.2/slimerjs http://127.0.0.1/sencha/TP/MediaExtplorer13/tests/index.html --debug --verbose --max-workers 3 --report-format junit --report-file builds/239/TestFLOSlimerJS_239.xml MOZILLA_FIVE_HOME=/usr/lib64/firefox LD_LIBRARY_PATH=/usr/lib64/firefox:/usr/lib64/firefox/plugins:/usr/lib64/firefox FONTCONFIG_PATH=/etc/fonts:/usr/lib64/firefox/res/Xft DYLD_LIBRARY_PATH=/usr/lib64/firefox:/usr/lib64/firefox LIBRARY_PATH= SHLIB_PATH=/usr/lib64/firefox:/usr/lib64/firefox LIBPATH=/usr/lib64/firefox:/usr/lib64/firefox ADDON_PATH= MOZ_PROGRAM=/usr/lib64/firefox/firefox MOZ_TOOLKIT= moz_debug=1 moz_debugger= moz_debugger_args= which: no ddd in (/usr/local/jdk1.8.0_111/bin:/sbin:/usr/sbin:/bin:/usr/bin) /bin/gdb --args /usr/lib64/firefox/firefox -app /home/enkounou/Téléchargements/slimerjs-0.10.2/application.ini --profile /tmp/slimerjs.1fFdyhnb -no-remote http://127.0.0.1/sencha/TP/MediaExtplorer13/tests/index.html --verbose --max-workers 3 --report-format junit --report-file builds/239/TestFLOSlimerJS_239.xml GNU gdb (GDB) Fedora 7.10.1-31.fc23 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib64/firefox/firefox...Reading symbols from /usr/lib/debug/usr/lib64/firefox/firefox-bin.debug...done. done. (gdb) quit

I can't see where the problem is ?

eddienkounou avatar Dec 02 '16 08:12 eddienkounou

@eddienkounou use "xvfb-run -a" option

revanth98 avatar Dec 14 '16 16:12 revanth98

I'm not using Xvfb directly. So the option is useless.

eddienkounou avatar Dec 15 '16 09:12 eddienkounou

@revanth98 Have you tested how many instances can you run with "xvfb-run -a", let's say 10, 20, 50, 100, 1000 instances. the RAM has a lot to do with this. Would be nice to describe that information also, CPU, RAM, GPU, Disk, Network bandwidth.

Thank you.

corderogerardo avatar Dec 17 '16 16:12 corderogerardo