ultimecia

A ps1 emulator in c
Log | Files | Refs

MISFORTUNES (662B)


      1 -- GPU --
      2 22072024
      3 
      4 STUCK
      5 so my gp0_command somewhere in code gets invalidated and it doesn't contain
      6 a struct anymore so it has no len nor buffer fields and i get segmentation
      7 fault... the question is why
      8 
      9 UNSTUCK
     10 So the solution was (for now) to change CMD_BUFFER to non pointer. Sometime i need to see this kind of problem because this is not the first time I encounter pointer invalidation without any free.
     11 
     12 -- Global Variables --
     13 23102024
     14 
     15 Don't ever use global variables.
     16 I had REN_FB_set (fb was the global framebuffer) checking fb.data and not the framebuffer parameter
     17 that i passed in the new iteration of the function!!!! BE careful of global vars.
     18