VCMI_client.exe!BitmapHandler::loadBitmapFromDir(std::basic_string VCMI_client.exe!BitmapHandler::loadBitmapFromDir(std::basic_string
MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001302VCMIModspublic2013-06-04 19:212013-07-08 16:31
Reporterkrs 
Assigned ToIvan 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version0.93 
Target VersionFixed in Version 
Summary0001302: Game crashes upon entering Cove Town
DescriptionRunning VCMI in debug mode. Game crashes upon entering Cove-Town with the log message : "Failed to open cove/town-screen/background via SDL_Image"

Crash is on following line (I think it was "fixed" recently)
> VCMI_client.exe!BitmapHandler::loadBitmapFromDir(std::basic_string<char,std::char_traits<char>,std::allocator<char> > path, std::basic_string<char,std::char_traits<char>,std::allocator<char> > fname, bool setKey) CBitmapHandler.cpp Line 161 C++


CBitmapHandler.cpp Line 161

    // When modifying anything here please check two use cases:
    // 1) Vampire mansion in Necropolis (not 1st color is transparent)
    // 2) Battle background when fighting on grass/dirt, topmost sky part (NO transparent color)
    // 3) New objects that may use 24-bit images for icons (e.g. witchking arts)
161: auto colorID = SDL_MapRGB(ret->format, 0, 255, 255);
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003663)
Ivan (developer)
2013-06-04 21:27

My guess is that (some of) libraries to load *.png are missing. Check if libpng.dll (or something like that) is present.
(0003665)
krs (reporter)
2013-06-04 21:45

Since the other towns are working, I would expect to lie entirely with the mod. But if it is working on your side...

I have "libpng15-15.dll" in the root.
(0003666)
Ivan (developer)
2013-06-04 22:16
edited on: 2013-06-04 22:16

That error may appear only if call to SDL_Image failed. Not sure what may trigger it. Perhaps there are more required libraries apart from libpng?

Check if converting that image to bmp will fix this (Or replace it with another one).

ALSO
find place where this error is reported (line 153) and add this to get (hopefully) text description on what's wrong:
logGlobal->errorStream()<<"Reason: " << IMG_GetError();

(0003745)
Ivan (developer)
2013-07-08 16:31

Closing, not a bug. Or at least not VCMI bug.

- Issue History
Date Modified Username Field Change
2013-06-04 19:21 krs New Issue
2013-06-04 21:27 Ivan Note Added: 0003663
2013-06-04 21:45 krs Note Added: 0003665
2013-06-04 22:16 Ivan Note Added: 0003666
2013-06-04 22:16 Ivan Note Edited: 0003666 View Revisions
2013-06-10 19:17 Ivan Assigned To => Ivan
2013-06-10 19:17 Ivan Status new => feedback
2013-07-08 16:31 Ivan Note Added: 0003745
2013-07-08 16:31 Ivan Status feedback => closed
2013-07-08 16:31 Ivan Resolution open => no change required

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean