Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 805 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 9 1 2 3 4 5 6 7 8 9
Crash! With a view entity #438172
03/09/14 00:24
03/09/14 00:24
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
Oh man. So this is gonna be a nightmare. Take a deep breath, and we'll be fine.


Alright! So I work on Dungeon Deities, which is a (relatively) big project. It got lots of panels, bitmaps, and view entities, among them this one!

Code:
ENTITY* orblock = {
	pan = -90;
	x = 100;
	z = 10;
	scale_x = 2;
	scale_y = 2;
	scale_z = 2;
	flags = NOFILTER;
	type = "Models\\lock.mdl";
	layer = 10000;
}



Including that makes acknex crash during compilation. Like so:



... but only sometimes.
If it crashes, the message is always the same:

Quote:

Problem signature:
Problem Event Name: APPCRASH
Application Name: acknex.exe
Application Version: 0.0.0.0
Application Timestamp: 4c1231af
Fault Module Name: GDI32.dll
Fault Module Version: 6.1.7601.18275
Fault Module Timestamp: 524ccfcc
Exception Code: c0000090
Exception Offset: 00017f4a
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789


Which, wise men tell me, means there's a FLT_INVALID_OPERATION, perhaps a division by zero.
The acklog:

Quote:
DI Microsoft PC-joystick driver 5 axes 10 buttons initialized
Mouse found
Joystick found
Speakers (High Definition Audio Device) opened
AMD Radeon HD 5700 Series pure T&L device 1ff9 detected
D3D device AMD Radeon HD 5700 Series 1ff9 selected.
GSCrypt.dll opened
GSHTTP.dll opened
Compiling MAIN.C - [Esc] to abort.......
PATH E:\Gstudio8\code\.............................................................................................................
debugline: function not found
isActiveOrb: function not found...............................................................................................................
PATH Models\


(and it ends there)
Yeah, I directly give the path to the file in the filename... But it was never a problem before.

Anyway, if it WORKS, the acklog looks like this:

Quote:

DI Microsoft PC-joystick driver 5 axes 10 buttons initialized
Mouse found
Joystick found
Speakers (High Definition Audio Device) opened
AMD Radeon HD 5700 Series pure T&L device 1ff9 detected
D3D device AMD Radeon HD 5700 Series 1ff9 selected.
GSCrypt.dll opened
GSHTTP.dll opened
Compiling MAIN.C - [Esc] to abort.......
PATH E:\Gstudio8\code\.............................................................................................................
debugline: function not found
isActiveOrb: function not found...............................................................................................................
PATH Models\
PATH Models\
PATH Sprites\.. 8.953 sec
Running MAIN.C.
112 objects
Main started at 10.056
pause_game_at_alt_tab_startup started
normalkeyassignment_startup started
D3D_Init Window: 720x480 -> Window: 1x720x480x32
Video memory found: 2806 MB
Main loop at 10.141....
1st frame with 2806 MB at 10.143
D3D_Resize Window: 800x600 -> Window: 1x800x600x32
LevelInit at 10.248 0 lmaps 0 textures...ok
LevelReady at 10.249
Normal exit at 11.685
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,nexus..ok
A8 Engine - Commercial Edition V8.40.1 - Aug 7 2012
(c) Conitec - www.3dgamestudio.com
Registered to: Johannes Martin
Close window at 11.733



Sometimes it works fine. Compiles, and the game runs as it should.
But not always! Sometimes, it crashes. Inbetween those, no changes were made.

Since it only happens sporadically, this is difficult to test, so keep that in mind with the following.

Anyway, I've also tried publishing the whole thing. The resulting exe also crashes - sometimes. It used to crash pretty much everytime, but now I can't get it to crash (and on a different computer, it never crashed, but in fairness, I've only tried about three or four times). The error for that told me this:

Quote:

Problem signature:
Problem Event Name: APPCRASH
Application Name: main.exe
Application Version: 0.0.0.0
Application Timestamp: 4c1231af
Fault Module Name: acknex.dll
Fault Module Version: 8.3.0.5
Fault Module Timestamp: 5020deb6
Exception Code: c0000090
Exception Offset: 000eda99
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789


which, as you will notice, has the same Exception Code (c0000090), and the same entries for "Additional information".

AS you can see from the screenshot, the whole thing crashed before the "xx seconds" message, before the amount of objects are stated, and before my actual script is started. So maybe it's the pre-processor. So I removed that ENTITY*-definition, and replaced it with a corresponding ent_createlayer-call.
If I run that, it crashes (when it crashes) AFTER compilation (there IS a "xx seconds" message, then a black window for a split second, then a crash).
I've now put "waits" in my panel/bitmap/view-entity initializations, and SO FAR it hasn't crashed. But I sure don't feel particulary happy and safe with THAT arrangement.


So maybe it's the model, right? Maybe it's corrupt. I've tried replacing it, and it seems that with some models - used in other view entity definitions that worked fine so far - there are no crashes. But with others (not used in a view definition) that work fine as level entities (and have for a long time before), it crashes again.
Anyway, I have uploaded the model for your consideration here.



I humbly ask for your assistance, because quite frankly, I'm lost.
I unfortunately couldn't create a simple program that also crashes (I mean, I can't even get the main game to reliably crash). I suspect it may have something to do with the amount of objects listed for the pre-processor, but this is really just a wild guess.


Help me, jcl.

Help. : (



Oh, yeah, before I forget. 8.45 also crashes.



I'm using two external, old DLLs from A6 times that I do not wish to replace, as they're quite central to the project. Unless you're pretty certain they're at fault -- and they have been working fine for years in this project (yes, even in A8) -- I'd rather not replace them.


Last edited by Error014; 03/09/14 00:27. Reason: 8.45 extra info

Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: Crash! With a view entity [Re: Error014] #438173
03/09/14 01:52
03/09/14 01:52
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Oh noes!
Have you tried turning it off and on again (read: in which mode do you start the program when it crashes, test or debug run)?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Crash! With a view entity [Re: Superku] #438183
03/09/14 11:06
03/09/14 11:06
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
It's a "Test Run". I haven't tried it in Debug Run - as soon as it's crashing again (which, thankfully, it doesn't do right now - why is anyone's guess), I'll check out the Debug run!


Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: Crash! With a view entity [Re: Error014] #438185
03/09/14 11:41
03/09/14 11:41
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Does a #define PRAGMA_ZERO resolve the issue?

Does replacing Models\\lock.mdl with an arbitray dummy model fix the issue?


Always learn from history, to be sure you make the same mistakes again...
Re: Crash! With a view entity [Re: Uhrwerk] #438235
03/10/14 18:54
03/10/14 18:54
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
If you got a model that randomly crashes, the first thing to do is loading it in MED, and saving it again. That can often repair a damaged file.

Crashes that do not happen always, but depend on random memory content, are hard to find. But from what you've written, it seems that you already traced it down pretty well to that particular model.

Re: Crash! With a view entity [Re: jcl] #438287
03/11/14 16:35
03/11/14 16:35
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
Thanks for all your replies!

I've tried resaving the model (both in MDL7 and MDL5-formats), with no results. Also, replacing it with a different one sometimes worked, and in other times did not.

Right now, it hasn't crashed in a while, so possibly something I've done magically "fixed" it - perhaps turning the direct view-entity definition into an "ent_createlayer"-call, perhaps distributing the workload in the first frame somewhat. I don't exactly feel super-comfortable with it, but if it doesn't crash, I can't really work on investigating the bug, either.

If it crashes again, I'll make sure to try out PRAGMA_ZERO.

Thanks again for all the help. I'll be back if it stops working again.


Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: Crash! With a view entity [Re: Error014] #438414
03/13/14 20:36
03/13/14 20:36
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
So I have been working on my laptop (instead of my desktop computer) for the past few days. And behold, it crashed.

But not a complete super-crash as before - instead, it says...



"LOCK.MDL: Bad file format."

So yeah, I've tried other models, and as I've said, it worked sometimes, but sometimes it didn't.
My current suspicion is that the models that don't work have all been saved on my desktop computer since a recent reinstall of windows.

So perhaps, my MED-installation on this computer is faulty, or for some reason creates faulty files.
jcl, can a faulty model really crash the pre-compiler as shown in the first screenshot in this thread?

I'll investigate a bit more.

Thank you all for your help. Uhrwerk, I'll try the PRAGMA_ZERO as soon as I get it to reliably crash again.


Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: Crash! With a view entity [Re: Error014] #438415
03/13/14 20:49
03/13/14 20:49
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
The dots in the compiler window mean two things: At first your script gets compiled and "checked" for syntax errors which probably everyone is aware of. Then however without notice at some point the "..." dots have another meaning, that is the engine is loading and creating engine objects such as SOUND files or apparently view entities.

I don't know but could it be that some other previous file is damaged which then leads to loading errors on subsequent files?

I once had a really weird acknex crash (I think it was of the "acknex.exe has stopped working" type) where indeed the reason was a faulty texture/ bitmap, it's not that uncommon (especially when you consider that MED literally destroys some files on saving if you don't treat it with care - for example on some "unsupported" undo operations the model gets messed up and when you then save it, all hope is lost).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Crash! With a view entity [Re: Superku] #438418
03/13/14 21:28
03/13/14 21:28
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
I see.. yeah, that would make sense then. I don't really look forward to going through all models (let's assume that my images that were made in MS Paint or Photoshop are fine - at least for now) that get loaded, but since all this only started after I've added the "lock.mdl", and given that it crashed relatively often since then, it's probably save to assume that this model is indeed at fault.
But in any case, I now have a better idea of where to look.

Reloading the model into MED and just saving it again didn't change it at all - I've checked it byte-for-byte. This is true when done on other computers, as well (so maybe it's not a faulty MED installation).

I've just re-imported the 3ds and saved it new.
I'll be back if it crashes again.


I think it'd be great if, at least in the development version, the point of loading and creating objects would be indicating somehow - maybe with a ; or a _ or whatever. This would have saved me some time.




I also must say, I really was afraid that after posting this, this thread would die a quiet death. It's great to see that you guys are there to help! Thanks again. laugh


Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: Crash! With a view entity [Re: Error014] #438420
03/13/14 21:33
03/13/14 21:33
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Originally Posted By: Error014
So yeah, I've tried other models, and as I've said, it worked sometimes, but sometimes it didn't.

Can you elaborate a little more on this? You have indeed mentioned this multiple times but I still don't know what the results are (esp. how and when does it crash/ not work then?).

I wouldn't use the seemingly problematic lock model at all anymore until I'm sure it is the reason.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Page 1 of 9 1 2 3 4 5 6 7 8 9

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1