forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trouble to launch code

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
quadrizo



Joined: 23 Aug 2007
Posts: 21

PostPosted: Thu Aug 23, 2007 10:38 pm    Post subject: trouble to launch code Reply with quote

Hi

i have a big trouble ... i code in C/C++, compil on cygwin and test and debug via usbhost and psplink (thanks tyranid ;)very usefull staff ) and all is ok (the game woks no bus error or exception)
but when i make a package ( make EBOOT.PBP) and i install them in PSP/GAME150/ and try to launch it ...trouble!!!... sometimes nothing is done : the psp spashscreen and a black screen after (need to hard reboot...) or few instructructions are launch and freeze ...(need to hard reboot...)

i don't think it's a installation trouble cause when i remove 99% of the code (a basic main and some macro :MODULE_info,....:) ) eboots works well ....
What is the difference beetwen a launch via psplink and directly in the XMB? memory ? thread? user kernel mode ?

how i can do to know why and where it's coming from ?

thanks all

Edit:
Any ideas ?
What exactly append beetwen the .elf and .pbp creation ?
Back to top
View user's profile Send private message
quadrizo



Joined: 23 Aug 2007
Posts: 21

PostPosted: Mon Aug 27, 2007 2:32 am    Post subject: Reply with quote

really no idea ??
tyranid ?
Back to top
View user's profile Send private message
AllSystemGo



Joined: 02 Jun 2007
Posts: 26

PostPosted: Mon Aug 27, 2007 6:50 am    Post subject: Reply with quote

Can you post some of your code??? BTW are you loading picture, image or sounds?? Maybe they are not in the correct folder!!

Please post some code I'll try to help you!

Cheers
Back to top
View user's profile Send private message
quadrizo



Joined: 23 Aug 2007
Posts: 21

PostPosted: Wed Aug 29, 2007 12:45 am    Post subject: Reply with quote

so i have succeed to make in place a exception handler before it crashs, so it appears that it's a problem with the function realloc when i charge the second texture (a .png charged in memory with libpng) with glTexture2d ...

Code:

   Image *tex=loadImage(filename);
   if (tex==NULL)
      return NULL;
   glEnable(GL_TEXTURE_2D);
   glGenTextures(1, &tex->Name);
   glPixelStorei(GL_PACK_ALIGNMENT,1);
   glPixelStorei(GL_UNPACK_ALIGNMENT,1);
   glBindTexture(GL_TEXTURE_2D, tex->Name);   
   glTexImage2D(GL_TEXTURE_2D,0,4,
      tex->textureWidth,tex->textureHeight,0,GL_RGBA,GL_UNSIGNED_BYTE,tex->data);


loadImage is the Lua function so without bugs normally ;) data are a pow of 2, aligned, under 512x512 ... i don't understand why glTexture2d can make a call to realloc with trouble ....

but i could always not explain why this bug appear in xmb mode and not with psplink ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group