About Store Forum Documentation Contact



Post Reply 
Game crashes after latest update 1.9.2011
Author Message
b1s Offline
Member

Post: #1
Game crashes after latest update 1.9.2011
After this latest update I'm getting a crash always on
Gui.update();
09-01-2011 08:31 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Game crashes after latest update 1.9.2011
http://www.esenthel.com/community/showth...p?tid=2862
Can you rebuild your project in VS?
If it won't help please attach the callstack from crash.
Does the problem occurs in any sdk tutorials?
09-01-2011 08:59 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #3
RE: Game crashes after latest update 1.9.2011
Build goes fine in all ways trough.. Also cleaned and did the regular routine.
PHP Code:
    Lucius.exe!EE::Property::MouseEdit()  + 0x293 bytes    C++
     
Lucius.exe!EE::GUI::update()  + 0x216 bytes    C++
>    
Lucius.exe!GameMenu::updateMenu()  Line 123    C++
     
Lucius.exe!updateMenu()  Line 39 0xc bytes    C++
     
Lucius.exe!EE::UpdateState()  + 0xa5 bytes    C++
     
Lucius.exe!EE::Application::loop()  + 0xcf bytes    C++
     
Lucius.exe!_WinMain@16()  + 0x22 bytes    C++
     
Lucius.exe!__tmainCRTStartup()  Line 263 0x1b bytes    C
     kernel32
.dll!7d4e7d2a() 
If I remove the GUI.update() it works fine. Except I have no GUI smile

Atleast some tutorial with GUI.update() work fine so it must be something on my end.. The thing is it was fine before the latest update.

I have no idea why this could happen. I tried updating on a two seperate machines and both are giving the same result right after update.

Might be that there is something wrong in our code but it did work before the update so I really don't have any clue where to look from.
(This post was last modified: 09-01-2011 10:40 AM by b1s.)
09-01-2011 10:06 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #4
RE: Game crashes after latest update 1.9.2011
What is your code for Property management?

do you modify any property.button.user, property.text.user? or any user?

when you store the Properties in Memb<Property> props;
do you call any props.remove, or just add?
09-01-2011 10:50 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #5
RE: Game crashes after latest update 1.9.2011
Quote:do you modify any property.button.user, property.text.user? or any user?
No. They are not touched anywhere.


Quote:when you store the Properties in Memb<Property> props;
do you call any props.remove, or just add?

I tried removing all the Memb and Memc stuff from the menu and there was only couple of them there anyway. Results did not change. Removing the Gui.update() Menu draws ok but does not update. I'm also having this same result anywhere else where I try to call Gui.update()
09-01-2011 11:41 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #6
RE: Game crashes after latest update 1.9.2011
all Gui Objects are const_mem_addr (they need to be stored in constant memory address, does your codes comply with this requirement?)

the only thing I've modified in last sdk release was add Property::_changed private member pointer to function

and setup Property::button.func, Property::text.func, Property::combobox.func, Property::checkbox.func at the creation of the Properties

func was set to custom function with "&property" as the user parameter (address of the property)

so what you should look into is the possibility that the 'user' parameter gets somehow modified (points to invalid address), or the property object get moved somehow, and their address has changed, or you have some other bug.

Do you call 'remove' for Memb<Property> ? it could change memory address of some elements. I'll change Memb to Memx for props for next sdk release.

Is your property management codes long? (if it's not long, you could send them to me, and I could make a quick look)
09-01-2011 11:49 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #7
RE: Game crashes after latest update 1.9.2011
Yeah they are pretty long and separated on several files.
I'll try to look into to it. I'm sure i will be able to pinpoint the exact area of error more accurately now that I know what the possibilities are.
09-01-2011 11:54 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #8
RE: Game crashes after latest update 1.9.2011
Can you elaborate a bit. If I would want to create 20x progress bars. How would you do this?

Quote:all Gui Objects are const_mem_addr (they need to be stored in constant memory address, does your codes comply with this requirement?)

Has this been always the case?

I'm guessing that here is the problem mostly and it is going to need a lot of redoing..
(This post was last modified: 09-01-2011 06:13 PM by b1s.)
09-01-2011 06:13 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #9
RE: Game crashes after latest update 1.9.2011
yes it was always like that

you can do:

Progress p[20];
or
Memx<Progress> p; FREPA(20)p.New().create

you could use Mems, Memc too, but only if you'd allocate all memory up-front:
Mems<Progress> p; p.setNum(20); FREPAO(p).create
(but I don't recommend this, easy to make a mistake)

Memx is most recommended
09-01-2011 06:55 PM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #10
RE: Game crashes after latest update 1.9.2011
Most of our stuff is done like Progress p[20];
If that is not the problem then I'm not really sure. But more and more it seems like its somehow related to these sort lines.
09-01-2011 07:18 PM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #11
RE: Game crashes after latest update 1.9.2011
The new update did not fix the problem :(
09-02-2011 07:14 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #12
RE: Game crashes after latest update 1.9.2011
Probably you have bug in your codes
EE editor works. I've tested.some tutorials. I've tested ineisis all work no problem
09-02-2011 10:21 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #13
RE: Game crashes after latest update 1.9.2011
Yeah something has changed.. I can still get it work if I use 2 updated back.
Ill probably have re-write all the gui stuff.
09-02-2011 11:05 AM
Find all posts by this user Quote this message in a reply
Post Reply