Comments (2)
so I use the command is
/home/lx/coverage/testapp/astc/HFL/astcenc -c xxx.png test.astc 6x6 -medium
then there is gdb information:
Program received signal SIGSEGV, Segmentation fault.
__memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:116
116 ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No such file or directory.
(gdb) bt
#0 __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:116
#1 0x000000000045e127 in parse_png_file(png*, int, int) ()
#2 0x000000000045fbea in stbi_load_main(stbi*, int*, int*, int*, int) ()
#3 0x0000000000463008 in stbi_load ()
#4 0x000000000044228d in load_image_with_stb(char const*, int, int*) ()
#5 0x00000000004314fd in astc_codec_load_image(char const*, int, int*) ()
#6 0x00000000004022e4 in main ()
(gdb) i r
rax 0xffffffffffff0260 -64928
rbx 0x7fffffffd488 140737488344200
rcx 0x1b10 6928
rdx 0xffffffffffff0267 -64921
rsi 0x7fffffffd4e4 140737488344292
rdi 0x7ffef6fce010 140733042188304
rbp 0xffff0267 0xffff0267
rsp 0x7fffffffbea8 0x7fffffffbea8
r8 0x1b1 433
r9 0xffffffffffff026 1152921504606842918
r10 0x7fffffffbc70 140737488338032
r11 0x7ffff7271a30 140737339922992
r12 0x0 0
r13 0xffffffffffff0267 -64921
r14 0xffff0267 4294902375
r15 0x7fffffffd450 140737488344144
rip 0x7ffff7271ba4 0x7ffff7271ba4 <__memcpy_sse2_unaligned+372>
eflags 0x10202 [ IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) x/10i $pc
=> 0x7ffff7271ba4 <__memcpy_sse2_unaligned+372>: movdqu (%rsi,%rcx,1),%xmm8
0x7ffff7271baa <__memcpy_sse2_unaligned+378>: add $0x1,%r8
0x7ffff7271bae <__memcpy_sse2_unaligned+382>: movdqu %xmm8,(%rdi,%rcx,1)
0x7ffff7271bb4 <__memcpy_sse2_unaligned+388>: add $0x10,%rcx
0x7ffff7271bb8 <__memcpy_sse2_unaligned+392>: cmp %r8,%r9
0x7ffff7271bbb <__memcpy_sse2_unaligned+395>: ja 0x7ffff7271ba4 <__memcpy_sse2_unaligned+372>
0x7ffff7271bbd <__memcpy_sse2_unaligned+397>: cmp %rax,%rdx
0x7ffff7271bc0 <__memcpy_sse2_unaligned+400>: je 0x7ffff7271a6e <__memcpy_sse2_unaligned+62>
0x7ffff7271bc6 <__memcpy_sse2_unaligned+406>: movzbl (%rsi,%rax,1),%ecx
0x7ffff7271bca <__memcpy_sse2_unaligned+410>: mov %cl,(%rdi,%rax,1)
from astc-encoder.
No means to reproduce this specific issue without the test file to verify that this is fixed, but the upgrade to the new stb_image library in PR #48 solves many cases of corrupt images causing problems.
Closing, as cannot reproduce.
from astc-encoder.
Related Issues (20)
- alpha decoding bug when LDR_SRGB is enabled in ASTCENC_PRF_LDR_SRGB profile HOT 18
- Question about bizarre differences between `-ts` vs `-ds` HOT 3
- Compress/decompress progress callback HOT 8
- Crash: Progress Callback not initialized for Single-Threaded alpha-weight-scaling-radius path HOT 1
- Builds for wrong-architecture on M1 macs HOT 3
- How to encode RGB+A with dual weight planes? HOT 4
- How to minimize heap/stack memory usage of multiple contexts on mobile platform? HOT 4
- Emscripten SAFE_HEAP reports unaligned access in compute_quantized_weights_for_decimation. HOT 13
- The png do not support to load HOT 6
- The alpha channel is painted black during compression HOT 7
- Build fails on i386 with -march=nehalem or newer HOT 6
- 4.8.0 has "possible loss of data warning" in astcenc_find_best_partitioning.cpp HOT 2
- Despite ASTCENC_INVARIANCE ON, results on M2/Neon (macOS, clang) differ from X86_64/AVX2 (Ubuntu, GCC) HOT 4
- KTX2 format support for output textures HOT 3
- ASTC encoder output is resulting in a flipped image. HOT 5
- Using -pp-premultiply with sRGB compression gives a brigher than expected output HOT 16
- NEON any/all could be faster ...
- I think maybe there's a simple mistake HOT 1
- Try NEON dot product for 8-32 widening. HOT 1
- Improve SIMD table abstraction HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astc-encoder.