- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用稍微自定义的SurfaceView(CSV)在单独的线程上绘制一些东西。我的CSV在其他一些控件中都位于LinearLayout中。我隐藏了所有其他控件,将它们的可见性设置为GONE,这导致我的CSV占据了所有空间。
因此,我的应用有时会(在极少数情况下)在调整CSV大小时崩溃(这是由切换UI的可见性引起的,如果有关系的话)。它在Nexus 7(2013)上崩溃,并显示诸如“致命信号11(sigsegv)在76812000(code = 1)线程10456”之类的消息,并且从未在我的XperiaZ上崩溃。
为了进行绘制,我使用了一个基于可运行对象的单独线程,该线程执行一个滴答声(代码稍后发布)并进入休眠状态。线程在surfaceCreated中启动,并在surfaceDestroyed中终止。我试图重新启动surfaceChanged中的线程,但是没有任何效果。
public void run() {
while (!is_stopped){
TickImpl();
try {
Thread.sleep(delay);
} catch (InterruptedException e) {
}
}
}
private void TickImpl() {
Canvas canvas = null;
try {
canvas = surface_holder.lockCanvas();
synchronized (surface_holder) {
if (canvas != null){
canvas.drawColor(0xFFFFFFFF);
scene.RenderTo(canvas); // Here I do draw
}
}
} finally {
if(canvas != null) {
surface_holder.unlockCanvasAndPost(canvas);
}
}
}
10-24 14:27:16.403: A/libc(17724): Fatal signal 11 (SIGSEGV) at 0x75cdb000 (code=1), thread 17740 (Thread-513)
10-24 14:27:16.503: I/DEBUG(176): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-24 14:27:16.503: I/DEBUG(176): Build fingerprint: 'google/razor/flo:4.3/JSS15R/804956:user/release-keys'
10-24 14:27:16.503: I/DEBUG(176): Revision: '0'
10-24 14:27:16.503: I/DEBUG(176): pid: 17724, tid: 17740, name: Thread-513 >>> com.example.dice <<<
10-24 14:27:16.503: I/DEBUG(176): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 75cdb000
10-24 14:27:16.603: I/DEBUG(176): r0 75cdb000 r1 ffffffff r2 000008e0 r3 40412014
10-24 14:27:16.603: I/DEBUG(176): r4 75cda800 r5 000000ab r6 00000900 r7 000008e0
10-24 14:27:16.603: I/DEBUG(176): r8 0000ffff r9 74555afc sl 40285bcc fp 74555c84
10-24 14:27:16.603: I/DEBUG(176): ip 00000001 sp 74555914 lr 40285bf4 pc 402568d8 cpsr 20070010
10-24 14:27:16.603: I/DEBUG(176): d0 ffffffffffffffff d1 ffffffffffffffff
10-24 14:27:16.603: I/DEBUG(176): d2 ffffffffffffffff d3 ffffffffffffffff
10-24 14:27:16.603: I/DEBUG(176): d4 0000047000000000 d5 0000022544094000
10-24 14:27:16.603: I/DEBUG(176): d6 0000000044094000 d7 4140000044096000
10-24 14:27:16.603: I/DEBUG(176): d8 3f800000433d5555 d9 3f800000433d5555
10-24 14:27:16.603: I/DEBUG(176): d10 00000000433d5555 d11 0000000000000000
10-24 14:27:16.603: I/DEBUG(176): d12 0000000000000000 d13 0000000000000000
10-24 14:27:16.603: I/DEBUG(176): d14 0000000000000000 d15 0000000000000000
10-24 14:27:16.603: I/DEBUG(176): d16 4028000000000000 d17 4029000000000000
10-24 14:27:16.603: I/DEBUG(176): d18 bfe4471a00000000 d19 40624ef56abf9160
10-24 14:27:16.603: I/DEBUG(176): d20 0000000000000000 d21 0000000000000000
10-24 14:27:16.603: I/DEBUG(176): d22 3fe4471a00000000 d23 3fe8c14be0000000
10-24 14:27:16.603: I/DEBUG(176): d24 0000000000000000 d25 4067aaaaa0000000
10-24 14:27:16.603: I/DEBUG(176): d26 0000000000000000 d27 c05dfe81127b4400
10-24 14:27:16.603: I/DEBUG(176): d28 405dfe81127b4400 d29 40624ef56abf9160
10-24 14:27:16.603: I/DEBUG(176): d30 4067aaaaa0000000 d31 0000000000000000
10-24 14:27:16.603: I/DEBUG(176): scr 20000012
10-24 14:27:16.603: I/DEBUG(176): backtrace:
10-24 14:27:16.603: I/DEBUG(176): #00 pc 000678d8 /system/lib/libskia.so
10-24 14:27:16.603: I/DEBUG(176): #01 pc 00096bf0 /system/lib/libskia.so
10-24 14:27:16.603: I/DEBUG(176): #02 pc ffffffff <unknown>
10-24 14:27:16.603: I/DEBUG(176): stack:
10-24 14:27:16.603: I/DEBUG(176): 745558d4 400fc605 /system/lib/libbinder.so
10-24 14:27:16.603: I/DEBUG(176): 745558d8 4010d064 /system/lib/libbinder.so
10-24 14:27:16.603: I/DEBUG(176): 745558dc 40104373 /system/lib/libbinder.so (android::ProcessState::self()+94)
10-24 14:27:16.603: I/DEBUG(176): 745558e0 70a219d0
10-24 14:27:16.603: I/DEBUG(176): 745558e4 745558fc [stack:17740]
10-24 14:27:16.603: I/DEBUG(176): 745558e8 74555a78 [stack:17740]
10-24 14:27:16.603: I/DEBUG(176): 745558ec 400fbab9 /system/lib/libbinder.so (android::sp<android::IBinder::DeathRecipient>::~sp()+22)
10-24 14:27:16.603: I/DEBUG(176): 745558f0 00000000
10-24 14:27:16.603: I/DEBUG(176): 745558f4 4010253f /system/lib/libbinder.so (android::Parcel::releaseObjects()+44)
10-24 14:27:16.603: I/DEBUG(176): 745558f8 74555a78 [stack:17740]
10-24 14:27:16.603: I/DEBUG(176): 745558fc 70a2c960
10-24 14:27:16.603: I/DEBUG(176): 74555900 00000050
10-24 14:27:16.603: I/DEBUG(176): 74555904 00000000
10-24 14:27:16.603: I/DEBUG(176): 74555908 df0027ad
10-24 14:27:16.603: I/DEBUG(176): 7455590c 00000000
10-24 14:27:16.603: I/DEBUG(176): 74555910 74555940 [stack:17740]
10-24 14:27:16.603: I/DEBUG(176): #00 74555914 75cda800
10-24 14:27:16.603: I/DEBUG(176): ........ ........
10-24 14:27:16.603: I/DEBUG(176): #01 74555914 75cda800
10-24 14:27:16.603: I/DEBUG(176): 74555918 00000001
10-24 14:27:16.603: I/DEBUG(176): #02 7455591c 40288504 /system/lib/libskia.so (SkDraw::drawPaint(SkPaint const&) const+420)
10-24 14:27:16.603: I/DEBUG(176): 74555920 00000080
10-24 14:27:16.603: I/DEBUG(176): 74555924 000005d4
10-24 14:27:16.603: I/DEBUG(176): 74555928 00000080
10-24 14:27:16.603: I/DEBUG(176): 7455592c 00000001
10-24 14:27:16.603: I/DEBUG(176): 74555930 00000000
10-24 14:27:16.603: I/DEBUG(176): 74555934 00000000
10-24 14:27:16.603: I/DEBUG(176): 74555938 00000470
10-24 14:27:16.603: I/DEBUG(176): 7455593c 00000225
10-24 14:27:16.603: I/DEBUG(176): 74555940 752aa3a8
10-24 14:27:16.603: I/DEBUG(176): 74555944 00000000
10-24 14:27:16.603: I/DEBUG(176): 74555948 00000000
10-24 14:27:16.603: I/DEBUG(176): 7455594c 00000000
10-24 14:27:16.603: I/DEBUG(176): 74555950 00000470
10-24 14:27:16.603: I/DEBUG(176): 74555954 00000225
10-24 14:27:16.603: I/DEBUG(176): 74555958 00000000
10-24 14:27:16.603: I/DEBUG(176): memory near r0:
10-24 14:27:16.603: I/DEBUG(176): 75cdafe0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdaff0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb000 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb010 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb020 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb030 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb040 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb050 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb060 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb070 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb080 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb090 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb0a0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb0b0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb0c0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cdb0d0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): memory near r3:
10-24 14:27:16.603: I/DEBUG(176): 40411ff4 40068a24 400a0184 40069818 40412000
10-24 14:27:16.603: I/DEBUG(176): 40412004 00000194 ff7fffff ff7fffff ff7fffff
10-24 14:27:16.603: I/DEBUG(176): 40412014 40256850 40256970 403ea7ec 403ea7fc
10-24 14:27:16.603: I/DEBUG(176): 40412024 403ea800 403ea804 403ea808 403ea810
10-24 14:27:16.603: I/DEBUG(176): 40412034 403ea814 403ea81c 00000080 00000000
10-24 14:27:16.603: I/DEBUG(176): 40412044 00000000 00000000 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 40412054 00000000 00000000 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 40412064 00000000 00000000 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 40412074 00000000 00000000 403eb1d0 403eb1d4
10-24 14:27:16.603: I/DEBUG(176): 40412084 403eb1d8 403eb1e0 403eb1e4 403eb1e8
10-24 14:27:16.603: I/DEBUG(176): 40412094 00000080 00000000 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 404120a4 00000000 00000000 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 404120b4 00000000 00000000 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 404120c4 00000000 00000000 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 404120d4 01010101 00000000 ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 404120e4 ffffffff 00000006 00000001 05050707
10-24 14:27:16.603: I/DEBUG(176): memory near r4:
10-24 14:27:16.603: I/DEBUG(176): 75cda7e0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda7f0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda800 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda810 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda820 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda830 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda840 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda850 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda860 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda870 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda880 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda890 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda8a0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda8b0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda8c0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 75cda8d0 ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): memory near r8:
10-24 14:27:16.603: I/DEBUG(176): 0000ffdc ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0000ffec ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0000fffc ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001000c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001001c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001002c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001003c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001004c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001005c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001006c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001007c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001008c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 0001009c ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 000100ac ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 000100bc ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): 000100cc ffffffff ffffffff ffffffff ffffffff
10-24 14:27:16.603: I/DEBUG(176): memory near r9:
10-24 14:27:16.603: I/DEBUG(176): 74555adc 7529d5b8 00000001 74455f60 4007b1f4
10-24 14:27:16.603: I/DEBUG(176): 74555aec 4027ce00 00000470 7529d668 74555b40
10-24 14:27:16.603: I/DEBUG(176): 74555afc 7527d650 7529d640 752aa3a8 752aa3a8
10-24 14:27:16.603: I/DEBUG(176): 74555b0c 7529d5c0 7527d648 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 74555b1c 7529d5b8 00000000 00000000 3f800001
10-24 14:27:16.603: I/DEBUG(176): 74555b2c 433d5555 3f800000 7529d668 00000001
10-24 14:27:16.603: I/DEBUG(176): 74555b3c 74555be8 7529d5b8 81200005 752aa238
10-24 14:27:16.603: I/DEBUG(176): 74555b4c 4f200009 401bb5f8 752aa240 81200005
10-24 14:27:16.603: I/DEBUG(176): 74555b5c 40040a13 40078000 00000000 00000000
10-24 14:27:16.603: I/DEBUG(176): 74555b6c 4f200009 401bb5f8 4003d9c1 40564cd8
10-24 14:27:16.603: I/DEBUG(176): 74555b7c 00000000 74555bd4 00000000 7527b708
10-24 14:27:16.613: I/DEBUG(176): 74555b8c 74555bac 4f200009 00000000 00000001
10-24 14:27:16.613: I/DEBUG(176): 74555b9c 402c73d8 00000000 403dfe30 40414608
10-24 14:27:16.613: I/DEBUG(176): 74555bac 00000001 74455f68 74555c70 403dfe30
10-24 14:27:16.613: I/DEBUG(176): 74555bbc 70a4bcc8 00000001 402922d0 00000008
10-24 14:27:16.613: I/DEBUG(176): 74555bcc 00000470 7529d5b8 74555c10 00000000
10-24 14:27:16.613: I/DEBUG(176): memory near sl:
10-24 14:27:16.613: I/DEBUG(176): 40285bac e1a0200c e08f3003 e793300e e593c000
10-24 14:27:16.613: I/DEBUG(176): 40285bbc e12fff3c e8bd8008 0018c158 fffff7d4
10-24 14:27:16.613: I/DEBUG(176): 40285bcc e92d4008 e1a0c0a1 e59f301c e6ff1072
10-24 14:27:16.613: I/DEBUG(176): 40285bdc e59fe018 e1a0200c e08f3003 e793300e
10-24 14:27:16.613: I/DEBUG(176): 40285bec e593c000 e12fff3c e8bd8008 0018c124
10-24 14:27:16.613: I/DEBUG(176): 40285bfc fffff7d0 e5903004 e5901000 e1b00081
10-24 14:27:16.613: I/DEBUG(176): 40285c0c e3a0c08e e04c0c20 e1a0c401 e38cc102
10-24 14:27:16.613: I/DEBUG(176): 40285c1c e1a0003c 22600000 e1b01083 e3a0c08e
10-24 14:27:16.613: I/DEBUG(176): 40285c2c e04c1c21 e1a0c403 e38cc102 e1a0113c
10-24 14:27:16.613: I/DEBUG(176): 40285c3c 22611000 e8820003 e12fff1e e591c00c
10-24 14:27:16.613: I/DEBUG(176): 40285c4c e92d0030 e5914008 e5903004 e5901000
10-24 14:27:16.613: I/DEBUG(176): 40285c5c e1b00081 e3a0508e e0450c20 e1a05401
10-24 14:27:16.613: I/DEBUG(176): 40285c6c e3855102 e1a00035 22600000 e1b01083
10-24 14:27:16.613: I/DEBUG(176): 40285c7c e3a0508e e0451c21 e1a05403 e3855102
10-24 14:27:16.613: I/DEBUG(176): 40285c8c e1a01135 22611000 e04030c4 e041c0cc
10-24 14:27:16.613: I/DEBUG(176): 40285c9c e8821008 e8bd0030 e12fff1e e591c00c
10-24 14:27:16.613: I/DEBUG(176): memory near fp:
10-24 14:27:16.613: I/DEBUG(176): 74555c64 74451530 00000000 40876c50 74455f60
10-24 14:27:16.613: I/DEBUG(176): 74555c74 00000001 00000008 417aa9a0 43480000
10-24 14:27:16.613: I/DEBUG(176): 74555c84 408a6ed3 74455f60 6f16d6e5 40181ad9
10-24 14:27:16.613: I/DEBUG(176): 74555c94 74451540 00000033 4007b1f4 1ec00001
10-24 14:27:16.613: I/DEBUG(176): 74555ca4 00000000 00000000 4007b1f4 74451558
10-24 14:27:16.613: I/DEBUG(176): 74555cb4 ffffbfff 74451558 408cbc3d 74451530
10-24 14:27:16.613: I/DEBUG(176): 74555cc4 7527f6f0 00000000 00000c80 0000fa00
10-24 14:27:16.613: I/DEBUG(176): 74555cd4 4006af4c 00000032 00000000 000003e8
10-24 14:27:16.613: I/DEBUG(176): 74555ce4 00000032 00000000 000003e8 00000000
10-24 14:27:16.613: I/DEBUG(176): 74555cf4 74555d58 278282af 00000032 00000000
10-24 14:27:16.613: I/DEBUG(176): 74555d04 400698cc 744518c0 00000001 00000000
10-24 14:27:16.613: I/DEBUG(176): 74555d14 744518c0 ffffffd4 00000000 00000000
10-24 14:27:16.613: I/DEBUG(176): 74555d24 4003e6b8 00000000 98942b6c 744518d0
10-24 14:27:16.613: I/DEBUG(176): 74555d34 744518c0 00000000 74451530 74812ff8
10-24 14:27:16.613: I/DEBUG(176): 74555d44 98942b6c 98942b6c 4204d8e4 4204d8e0
10-24 14:27:16.613: I/DEBUG(176): 74555d54 74451530 0000000b 00000058 1dcd64ff
10-24 14:27:16.613: I/DEBUG(176): memory near sp:
10-24 14:27:16.613: I/DEBUG(176): 745558f4 4010253f 74555a78 70a2c960 00000050
10-24 14:27:16.613: I/DEBUG(176): 74555904 00000000 df0027ad 00000000 74555940
10-24 14:27:16.613: I/DEBUG(176): 74555914 75cda800 00000001 40288504 00000080
10-24 14:27:16.613: I/DEBUG(176): 74555924 000005d4 00000080 00000001 00000000
10-24 14:27:16.613: I/DEBUG(176): 74555934 00000000 00000470 00000225 752aa3a8
10-24 14:27:16.613: I/DEBUG(176): 74555944 00000000 00000000 00000000 00000470
10-24 14:27:16.613: I/DEBUG(176): 74555954 00000225 00000000 74555a98 00000000
10-24 14:27:16.613: I/DEBUG(176): 74555964 400b7905 00000000 400b7577 74555a98
10-24 14:27:16.613: I/DEBUG(176): 74555974 00000000 00000001 400b796b 00000001
10-24 14:27:16.613: I/DEBUG(176): 74555984 74555a78 00000001 74555a78 745559b8
10-24 14:27:16.613: I/DEBUG(176): 74555994 40561ded 74555a44 745559b7 74555a78
10-24 14:27:16.613: I/DEBUG(176): 745559a4 405620f7 745559b7 00000000 00000000
10-24 14:27:16.613: I/DEBUG(176): 745559b4 752a98b8 7529d5b0 40564e9c 752a98b8
10-24 14:27:16.613: I/DEBUG(176): 745559c4 7529d5b8 752a9594 40040a13 40078000
10-24 14:27:16.613: I/DEBUG(176): 745559d4 00000000 00000000 40564e9c 752a98b8
10-24 14:27:16.613: I/DEBUG(176): 745559e4 4003d9c1 40564cd8 400b49b9 74555a98
10-24 14:27:16.613: I/DEBUG(176): code around pc:
10-24 14:27:16.613: I/DEBUG(176): 402568b8 ba00001c f2201110 e3520040 ba000012
10-24 14:27:16.613: I/DEBUG(176): 402568c8 f2202150 e3520080 ba000008 e1a0c3a2
10-24 14:27:16.613: I/DEBUG(176): 402568d8 f40002cd f40002cd f40002cd f40002cd
10-24 14:27:16.613: I/DEBUG(176): 402568e8 e25cc001 1afffff9 e212207f 0a000018
10-24 14:27:16.613: I/DEBUG(176): 402568f8 e1b0c2a2 0a000004 e25cc001 f40002cd
10-24 14:27:16.613: I/DEBUG(176): 40256908 1afffffc e212201f 0a000011 e1b0c222
10-24 14:27:16.613: I/DEBUG(176): 40256918 0a000004 e25cc001 f4000a8d 1afffffc
10-24 14:27:16.613: I/DEBUG(176): 40256928 e212200f 0a00000a e3520008 ba000001
10-24 14:27:16.613: I/DEBUG(176): 40256938 e2522008 f400078d e3520004 ba000001
10-24 14:27:16.613: I/DEBUG(176): 40256948 e2522004 e4801004 e3520000 da000000
10-24 14:27:16.613: I/DEBUG(176): 40256958 e0c010b2 e49d0004 e12fff1e e320f000
10-24 14:27:16.613: I/DEBUG(176): 40256968 e320f000 e320f000 e3520001 04801004
10-24 14:27:16.613: I/DEBUG(176): 40256978 012fff1e e3520004 ca000005 e3520000
10-24 14:27:16.613: I/DEBUG(176): 40256988 012fff1e e4801004 e2522001 1afffffc
10-24 14:27:16.613: I/DEBUG(176): 40256998 e12fff1e e3520010 ba000035 eea01b10
10-24 14:27:16.613: I/DEBUG(176): 402569a8 f2202150 e3520020 ba00002c e3520040
10-24 14:27:16.613: I/DEBUG(176): code around lr:
10-24 14:27:16.613: I/DEBUG(176): 40285bd4 e59f301c e6ff1072 e59fe018 e1a0200c
10-24 14:27:16.613: I/DEBUG(176): 40285be4 e08f3003 e793300e e593c000 e12fff3c
10-24 14:27:16.613: I/DEBUG(176): 40285bf4 e8bd8008 0018c124 fffff7d0 e5903004
10-24 14:27:16.613: I/DEBUG(176): 40285c04 e5901000 e1b00081 e3a0c08e e04c0c20
10-24 14:27:16.613: I/DEBUG(176): 40285c14 e1a0c401 e38cc102 e1a0003c 22600000
10-24 14:27:16.613: I/DEBUG(176): 40285c24 e1b01083 e3a0c08e e04c1c21 e1a0c403
10-24 14:27:16.613: I/DEBUG(176): 40285c34 e38cc102 e1a0113c 22611000 e8820003
10-24 14:27:16.613: I/DEBUG(176): 40285c44 e12fff1e e591c00c e92d0030 e5914008
10-24 14:27:16.613: I/DEBUG(176): 40285c54 e5903004 e5901000 e1b00081 e3a0508e
10-24 14:27:16.613: I/DEBUG(176): 40285c64 e0450c20 e1a05401 e3855102 e1a00035
10-24 14:27:16.613: I/DEBUG(176): 40285c74 22600000 e1b01083 e3a0508e e0451c21
10-24 14:27:16.613: I/DEBUG(176): 40285c84 e1a05403 e3855102 e1a01135 22611000
10-24 14:27:16.613: I/DEBUG(176): 40285c94 e04030c4 e041c0cc e8821008 e8bd0030
10-24 14:27:16.613: I/DEBUG(176): 40285ca4 e12fff1e e591c00c e92d0030 e5914008
10-24 14:27:16.613: I/DEBUG(176): 40285cb4 e5903004 e5901000 e1b00081 e3a0508e
10-24 14:27:16.613: I/DEBUG(176): 40285cc4 e0450c20 e1a05401 e3855102 e1a00035
10-24 14:27:16.613: I/DEBUG(176): memory map around fault addr 75cdb000:
10-24 14:27:16.613: I/DEBUG(176): 75bf6000-75c07000 rw- /dev/kgsl-3d0
10-24 14:27:16.613: I/DEBUG(176): (no map for address)
10-24 14:27:16.613: I/DEBUG(176): 75e91000-75e92000 ---
10-24 14:27:16.744: I/BootReceiver(511): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
10-24 14:27:16.754: I/ActivityManager(511): Process com.example.dice (pid 17724) has died.
最佳答案
尝试更改同步代码的位置
synchronized (surface_holder) {
try {
canvas = surface_holder.lockCanvas();
// synchronized (surface_holder) {
if (canvas != null){
canvas.drawColor(0xFFFFFFFF);
scene.RenderTo(canvas); // Here I do draw
}
// }
} finally {
if(canvas != null) {
surface_holder.unlockCanvasAndPost(canvas);
}
}
}
关于android - android surfaceview在调整大小时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19557846/
我正在使用两个 MjpegView(扩展 SurfaceView 的自定义 View )构建一个应用程序。问题是有时我看不到第二个摄像机 View ,因为它位于第一个摄像机 View 后面。流媒体工作
我有一个自定义相机应用程序,我希望任何预览尺寸都以全屏模式显示,而不会拉伸(stretch)相机预览图像。为此,我需要使surfaceView 大于屏幕以保持纵横比,因此实际上用户看到的比相机实际捕获
我收到从 SurfaceView.onAttachedToWindow 引发的异常。看起来 SurfaceView 正在尝试引用 mParent,但它是 null。有谁知道为什么不设置父级但会调用 o
我已经将 SurfaceView 子类化并在 Activity 的 onCreate 中实例化它。生成了预览,但控件永远不会进入 onDraw(),它在 SurfaceView 的子类中被重写。这是为
我的应用在 Android 8.0 上遇到了一些奇怪的问题。我有自己的可滚动小部件,代码是 available on github .它有两个 child ,可以无限期地逐一滚动。 在屏幕上,棋盘是一
我用两种方式编写了同一个程序。 一个使用 Surfaceview,另一个使用自定义 View 。根据 android SDK 开发指南,使用表面 View 更好,因为您可以生成一个单独的线程来处理图形
我想做的是 在开始播放视频之前在 SurfaceView 上显示背景图像。 我尝试只绘制一个 jpeg 图像作为 SurfaceView 的背景。有效。 我还尝试在 SurfaceView 上播放视频
我遇到了讨厌的 Android SurfaceView 行为: 当你离开一个带有 SurfaceView 的 Activity 并快速返回时,SurfaceView 之前的内容并没有消失,而是显示在新
我正在创建一个 FrameLayout 类型的布局,我在其中添加了两个 View 。两个 View 分别是 GLSurfaceView 和 SurfaceView 的对象。根据有关 SurfaceVi
我有一个 Activity 调用一个扩展 SurfaceView 并实现 Runnable 的类并将 Activity 类的 contentView() 设置为 surfaceview 类的实例。最小
由于某种原因,我的程序中的摄像头画面是横向的。如果我从底部将手指放在相机上,它会在表面 View 中显示为来自右侧。 我有一个非常标准的实现 surfaceView = (SurfaceVie
我想在我的 SurfaceView 顶部添加一个自定义 ImageButton,这样它基本上可以随 View 滚动。 Canvas 使用矩阵滚动和缩放。我该怎么做呢?谢谢。 最佳答案 假设我正确理解了
在 SurfaceView 上绘图时,我在拦截“后退”按键时遇到问题。我的 onKeyDown 事件似乎只在第二次和随后的按键事件中被调用——这对后退键没有用,因为 Activity 已经暂停或终止。
在我正在进行的项目中,我决定使用 SurfaceView 而不是自定义双缓冲介质。它提供了我需要的一切,而且它已经是双缓冲的。 问题是它不会让我指定多个脏矩形来重绘。 SurfaceView.lock
我正在创建一个小游戏我有一个 Activity : GameActivity.java: public class GameActivity extends Activity { public
这很可能是一件微不足道的事情,但我找不到解决方案。事情很简单,用户按下屏幕,当他的手指放在屏幕上时,我想要执行一段代码。 这是一个代码示例: @Override public boolean
我正在使用 Android SurfaceView 编写测试应用程序。我想看看这是否是一种可行的 2D 游戏开发方法。目前性能不是太好。 似乎每隔 15 秒左右就会出现微小的抖动和减速。我只在屏幕上画
我有一个 SurfaceView,我在其中显示了一个比 SurfaceView 的实际区域大得多的位图,因此我实现了一种方法,让用户可以在位图上滑动手指并上下移动它。这样做时,我希望能够显示垂直滚动条
我正在向 SurfaceView 提供的 Canvas 绘制一些自定义内容。这包含在具有其他 View 的 Activity 中。 我的 Activity 中的一个状态需要隐藏 SurfaceView
所以我在 Android Studio 中做的项目中一直遇到 NullPointerException。我需要让图像显示在我称为 DrawSurface 的自定义类中。我似乎找不到与我的问题相关的任何
我是一名优秀的程序员,十分优秀!