BUGS
author Sam Lantinga <slouken@libsdl.org>
Tue, 02 Apr 2013 07:57:37 -0700
changeset 7045 4be2c24b7de1
parent 2091 b8bee470f737
permissions -rw-r--r--
Fixed bug 1780 - SDL_RWFromFile() sets an error on Android although a valid SDL_RWops pointer is returned.

Philipp Wiesemann

SDL_RWFromFile() sets an error to be queried with SDL_GetError() on Android although a valid SDL_RWops pointer is returned.

This happens if the fallback implemented in SDL_android.cpp is used to load compressed assets (see README.android in section "Loading assets") and results in a message like "java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed". I think this is confusing and not needed because the loading works as expected.

I attached a patch which changes SDL_android.cpp to not set an error if compressed assets are loaded. In this case also no Exception is queried and no additional string are created.
slouken@0
     1
icculus@2091
     2
Bugs are now managed in the SDL bug tracker, here:
slouken@0
     3
icculus@2091
     4
    http://bugzilla.libsdl.org/
slouken@0
     5
icculus@2091
     6
You may report bugs there, and search to see if a given issue has already
icculus@2091
     7
 been reported, discussed, and maybe even fixed.
slouken@0
     8
slouken@27
     9
slouken@0
    10
icculus@2091
    11
You may also find help at the SDL mailing list. Subscription information:
slouken@0
    12
icculus@2091
    13
    http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
slouken@0
    14
icculus@2091
    15
Bug reports are welcome here, but we really appreciate if you use Bugzilla, as
icculus@2091
    16
 bugs discussed on the mailing list may be forgotten or missed.
slouken@0
    17
slouken@0
    18