Arua fairy crash

I'm sure there will be a TON of bugs discovered. List them here and we will cross them off the list as they are fixed.

Arua fairy crash

Postby adosorken on Thu Aug 25, 2016 10:50 pm

When I hit level 2, I got a notification from the Fairy of Arua. Clicking on it made the program crash. Perhaps another missing resource?

Image
Evolve this!!
User avatar
adosorken
Smoulie
Smoulie
 
Posts: 61
Joined: Sat Aug 20, 2016 3:29 pm
Location: Windsor, VT

Re: Arua fairy crash

Postby adosorken on Fri Aug 26, 2016 2:24 am

This is the only information that the client log returns:

Thu Aug 25 21:22:41 2016 - Argument is Invalid @CImageRes::GetTexture(). Returning NULL.

Thu Aug 25 21:22:41 2016 - Argument is Invalid @CImageRes::GetSprite(). Returning NULL.
Evolve this!!
User avatar
adosorken
Smoulie
Smoulie
 
Posts: 61
Joined: Sat Aug 20, 2016 3:29 pm
Location: Windsor, VT

Re: Arua fairy crash

Postby PurpleYouko on Fri Aug 26, 2016 2:36 pm

Notice the path to the file error?

That's MY path, not yours (unless you also called your folder "F:\unknown_source"). This is one of the cases where it's reading a hard coded path somewhere. i thought I had fixed all those but this one obviously got through

I had problems with that little bell for a while but I fixed it in the trose code a long time ago.
Just need to figure out why it's attempting to use a fixed path at this point and change it.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Arua fairy crash

Postby adosorken on Fri Aug 26, 2016 10:46 pm

The path is pointing towards the source file that is generating the assertion failure... that would just mean that that's where the error is being thrown. That wouldn't indicate the actual argument being used that causes the failure. Since it doesn't appear to list the actual resource that's failing to load, it makes it a bit harder for someone not intimately knowledgeable about the source to track down the exact cause of failure, only the line number in the source code where the failure occurs.

Rose_Engine/Client/Interface/CTDrawImpl.cpp

  1. void CTDrawImpl::Draw( int iX, int iY, int iModuleID, int iGraphicID, D3DCOLOR color )
  2. {
  3.     CImageRes* pImageRes = (CImageResManager::GetSingleton()).GetImageRes( iModuleID );
  4.     if( pImageRes == NULL )
  5.     {
  6.         assert( pImageRes && "Get ImageRes failed" );
  7.         return;
  8.     }
  9.  
  10.     stTexture* pTextureInfo = pImageRes->GetTexture( iGraphicID );
  11.     stSprite* pSpriteInfo = pImageRes->GetSprite( iGraphicID );
  12.  
  13.     if( pTextureInfo == NULL )
  14.     {
  15.         assert( pTextureInfo && "Get TextureInfo failed" );
  16.         return;
  17.     }
  18.  
  19.     if( pSpriteInfo == NULL )
  20.     {
  21.         assert( pSpriteInfo  && "Get SpriteInfo failed");
  22.         return;
  23.     }
  24.  
  25.     HNODE hTexture = pTextureInfo->m_Texture;
  26.  
  27.     if( hTexture == NULL )
  28.     {
  29.         assert( hTexture && "Get Texture failed");
  30.         return;
  31.     }
  32.    
  33.     // Transform   
  34.     D3DXMATRIX mat; 
  35.     D3DXMatrixTranslation( &mat, (float)iX, (float)iY, 0 );
  36.     ::setTransformSprite( mat );
  37.  
  38.     ::drawSprite( hTexture,
  39.                 &(pSpriteInfo->m_Rect),
  40.                 NULL,
  41.                 &D3DXVECTOR3( 0, 0 , 0 ),                              
  42.                 color );
  43. }


So this is occurring because pImageRes->GetTexture( iGraphicID ) is returning NULL. That, to me, would mean that iGraphicID is wrong.
Evolve this!!
User avatar
adosorken
Smoulie
Smoulie
 
Posts: 61
Joined: Sat Aug 20, 2016 3:29 pm
Location: Windsor, VT


Return to BUGS

Who is online

Users browsing this forum: No registered users and 2 guests

cron