Messaggio
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Cerca nel sito

Il Sondaggione!!

Inizia il 2024: come sarà questo nuovo anno a livello di diffusione editoriale dei LG?

Errore elaborazione grafo

Errore elaborazione grafo

Buonasera, ho finito di giocare e mappare AD&D 6 Il signore di Ravenloft.
La funzione di elaborazione grafo ha funzionato benissimo fino ai 320 paragrafi circa mappati su 344.
Quando ho provato ad avere il grafo finale con tutti i 344 paragrafi, il programma mi ha restituito questo errore (dal file di log):

[ERROR] 23:28:04 com.lgc.view.actions.ActionCommon.logPluginError():143 - error source entityId=-1 exception=null
[ERROR] 23:28:04 com.lgc.view.AppView.showErrorMessage():2658 - Errore: guru.nidi.graphviz.engine.GraphvizException: Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 16777216, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0
Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 16777216, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0

E ovviamente non ho idea di cosa significhi.
Uso windows 10 x64 con java versione 1.8.0_201.

Non so se può essere un informazione utile, ma alcuni paragrafi hanno alti numeri di link in entrata e/o uscita (fino a 16-17 link). E' un vero groviglio.
Grazie in anticipo per ogni aiuto!

Ultima modifica di: Teramath
Dic-21-20 23:15:39

Teramath
Novizio
ranks
useravatar
Offline
22 Messaggi
Info utenti nei messaggi
Administrator has disabled public posting

Re: Errore elaborazione grafo

Ciao,
è un problema di memoria, la complessità del grafo è superiore a quella gestibile con i parametri standard con cui gira LGC.
Risolvere questi casi non è complicatissimo...

1) puoi usare la versione esterna della libreria Graphviz, una parte della guida è questa: http://www.matteoporopat.com/guida-libr … z/#windows e nelle Preferenze di LGC devi attivare la voce "usa libreria esterna"

2) aumentare la memoria a disposizione di LGC:
nella cartella C:\Program Files\LGC3 devi modificare il file lgc3.vmoptions sostituendo il valore -Xmx1024m con il valore -Xmx2048m e poi avviare LGC3

Matteo
Autore dell'Editor per la narrativa interattiva LibroGameCreator 3

Shaman
Avatar dello Shuffle
Amministratore
useravatar
Offline
1914 Messaggi
Info utenti nei messaggi
Administrator has disabled public posting

Re: Errore elaborazione grafo

Ho tentato inizialmente la seconda soluzione, ma dopo aver cambiato il file lgc3.vmoptions con blocco note, LGC non si avviava.

La prima soluzione invece ha funzionato.
Grazie, gentilissimo!

Teramath
Novizio
ranks
useravatar
Offline
22 Messaggi
Info utenti nei messaggi
Administrator has disabled public posting

Info Forum

Statistiche Forum:
 
Totale Discussioni:
5725
Totale Sondaggi:
100
Totale Messaggi:
153514
Totale Messaggi Oggi:
16
Info Utenti:
 
Totale Utenti:
9713
Ultimo Utente Registrato:
Dracomaca