moagrius / TileView

TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing.
MIT License
1.46k stars 337 forks source link

Use TileView as ImageView #103

Closed mangareader closed 10 years ago

mangareader commented 10 years ago

I use Tile as ImageView with this code https://gist.github.com/mariotaku/8471808

and I test on nexus 5, it work normally. But when i test on Galaxy SIII, android: 4.1.2, sometimes have error about: 04-13 18:24:31.214: A/libc(23038): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 23470 (AsyncTask #3) or 04-13 18:35:43.724: A/libc(1062): @@@ ABORTING: HEAP MEMORY CORRUPTION IN tmalloc_large addr=0x5f34f4c0

Do u have any idea about this error?

Thanks

moagrius commented 10 years ago

I've never seen that one before, but that gist is a pretty custom implementation. A quick google makes me think it's either an emulator issue (are you seeing this in an emulator or a real device?), or possibly something non-thread safe is happening (remember that the actual decoding process happens in another (non-UI) thread).

Sorry I don't have a better answer. If you want to post back with more details I can try to help debug, but not sure how much help I'll be.

mangareader commented 10 years ago

I test and have issue in real device. Im trying use TileView with viewpager, u can view code at https://github.com/mangareader/TileView.

Thank for your reply

moagrius commented 10 years ago

I honestly have no idea - I suspect the issue is with the region decoder, as I've never seen that error in "normal" implementations of TileView, but again that's just speculation.

If you have specific questions about the TileView codebase, or need help locating specific pieces, feel free to post back.

mangareader commented 10 years ago

can u give your email or skype for better commity ?

Thanks

moagrius commented 10 years ago

You can use this form to send me an email: http://qozix.com/contact