Italian B4J - Help ... Win10+Java8 ... Java Crash

marco.canta

Active Member
Licensed User
Longtime User
Ciao, spero qualcuno possa aiutarmi, ho due programmi fatti da me con B4J che gestiscono un database mySQL, i programmi sono testati e funzionano senza errori (ho inserito anche tutte le procedure per evidenziare eventuali errori del programma).
Se avvio il programma su Win7 Pro il programma funziona perfettamente , il programma è in esecuzione 24 ore su 24 ...
Se avvio il programma su un PC con Win10 pro ultimo aggiornamento ... lavora per qualche ora poi si inchioda e devo chiuderlo e riavvialo.
Quado si blocca genera un file di errore ...


B4X:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6bdb484e, pid=9756, tid=9968
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) Client VM (25.60-b23 mixed mode windows-x86 )
# Problematic frame:
# V  [jvm.dll+0xe484e]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# 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 (0x1bfad000):  JavaThread "Thread-4" daemon [_thread_in_vm, id=9968, stack(0x1eb60000,0x1ebb0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x1c387880, ECX=0x1bfad000, EDX=0x0000009f
ESP=0x1ebaf21c, EBP=0x1ebaf238, ESI=0x00000000, EDI=0x1bfad000
EIP=0x6bdb484e, EFLAGS=0x00010246

Top of Stack: (sp=0x1ebaf21c)
0x1ebaf21c:   1c38788c 1bfad140 1c387880 1bfad000
0x1ebaf22c:   1bd6265c 0000009f 6bfacd50 00000000
0x1ebaf23c:   640018fc 1bfad140 00000000 00000000
0x1ebaf24c:   00000002 1ebaf278 1ebaf2b8 00000000
0x1ebaf25c:   09c70e00 1ebaf260 00000000 00000000
0x1ebaf26c:   00000734 00000000 00000000 00000000
0x1ebaf27c:   00000000 1bfad000 02787c01 1bf62478
0x1ebaf28c:   00000000 0a8fb1a0 1bfad000 1ebaf2c8

Instructions: (pc=0x6bdb484e)
0x6bdb482e:   c4 08 83 7f 04 00 89 7d f0 c7 45 f4 00 00 00 00
0x6bdb483e:   74 08 8d 4d f0 e8 f8 0f 0c 00 8b 75 10 8b 45 0c
0x6bdb484e:   8b 10 85 f6 78 32 8b 45 14 85 c0 78 2b 8d 0c 06
0x6bdb485e:   3b 4a 08 77 23 85 c0 7e 3b 8b 4a 04 8b 49 04 83


Register to memory mapping:

EAX=0x00000000 is an unknown value
EBX=0x1c387880 is an unknown value
ECX=0x1bfad000 is a thread
EDX=0x0000009f is an unknown value
ESP=0x1ebaf21c is pointing into the stack for thread: 0x1bfad000
EBP=0x1ebaf238 is pointing into the stack for thread: 0x1bfad000
ESI=0x00000000 is an unknown value
EDI=0x1bfad000 is a thread


Stack: [0x1eb60000,0x1ebb0000],  sp=0x1ebaf21c,  free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xe484e]
C  [jSSC-2.8_x86.dll+0x18fc]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 1196  jssc.SerialNativeInterface.getBuffersBytesCount(J)[I (0 bytes) @ 0x0277461d [0x027745d0+0x4d]
J 1228 C1 anywheresoftware.b4j.serial.Serial$1.read([BII)I (92 bytes) @ 0x0277dd88 [0x0277dd40+0x48]
j  anywheresoftware.b4j.serial.Serial$1.read([B)I+5
j  anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run()V+18
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub


Cosa succede ? Chi mi può aiutare ?

Grazie
Marco
 

LucaMs

Expert
Licensed User
Longtime User
Non è chiarissimo cosa installi, visto che dici di aver creato DUE programmi b4j ma poi quando parli dell'avvio parli ogni volta di UN programma.

Comunque, a naso potrebbe essere la versione di java installata sulla macchina sulla quale UNO dei tuoi jar va in crash; prova ad aggiornarla (non alle ultimissime, non ho approfondito ma ho letto al volo di problemi con la 11, mi pare; a me funziona bene la 1.8.0.66)
 

marco.canta

Active Member
Licensed User
Longtime User
Grazie Luca, cerco di essere più chiaro ...
Il programma è uno, il cui processo è quello di leggere ogni 500ms un mySQL e non viene mai chiuso.

Il programma ha sempre funzionato su Win7 con Java 1.8.0.151 ora il cliente lo ha installato su Win10 con ultimi aggiornamenti e Java 1.8.0.171 (se ricordo bene)
Sta di fatto che il programma ogni 6 ore circa di blocca e genera il file errore. Devo chiuderlo e riavviarlo e per altre 6 ore funziona

??
 

moore_it

Well-Known Member
Licensed User
Longtime User
Hai provato a lanciarlo con il comado java -jar e poi quando si blocca andare a vedere il log ?
 

LucaMs

Expert
Licensed User
Longtime User
Potrebbe esser qualcosa di particolare sulla macchina del cliente, come l'avvio di backup, scan del sistema...!

Se te lo consente, guarda le sue operazioni programmate.
 

udg

Expert
Licensed User
Longtime User
Altra possibilità: RAM difettosa sul W10. Man mano che il programma usa memoria, arriva al punto difettato e salta.
Eventualmente potresti monitorare l'occupazione di RAM e notare s enelle sei ore cresce sempre e fino a che punto.

In coda al messaggio si legge anche:
anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run()V+18

un riferimento che con l'accesso a MySql non dovrebbe avere nulla a che vedere. da cui, o non è indicativo di cosa stia succedendo in quel momento oppure l'errore è causato da altro di cui fin qui non si è detto.
 
Top