netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Local Jnet - heap space

Open hosterbot opened this issue 8 years ago • 37 comments

as many who use win7 have many troubles like that at clojure.main$null_opt.invoke(main.clj:342)
at clojure.main$main.invokeStatic(main.clj:424)
at clojure.main$main.doInvoke(main.clj:387)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:702)
at clojure.main.main(main.java:37)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
at org.httpkit.client.HttpsRequest.(HttpsRequest.java:25)
at org.httpkit.client.HttpClient.exec(HttpClient.java:307)
at org.httpkit.client$request.invokeStatic(client.clj:195)
at org.httpkit.client$request.doInvoke(client.clj:99)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at org.httpkit.client$get.invokeStatic(client.clj:208)
at org.httpkit.client$get.doInvoke(client.clj:208)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at tasks.nrdb$download_card_image.invokeStatic(nrdb.clj:211)
at tasks.nrdb$download_card_image.invoke(nrdb.clj:207)
at clojure.lang.AFn.applyToHelper(AFn.java:156)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invokeStatic(core.clj:657)
at clojure.core$apply.invoke(core.clj:652)
at throttler.core$fn_throttler$fn__603$fn__604.doInvoke(core.clj:171)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.core.protocols$fn__7852.invokeStatic(protocols.clj:168)
at clojure.core.protocols$fn__7852.invoke(protocols.clj:124)
at clojure.core.protocols$fn__7807$G__7802__7816.invoke(protocols.clj:19)
at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:31)
when try to build local jnet its become half empty space

hosterbot avatar Mar 22 '18 07:03 hosterbot

that how its seems default

hosterbot avatar Mar 22 '18 07:03 hosterbot

default

hosterbot avatar Mar 22 '18 08:03 hosterbot

I don't think it's related to the heap space problem, but you don't need to run any of the coffee commands now. The web server has all moved into the clojure code.

jwarwick avatar Mar 22 '18 12:03 jwarwick

maybe there need development guide that up-to-date - i realy dont know what wrong about coffee - i just start try any suggestion its starts on lein feth

hosterbot avatar Mar 22 '18 17:03 hosterbot

i think problem is there default also there so much "deprecated" issue maybe need some downgrading

hosterbot avatar Mar 22 '18 17:03 hosterbot

This is the latest Windows specific developer instructions: https://github.com/mtgred/netrunner/wiki/Setting-up-Jnet-Development-on-Windows

From that last screenshot, it looks like the fetch command is the one running out of memory. You might try setting the flag that skips downloading card images and see if that helps: lein fetch --no-card-images

jwarwick avatar Mar 22 '18 18:03 jwarwick

Where are you seeing coffeescript referenced in the development guides?

nealterrell avatar Mar 22 '18 20:03 nealterrell

well next default

default

hosterbot avatar Mar 23 '18 00:03 hosterbot

Hmm. That might actually be a legitimate bug. I'm not sure if I've ever run fetch without any alt art cards. But I suspect your database is now populated with card info, so the UI should work if you run lein repl

jwarwick avatar Mar 23 '18 00:03 jwarwick

not work all same

hosterbot avatar Mar 23 '18 00:03 hosterbot

Do you get any error messages in lein repl? How about error messages in the browser console?

jwarwick avatar Mar 23 '18 01:03 jwarwick

its new record default

hosterbot avatar Mar 23 '18 02:03 hosterbot

nothing at all

hosterbot avatar Mar 23 '18 02:03 hosterbot

well i start over and.. not help

hosterbot avatar Mar 23 '18 04:03 hosterbot

That last pic is good! That's how it should look! Once you have the web.core=> prompt, load up http://localhost:1042/, and you should be golden!

NoahTheDuke avatar Mar 23 '18 11:03 NoahTheDuke

You might try clearing the browser cache - we do keep card information locally. But I agree with @NoahTheDuke , that last picture is what it should look like.

jwarwick avatar Mar 23 '18 13:03 jwarwick

Can you click the Sign Up button and make a new account? You shouldn't see any chat messages yet, since you haven't typed anything.

Do cards show up in the card browser?

jwarwick avatar Mar 23 '18 13:03 jwarwick

no its all was at start - there just blank index page

hosterbot avatar Mar 23 '18 22:03 hosterbot

sign up not work

hosterbot avatar Mar 23 '18 22:03 hosterbot

What error or warning messages are showing up in the browser javascript console?

jwarwick avatar Mar 23 '18 22:03 jwarwick