[Fixed] 4.2.1 Unexepcted JIT Menu error

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

4.2.1 Unexepcted JIT Menu error

Postby Enjay » Sat Sep 28, 2019 8:59 am

I'm sorry that this may be too vague to be useful, however, I thought I'd record it JIC (just in case).

I was playing a game with a map loaded but, as far as I know, nothing in it has any ZScript (or even DECORATE) modifications.

I pressed Esc and the menu did come up, but there was also an error printed to the screen/console. I thought that I had a logfile running, so I didn't pay too much attntion to the exact working but, it turns out that I forgot to set up a log file.

The error was something like:

Unexpected JIT error cannot make native menu call.

It was something like that anyway. Certainly "unexpected JIT" was in there, as was "menu" and "native".

Like I said, sorry if it's too vague.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: 4.2.1 Unexepcted JIT Menu error

Postby Marisa Kirisame » Sun Sep 29, 2019 11:39 am

I think I've seen that happen a couple times, but it's almost impossible to reproduce intentionally.
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: 4.2.1 Unexepcted JIT Menu error

Postby Nash » Sun Sep 29, 2019 1:26 pm

Yeah I've had this randomly happen to me this year, probably less than 10 times. Absolutely zero clue what causes it or how to even reproduce it.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: 4.2.1 Unexepcted JIT Menu error

Postby dpJudas » Sun Sep 29, 2019 1:53 pm

I'm afraid we need the exact error message. Unexpected JIT error means that something threw an exception while it was compiling a script function to native code. The rest of the error is the most important part of the message. Filtering by "menu" or "native" lists way too many source lines.
dpJudas
 
 
 
Joined: 28 May 2016

Re: 4.2.1 Unexepcted JIT Menu error

Postby Enjay » Sun Sep 29, 2019 5:22 pm

It hasn't happened since. From what others have said it looks like it is a recurring thing, but a rare one. But I really can't remember more than what I posted. If it happens again, I'll be sure to make a proper record of the message.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: 4.2.1 Unexepcted JIT Menu error

Postby phantombeta » Mon Dec 02, 2019 7:35 pm

Moving this to the On Hold Bugs forum so it doesn't get lost or accidentally closed.
User avatar
phantombeta
In the meadow of sinful thoughts, every flower's a perfect one
 
Joined: 02 May 2013
Location: The United Soviet Socialist Dictatorship of Hueland
Discord: phantombeta#2461
Twitch ID: phantombeta_
Github ID: Doom2fan
Operating System: Windows 10/8.1/8 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: 4.2.1 Unexepcted JIT Menu error

Postby phantombeta » Wed Dec 04, 2019 3:48 pm

This should be fixed now. If it somehow still happens (it shouldn't), this bug report can be reopened.
User avatar
phantombeta
In the meadow of sinful thoughts, every flower's a perfect one
 
Joined: 02 May 2013
Location: The United Soviet Socialist Dictatorship of Hueland
Discord: phantombeta#2461
Twitch ID: phantombeta_
Github ID: Doom2fan
Operating System: Windows 10/8.1/8 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: 4.2.1 Unexepcted JIT Menu error

Postby Player701 » Wed Dec 04, 2019 3:50 pm

Is there a chance this may also fix the invalid instruction error? If the answer is yes, I can run some automated tests tonight to see if I get any more of those.
User avatar
Player701
 
Joined: 13 May 2009
Location: Russian Federation
Discord: Player701#8214
Operating System: Windows 10/8.1/8 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: 4.2.1 Unexepcted JIT Menu error

Postby phantombeta » Wed Dec 04, 2019 4:03 pm

Player701 wrote:Is there a chance this may also fix the invalid instruction error? If the answer is yes, I can run some automated tests tonight to see if I get any more of those.

Very unlikely, but you can test it anyway. This requires the specific case of a parameterless function that doesn't trigger the VTBL opcode ending up as the first opcode of a function, and the only case where it could cause that other bug is with calls to non-native functions, as native ones just spit out the error reported in this thread. (AFAIK the function called needs to be a parameterless static function to trigger this)
User avatar
phantombeta
In the meadow of sinful thoughts, every flower's a perfect one
 
Joined: 02 May 2013
Location: The United Soviet Socialist Dictatorship of Hueland
Discord: phantombeta#2461
Twitch ID: phantombeta_
Github ID: Doom2fan
Operating System: Windows 10/8.1/8 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: 4.2.1 Unexepcted JIT Menu error

Postby Player701 » Wed Dec 04, 2019 4:05 pm

OK, I'll leave it running and report tomorrow in the other thread.
User avatar
Player701
 
Joined: 13 May 2009
Location: Russian Federation
Discord: Player701#8214
Operating System: Windows 10/8.1/8 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest