VCMI_client.exe!BitmapHandler::loadBitmapFromDir(std::basic_string
VCMI_client.exe!BitmapHandler::loadBitmapFromDir(std::basic_string
Anonymous | Login | 2024-11-21 14:55 UTC | |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0001302 | VCMI | Mods | public | 2013-06-04 19:21 | 2013-07-08 16:31 |
|
Reporter | krs | |
Assigned To | Ivan | |
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | no change required | |
Platform | | OS | | OS Version | |
Product Version | 0.93 | |
Target Version | | Fixed in Version | | |
|
Summary | 0001302: Game crashes upon entering Cove Town |
Description | Running 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); |
Tags | No tags attached. |
|
Attached Files | |
|
Relationships |
|
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. |
|
Notes |
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 |
Issue History |
Site
|
Forums
|
Wiki
|
Slack
|
GitHub