Author Topic: Mekhq works.....then next morning, wont load...?? help please  (Read 2715 times)

mikemcmann

  • Recruit
  • *
  • Posts: 10
So i am playing a month long campaign with Mekhq (the new build) and everything is great.

Go to bed...get up, double click...nothing.  No flicker...no start up then error...no sounds....no task manager running....nothing. 

I reinstalled.  nothing

I updated java. nothing

I tried earlier versions and a 2015 version started up.

Did something change overnight? cosmic ray? weird auto update? etc..hehe..

Please help with ideas for an old codger that is not techy.

:)

Rince Wind

  • Sergeant
  • *
  • Posts: 170
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #1 on: 22 March 2018, 11:49:39 »
Have you restarted your PC?

mikemcmann

  • Recruit
  • *
  • Posts: 10
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #2 on: 22 March 2018, 11:55:34 »
like fifty times...soft restart...hard restart...punting....etc

mikemcmann

  • Recruit
  • *
  • Posts: 10
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #3 on: 22 March 2018, 12:24:51 »
super strange.

Megamek loads (from inside the mekhq folder)

But everytime i hover the mouse over the exe for mekhq it "clocks" a moment, then i double click and nothing. nothing at all.   it is SUPER frustrating.

I have uninstalled and reinstalled everything twice.

Any help would be delightful.

thanks

NickAragua

  • Master Sergeant
  • *
  • Posts: 368
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #4 on: 22 March 2018, 13:48:17 »
Look through your logs/mekhqalog.txt file, do a text search for "Exception". Or just post it somewhere so we can take a look at it.

One of the most common causes for crash on startup is a faulty installation of java. You need to make sure you have java 8 properly installed.

mikemcmann

  • Recruit
  • *
  • Posts: 10
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #5 on: 22 March 2018, 14:00:23 »
that is exactly what it was. thank you

I uninstalled ALL JAVA versions and ALL mekhq versions.  Then reinstalled ALL of them.  Then fresh restart.

VOILA!  worked.

Thanks for the help

Mike

mikemcmann

  • Recruit
  • *
  • Posts: 10
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #6 on: 24 March 2018, 10:52:23 »
So, i am quite a bit forlorn...

I did a complete reintall of everything.  Worked fine for a day.

NOW...the next day. SAME exact problem.    Double click on the exe for mekhq and nothing happens.

This is SUPER frustrating. 

Any ideas?  Sorry..I am super techy newb and am struggling. 

Sir Chaos

  • Captain
  • *
  • Posts: 3089
  • Artillery Fanboy
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #7 on: 24 March 2018, 15:41:31 »
So, i am quite a bit forlorn...

I did a complete reintall of everything.  Worked fine for a day.

NOW...the next day. SAME exact problem.    Double click on the exe for mekhq and nothing happens.

This is SUPER frustrating. 

Any ideas?  Sorry..I am super techy newb and am struggling.

Try reducing the amount of memory MHQ uses. It *MIGHT* be that your computer can´t allocate enough memory for the application, and decides to go sulk instead of running it.

I have no freaking clue why that would only be a problem after you shut down Windows and then re-boot it the next day - but I had the same thing happen some time ago when I got a new computer.

Open the "mekhq.l4j" configuration file and change the last line (should be "-xmx1200m") to something smaller, say "-xmx1024m".
"Artillery adds dignity to what would otherwise be a vulgar brawl."
-Frederick the Great

"Ultima Ratio Regis" ("The Last Resort of the King")
- Inscription on cannon barrel, 18th century

Hammer

  • Numerorum Malleo
  • Global Moderator
  • Major
  • *
  • Posts: 4134
    • MegaMek Website
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #8 on: 24 March 2018, 19:57:44 »
Are you running from the exe or the jar file?
MegaMek Projects Wiki
Bug Trackers
MegaMek Tracker
MekHQ Tracker
MegaMekLab Tracker
New Units and RAT's aren't added until after the 2 month release moratorium is passed.
Join the official MegaMek Discord

epic

  • Catalyst Demo Team
  • Lieutenant
  • *
  • Posts: 1137
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #9 on: 24 March 2018, 20:44:15 »
Try reducing the amount of memory MHQ uses. It *MIGHT* be that your computer can´t allocate enough memory for the application, and decides to go sulk instead of running it.

I have no freaking clue why that would only be a problem after you shut down Windows and then re-boot it the next day - but I had the same thing happen some time ago when I got a new computer.

Open the "mekhq.l4j" configuration file and change the last line (should be "-xmx1200m") to something smaller, say "-xmx1024m".

Yup, I have the same issue.  Sadly, I can't run mekhq past 1200m.  IIRC it has to do with whether running 32 bit or 64 bit. 
Agent # 703

Sir Chaos

  • Captain
  • *
  • Posts: 3089
  • Artillery Fanboy
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #10 on: 25 March 2018, 08:15:18 »
Yup, I have the same issue.  Sadly, I can't run mekhq past 1200m.  IIRC it has to do with whether running 32 bit or 64 bit.

My previous laptop, running Windows 8.1, could do 1536 MB with no problem; my current slightly faster one runnning Windows 10 can´t handle anything beyond 1200 MB for some reason. Although, weirdly enough, I don´t think it´s any slower than before with less memory.
"Artillery adds dignity to what would otherwise be a vulgar brawl."
-Frederick the Great

"Ultima Ratio Regis" ("The Last Resort of the King")
- Inscription on cannon barrel, 18th century

Jayof9s

  • Captain
  • *
  • Posts: 2419
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #11 on: 25 March 2018, 08:59:16 »
My previous laptop, running Windows 8.1, could do 1536 MB with no problem; my current slightly faster one runnning Windows 10 can´t handle anything beyond 1200 MB for some reason. Although, weirdly enough, I don´t think it´s any slower than before with less memory.

I'd double check that you didn't end up with 32-bit java. For whatever reason that seems to always be the first option when trying to download it and I've almost fallen into that trap a few times. 32-bit java gives you the same memory limitations as though you were using a 32-bit OS.

Edit: However, it is possible that if you have a similar amount of ram as before, W10 just uses more and as a result there's less that Java can be allocated.
« Last Edit: 25 March 2018, 09:00:57 by Jayof9s »

Sir Chaos

  • Captain
  • *
  • Posts: 3089
  • Artillery Fanboy
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #12 on: 25 March 2018, 11:04:13 »
I'd double check that you didn't end up with 32-bit java. For whatever reason that seems to always be the first option when trying to download it and I've almost fallen into that trap a few times. 32-bit java gives you the same memory limitations as though you were using a 32-bit OS.

Edit: However, it is possible that if you have a similar amount of ram as before, W10 just uses more and as a result there's less that Java can be allocated.

Well, I´m not an IT person, but the file I downloaded has "x64" in its name.
"Artillery adds dignity to what would otherwise be a vulgar brawl."
-Frederick the Great

"Ultima Ratio Regis" ("The Last Resort of the King")
- Inscription on cannon barrel, 18th century

mikemcmann

  • Recruit
  • *
  • Posts: 10
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #13 on: 25 March 2018, 17:54:41 »
So after a couple days of losing my mind.....

I discovered that windows had an update called "smart screen."  some sort of secondary virus/firewall thingy (I use Norton nominally). This was not allowing the exe to fire up.

I went through a bunch of help  videos on how to edit the registry to eliminate this from starting up and once I did that, it fired up.

Apparently there was some sort of setting that "allowed" it to load a few times, then locked it down as not trusted.  With that gone, and Norton trusting it, everything is running smooth.

Thanks for the ideas and sympathy ;)

Sir Chaos

  • Captain
  • *
  • Posts: 3089
  • Artillery Fanboy
Re: Mekhq works.....then next morning, wont load...?? help please
« Reply #14 on: 26 March 2018, 03:28:09 »
Well hooray for that! Glad to see you got it working.
"Artillery adds dignity to what would otherwise be a vulgar brawl."
-Frederick the Great

"Ultima Ratio Regis" ("The Last Resort of the King")
- Inscription on cannon barrel, 18th century

 

Register