Projects > cpp > Issues > Bug #190

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

jpeg_create_decompress in CCXUIImage_win32.cpp trigger an "unhandled exception"

Bug #190 [Rejected]
walzer@cocos2d-x.org 2010-11-03 02:50 . Updated over 4 years ago

Enviroment:
1. win32, base on PowerVR 2.07.27.0484 SDK

Repro Steps:
1. transform trunk\HelloWorld-win32\HelloWorld.png to HelloWorld.jpg, use JPG format
2. copy HelloWorld.jpg to trunk\Debug
3. modify Helloworld-win32.cpp
#define IMG_PATH “HelloWorld.png”
to
#define IMG_PATH “HelloWorld.jpg”
3. build and run Helloworld-win32 subproject

the invoke scequence is:
CCTexture2D * pTexture = CCTextureCache::sharedTextureCache()~~>addImage; // Helloworld-win32.cpp, ln48

image~~>initWithContentsOfFile(fullpath, kImageFormatJPG) //CCTextureCache.cpp, ln210
bRet = loadJpg(strPath.c_str()); // CCXUIImage_win32.cpp, ln144
jpeg_create_ecompress( &cinfo ); // CCXUIIMage_win32.cpp, ln362

in jpeg_create_ecmopress, the flow jumps to CCTexture2D::~CCTexture2D, crashed at glDeleteTextures.

walzer@cocos2d-x.org 2011-01-27 18:06
  • Project changed from 3 to cocos2d-x
walzer@cocos2d-x.org 2011-01-27 18:08
  • Category set to 4
walzer@cocos2d-x.org 2011-03-05 00:11
  • Target version set to 9
yangws 2011-05-03 00:41
  • Status changed from New to Rejected
  • Target version changed from 9 to cocos2d-0.99.5-x-0.8.3

Can’t reproduce this bug after 0.8.2 version

walzer@cocos2d-x.org 2012-05-25 08:29
  • Project changed from cocos2d-x to cpp
  • Category deleted (4)
  • Target version deleted (cocos2d-0.99.5-x-0.8.3)

Atom PDF

Status:Rejected
Start date:2010-11-03
Priority:Normal
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.