Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.3 - NEW RELEASE: Ardor 2.0.1e TestNet IS LAUNCHED!

Pages: 1 [2]  All

Author Topic: NRS v1.11.2  (Read 5244 times)

Klokan

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 267
    • View Profile
  • Karma: +27/-5
Re: NRS v1.11.2
January 25, 2017, 03:49:12 pm

I have some strange problem with NRS 1.11.2 on newest linux kernel (4.9.5.200-fc25), evnt. newest OpenJDK - after compiling and ./run.sh, it crashes within 20-30 sec with this error :

Code: [Select]
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fd69bbdb711, pid=16270, tid=0x00007fd60654c700
#
# JRE version: OpenJDK Runtime Environment (8.0_111-b16) (build 1.8.0_111-b16)
# Java VM: OpenJDK 64-Bit Server VM (25.111-b16 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so.6+0x14f711]  __memmove_avx_unaligned_erms+0x211
#
# Core dump written. Default location: /home/nextcoin/bin/nxt/core or core.16270
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x00007fd62c01e800):  JavaThread "qtp2125238280-54" [_thread_in_vm, id=16357, stack(0x00007fd60644c000,0x00007fd6065
4d000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000000

Registers:
RAX=0x00000005cc5e2518, RBX=0x00007fd62c01e800, RCX=0x00000000c0100800, RDX=0x00000000400ed788
RSP=0x00007fd60654a248, RBP=0x00007fd60654a2c0, RSI=0x0000000000000000, RDI=0x00000005cc5e2518
R8 =0x0000000000000000, R9 =0x00007fd69ba65d81, R10=0x00007fd694016df0, R11=0x0000000000000206
R12=0x00000000400ed788, R13=0x0000000000000000, R14=0x00007fd640120330, R15=0x00007fd62c01ea58
RIP=0x00007fd69bbdb711, EFLAGS=0x0000000000010206, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e
.......

I'm not sure, if this is related to 4.9.X kernel, or to newest OpenJDK (1.8.0.111-5.b16). In any ase, in previous instance (kernels 4.8.14, 4.8.15, 4.8.16 && OpenJDK 1.8.0.111-4.b16) everything worked fine (without any crashes). With NRS 1.11.2 as well, of course.

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1576
    • View Profile
  • Karma: +789/-81
Re: NRS v1.11.2
January 25, 2017, 07:13:33 pm

I am on kernel 4.9.5 compiled from the kernel.org source, and openJDK 1.8.0_111-8u111-b14-2~bpo8+1-b14, works fine here.
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
xmpp: jeanlucpicard@jabber.ccc.de EAFA3A2E 33B21A52 370CE6D4 35A4B325 3ED22061
NXT-X4LF-9A4G-WN9Z-2R322

Klokan

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 267
    • View Profile
  • Karma: +27/-5
Re: NRS v1.11.2
January 25, 2017, 07:31:42 pm

I am on kernel 4.9.5 compiled from the kernel.org source, and openJDK 1.8.0_111-8u111-b14-2~bpo8+1-b14, works fine here.

I used Fedora's style `dnf downgrade' option, for downgrading from 1.8.0.111-5.b16 to 1.8.0.111-1.b16 version (of OpenJDK). Nothing happened, still crashes, even if I'm trying the clean install of NRS 1.11.2 (and without ./compile.sh before ./run.sh). I'll try switch back to 4.8.X kernels later...

Klokan

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 267
    • View Profile
  • Karma: +27/-5
Re: NRS v1.11.2
January 25, 2017, 08:44:06 pm

I am on kernel 4.9.5 compiled from the kernel.org source, and openJDK 1.8.0_111-8u111-b14-2~bpo8+1-b14, works fine here.

I used Fedora's style `dnf downgrade' option, for downgrading from 1.8.0.111-5.b16 to 1.8.0.111-1.b16 version (of OpenJDK). Nothing happened, still crashes, even if I'm trying the clean install of NRS 1.11.2 (and without ./compile.sh before ./run.sh). I'll try switch back to 4.8.X kernels later...

Found the problem, this is the case (at least on Fedora, probably on Ubuntu as well) :

https://bugzilla.redhat.com/show_bug.cgi?id=1415137
https://bodhi.fedoraproject.org/updates/FEDORA-2017-4076cf8494

alpho2k

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 43
    • View Profile
  • Karma: +15/-1
Re: NRS v1.11.2
February 01, 2017, 01:09:07 am

Will there be updated documentation for plugins? The 'hello world' and 'dividend_payout' plugins no longer work. The wiki is outdated.

Regarding https://nxtwiki.org/wiki/Plugins can you check which of the steps in the process has failed?

Looking in my nohup output, there is nothing listed after searching for 'plugin', but here is a screen cap of my Plugins page. I have plugins enabled.
I haven't seen where there would be a file missing, and if so, what file requirement has been added since 1.10.x.



Is there a solution to that problem? I need to use the 'dividend_payout' plugins. I had to use 1.10.3 to make it work.

Thank you very much,
« Last Edit: February 01, 2017, 01:14:47 am by alpho2k »
BitalizeTeam Member

Blitzcoin The Viral Exchange

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1576
    • View Profile
  • Karma: +789/-81
Re: NRS v1.11.2
February 01, 2017, 01:22:03 pm

The missing plugin files error is a known bug in 1.11.2, it will be fixed in the next release. The error happens because we use a "HEAD" request to check for those files, but this request type was disabled server-side few versions ago. The fix is to modify html/www/js/nrs.plugins.js line 123 to use GET instead of HEAD:

Code: [Select]
    for (i=0; i<mandatoryFiles.length; i++) {
$.ajax({
    url: mandatoryFiles[i],
    type: 'GET',
                cache: false,
    success: function(data) {
    //nothing to do
    },
    error: function(data) {
                    NRS.logConsole(data.statusText + " error loading plugin file " + this.url);
    notFound = this.url;
    }
});
    }
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
xmpp: jeanlucpicard@jabber.ccc.de EAFA3A2E 33B21A52 370CE6D4 35A4B325 3ED22061
NXT-X4LF-9A4G-WN9Z-2R322

alpho2k

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 43
    • View Profile
  • Karma: +15/-1
Re: NRS v1.11.2
February 03, 2017, 08:59:13 pm

The missing plugin files error is a known bug in 1.11.2, it will be fixed in the next release. The error happens because we use a "HEAD" request to check for those files, but this request type was disabled server-side few versions ago. The fix is to modify html/www/js/nrs.plugins.js line 123 to use GET instead of HEAD:

Code: [Select]
    for (i=0; i<mandatoryFiles.length; i++) {
$.ajax({
    url: mandatoryFiles[i],
    type: 'GET',
                cache: false,
    success: function(data) {
    //nothing to do
    },
    error: function(data) {
                    NRS.logConsole(data.statusText + " error loading plugin file " + this.url);
    notFound = this.url;
    }
});
    }

Thank you very much Jean-Luc for your help!
BitalizeTeam Member

Blitzcoin The Viral Exchange
Pages: 1 [2]  All