spot icon indicating copy to clipboard operation
spot copied to clipboard

crashed

Open yingnierxiao opened this issue 8 years ago • 6 comments

Crashed:: Dispatch queue: com.apple.main-thread 0 converter.so 0x00000001090d0caa Javelin::PvrTcEncoder::EncodeRgba4Bpp(void_, Javelin::RgbaBitmap const&) + 186 1 converter.so 0x0000000109102ecc spot::encode_as_pvrtc(void const_, int, int, int, int, unsigned int) + 1084 2 converter.so 0x0000000109108d71 spot::internals::encode_pvr2(unsigned int, unsigned int, void const_, unsigned int) + 161 3 converter.so 0x00000001091095a1 spot::internals::encode_ccz(unsigned int, unsigned int, void const_, unsigned int) + 145 4 converter.so 0x0000000109045470 spot::rectspot::color::encode_as_ccz(unsigned int) const + 384 5 converter.so 0x000000010903f892 spot::rectspot::color::save_as_ccz(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, unsigned int) const + 114 6 converter.so 0x0000000109036496 spot::rectspot::color::save(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&,

yingnierxiao avatar Jul 18 '16 09:07 yingnierxiao

Assertion failed: (bitmap.GetBitmapWidth() == bitmap.GetBitmapHeight()), function EncodeRgba4Bpp, file spot.cpp, line 38053.

yingnierxiao avatar Jul 18 '16 09:07 yingnierxiao

The current PVR encoder will only accept squared textures for now. It is a current limitation of the original encoder (https://bitbucket.org/jthlim/pvrtccompressor) that I am not 100% sure if it could be by-passed and get it to work with regular sizes.

r-lyeh-archived avatar Jul 18 '16 09:07 r-lyeh-archived

As usual, it would be nice to have a) your source image b) the code you wrote which initiated the crash.

r-lyeh-archived avatar Jul 18 '16 10:07 r-lyeh-archived

thewatchtowe

[malitc-1]Compressing. Output file: A.pkm/Accessibility.pkm [malitc-4]Compression time: 1076 ms [malitc-5]RMSE: 9.27583 [malitc-6]PSNR: 33.555 [malitc-7]Perceptually weighted RMSE: 8.35337 [malitc-8]Perceptual PSNR: 34.4648 [malitc-2]Compressing alpha component. Output file: A.pkm/Accessibility_alpha.pkm [malitc-4]Compression time: 219 ms [malitc-5]RMSE: 3.67554 [malitc-6]PSNR: 41.5956 [malitc-7]Perceptually weighted RMSE: 3.67554 [malitc-8]Perceptual PSNR: 41.5956

this is etcpack Accessibility.png A.pkm -c etc1 -as time cost

this is ./converter pkm Thewatchtowe.png time cost 1min

yingnierxiao avatar Jul 22 '16 10:07 yingnierxiao

i'll take a look. thanks

r-lyeh-archived avatar Jul 22 '16 11:07 r-lyeh-archived

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libc++.1.dylib 0x00007fff8c68b1ad std::__1::basic_streambuf<char, std::_1::char_traits >::xsputn(char const, long) + 41 1 libc++.1.dylib 0x00007fff8c6921cd std::__1::basic_ostream<char, std::1::char_traits >::write(char const, long) + 73 2 converter.so 0x000000010ee2b81c spot::internals::encode_pug(unsigned int, unsigned int, void const, unsigned int) + 3164 3 converter.so 0x000000010ed684d0 spot::rectspot::color::encode_as_pug(unsigned int) const + 384 4 converter.so 0x000000010ed63622 spot::rectspot::color::save_as_pug(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, unsigned int) const + 114 5 converter.so 0x000000010ed5a34f spot::rectspot::color::save(std::__1::basic_string<char, std::__1::char_traits, std::_1::allocator > const&, unsigned int) + 3487 6 converter.so 0x000000010ed59440 convert_to(lua_State) + 688

crashed with pug

yingnierxiao avatar Jul 25 '16 11:07 yingnierxiao