GNOME Bugzilla – Bug 767072
iOS screen bug
Last modified: 2016-07-05 05:34:05 UTC
in iPhone 6 gstglwindow_eagl.m eagl_layer = (CAEAGLLayer *)[window_eagl->priv->view layer]; size = eagl_layer.frame.size; There is a mistake, did not consider screen scaling problems. i modify like this size.width=size.width*[[UIScreen mainScreen] scale]; size.height=size.height*[[UIScreen mainScreen] scale]; This video render is very clear, but often produce memory error
Oh.It is not.I found that I even if what all don't change, just his compilation, errors will appear below. -------------------------------------------------- `magazine_cache_push_magazine: 0x1018df8ac <+0>: stp x24, x23, [sp, #-64]! 0x1018df8b0 <+4>: stp x22, x21, [sp, #16] 0x1018df8b4 <+8>: stp x20, x19, [sp, #32] 0x1018df8b8 <+12>: stp x29, x30, [sp, #48] 0x1018df8bc <+16>: add x29, sp, #48 ; =48 0x1018df8c0 <+20>: sub sp, sp, #16 ; =16 0x1018df8c4 <+24>: mov x21, x2 0x1018df8c8 <+28>: mov x20, x1 0x1018df8cc <+32>: mov x19, x0 0x1018df8d0 <+36>: ldr x9, [x20, #8] 0x1018df8d4 <+40>: cbnz x9, 0x1018dfb0c ; <+608> [inlined] magazine_chain_pop_head at gslice.c:617 0x1018df8d8 <+44>: ldr x8, [x20] 0x1018df8dc <+48>: ldr x9, [x8, #8] 0x1018df8e0 <+52>: cbnz x9, 0x1018dfb20 ; <+628> [inlined] magazine_chain_pop_head at gslice.c:618 0x1018df8e4 <+56>: mov x9, x8 0x1018df8e8 <+60>: ldr x8, [x8] 0x1018df8ec <+64>: ldr x10, [x8, #8] 0x1018df8f0 <+68>: cbnz x10, 0x1018dfb2c ; <+640> [inlined] magazine_chain_pop_head at gslice.c:619 0x1018df8f4 <+72>: mov x10, x8 0x1018df8f8 <+76>: ldr x8, [x8] 0x1018df8fc <+80>: ldr x11, [x8, #8] 0x1018df900 <+84>: cbnz x11, 0x1018dfb38 ; <+652> [inlined] magazine_chain_pop_head at gslice.c:620 0x1018df904 <+88>: mov x11, x8 0x1018df908 <+92>: ldr x8, [x8] 0x1018df90c <+96>: str x8, [x11] 0x1018df910 <+100>: str x11, [x10] 0x1018df914 <+104>: str x10, [x9] 0x1018df918 <+108>: str x9, [x20] 0x1018df91c <+112>: adrp x22, 5339 0x1018df920 <+116>: add x22, x22, #3672 ; =3672 0x1018df924 <+120>: add x0, x22, #56 ; =56 0x1018df928 <+124>: bl 0x101924b94 ; g_mutex_lock at gthread-posix.c:213 0x1018df92c <+128>: mov w23, w19 0x1018df930 <+132>: ldr x9, [x22, #64] 0x1018df934 <+136>: ldr x11, [x9, w19, uxtw #3] 0x1018df938 <+140>: mov x8, x20 0x1018df93c <+144>: mov x10, x20 0x1018df940 <+148>: cbz x11, 0x1018df94c ; <+160> at gslice.c:700 0x1018df944 <+152>: ldr x10, [x11, #8] 0x1018df948 <+156>: mov x8, x11 0x1018df94c <+160>: ldr x11, [x10] 0x1018df950 <+164>: ldr x11, [x11] 0x1018df954 <+168>: str x20, [x11, #8] 0x1018df958 <+172>: str x20, [x8, #8] 0x1018df95c <+176>: str x10, [x20, #8] 0x1018df960 <+180>: ldr x10, [x20] 0x1018df964 <+184>: ldr x11, [x10] 0x1018df968 <+188>: str x8, [x11, #8] 0x1018df96c <+192>: ldr x8, [x11] 0x1018df970 <+196>: str x21, [x8, #8] 0x1018df974 <+200>: ldr w8, [x22, #84] 0x1018df978 <+204>: cmp w8, #7 ; =7 0x1018df97c <+208>: b.lo 0x1018df9c8 ; <+284> [inlined] magazine_cache_update_stamp at gslice.c:706 0x1018df980 <+212>: mov x0, sp 0x1018df984 <+216>: bl 0x1018f1b24 ; g_get_current_time at gmain.c:2616 0x1018df988 <+220>: ldr w8, [sp] 0x1018df98c <+224>: movz w9, #0x3e8 0x1018df990 <+228>: ldr x10, [sp, #8] 0x1018df994 <+232>: movz x11, #0x20c4, lsl #48 0x1018df998 <+236>: movk x11, #0x9ba5, lsl #32 0x1018df99c <+240>: movk x11, #0xe353, lsl #16 0x1018df9a0 <+244>: movk x11, #0xf7cf 0x1018df9a4 <+248>: smulh x10, x10, x11 0x1018df9a8 <+252>: lsr x11, x10, #63 0x1018df9ac <+256>: lsr x10, x10, #7 0x1018df9b0 <+260>: add w10, w10, w11 0x1018df9b4 <+264>: madd w8, w8, w9, w10 0x1018df9b8 <+268>: stp wzr, w8, [x22, #84] 0x1018df9bc <+272>: ldr x10, [x20] 0x1018df9c0 <+276>: ldr x9, [x22, #64] 0x1018df9c4 <+280>: b 0x1018df9d4 ; <+296> at gslice.c:707 0x1018df9c8 <+284>: add w8, w8, #1 ; =1 0x1018df9cc <+288>: str w8, [x22, #84] 0x1018df9d0 <+292>: ldr w8, [x22, #88] 0x1018df9d4 <+296>: mov w11, w8 0x1018df9d8 <+300>: str x11, [x10, #8] 0x1018df9dc <+304>: str x20, [x9, x23, lsl #3] 0x1018df9e0 <+308>: ldr x9, [x22, #64] 0x1018df9e4 <+312>: ldr x10, [x9, x23, lsl #3] 0x1018df9e8 <+316>: ldr x10, [x10, #8] 0x1018df9ec <+320>: ldr x12, [x10] 0x1018df9f0 <+324>: ldr w11, [x12, #8] 0x1018df9f4 <+328>: sub w13, w8, w11 0x1018df9f8 <+332>: ldr x11, [x22, #32] 0x1018df9fc <+336>: cmp x13, x11 0x1018dfa00 <+340>: b.hs 0x1018dfa0c ; <+352> at gslice.c:710 0x1018dfa04 <+344>: add x0, x22, #56 ; =56 0x1018dfa08 <+348>: b 0x1018dfaf0 ; <+580> [inlined] magazine_cache_trim + 44 at gslice.c:710 0x1018dfa0c <+352>: movz x21, #0 0x1018dfa10 <+356>: ldr x15, [x12] 0x1018dfa14 <+360>: mov x16, x21 0x1018dfa18 <+364>: mov x21, x10 0x1018dfa1c <+368>: ldr x10, [x21, #8] 0x1018dfa20 <+372>: ldr x17, [x15, #8] 0x1018dfa24 <+376>: ldr x13, [x10] 0x1018dfa28 <+380>: ldr x14, [x13] 0x1018dfa2c <+384>: str x17, [x14, #8] 0x1018dfa30 <+388>: str x10, [x17, #8] 0x1018dfa34 <+392>: str xzr, [x15, #8] 0x1018dfa38 <+396>: ldr x15, [x15] 0x1018dfa3c <+400>: str xzr, [x15, #8] 0x1018dfa40 <+404>: str xzr, [x12, #8] 0x1018dfa44 <+408>: str x16, [x21, #8] 0x1018dfa48 <+412>: ldr x12, [x9, x23, lsl #3] 0x1018dfa4c <+416>: cmp x21, x12 0x1018dfa50 <+420>: b.eq 0x1018dfa7c ; <+464> [inlined] magazine_cache_trim + 96 at gslice.c:710 0x1018dfa54 <+424>: ldr w12, [x13, #8] 0x1018dfa58 <+428>: sub w12, w8, w12 0x1018dfa5c <+432>: cmp x12, x11 0x1018dfa60 <+436>: mov x15, x14 0x1018dfa64 <+440>: mov x12, x13 0x1018dfa68 <+444>: b.hs 0x1018dfa14 ; <+360> at gslice.c:710 0x1018dfa6c <+448>: add x0, x22, #56 ; =56 0x1018dfa70 <+452>: bl 0x101924c44 ; g_mutex_unlock at gthread-posix.c:232 0x1018dfa74 <+456>: cbnz x21, 0x1018dfa88 ; <+476> [inlined] magazine_cache_trim + 108 at gslice.c:710 0x1018dfa78 <+460>: b 0x1018dfaf4 ; <+584> at gslice.c:712 0x1018dfa7c <+464>: str xzr, [x9, x23, lsl #3] 0x1018dfa80 <+468>: add x0, x22, #56 ; =56 0x1018dfa84 <+472>: bl 0x101924c44 ; g_mutex_unlock at gthread-posix.c:232 0x1018dfa88 <+476>: add w20, w19, #1 ; =1 0x1018dfa8c <+480>: add x19, x22, #96 ; =96 0x1018dfa90 <+484>: mov x0, x19 0x1018dfa94 <+488>: bl 0x101924b94 ; g_mutex_lock at gthread-posix.c:213 0x1018dfa98 <+492>: cbz x21, 0x1018dfaec ; <+576> [inlined] magazine_cache_trim + 40 at gslice.c:710 0x1018dfa9c <+496>: lsl x20, x20, #4 0x1018dfaa0 <+500>: movz x1, #0 0x1018dfaa4 <+504>: mov x8, x21 0x1018dfaa8 <+508>: ldr x21, [x8, #8] 0x1018dfaac <+512>: str xzr, [x8, #8] 0x1018dfab0 <+516>: mov x22, x8 0x1018dfab4 <+520>: b 0x1018dfac0 ; <+532> at gslice.c:710 0x1018dfab8 <+524>: ldr x1, [x22, #8] 0x1018dfabc <+528>: mov x8, x22 0x1018dfac0 <+532>: cbnz x1, 0x1018dfadc ; <+560> [inlined] magazine_chain_pop_head at gslice.c:678 0x1018dfac4 <+536>: ldr x22, [x22] 0x1018dfac8 <+540>: mov x1, x8 0x1018dfacc <+544>: mov x0, x20 0x1018dfad0 <+548>: bl 0x1018df32c ; slab_allocator_free_chunk at gslice.c:1311 0x1018dfad4 <+552>: cbnz x22, 0x1018dfab8 ; <+524> [inlined] magazine_chain_pop_head at gslice.c:678 0x1018dfad8 <+556>: b 0x1018dfae8 ; <+572> [inlined] magazine_cache_trim + 36 at gslice.c:710 -> 0x1018dfadc <+560>: ldr x9, [x1] 0x1018dfae0 <+564>: str x9, [x8, #8] 0x1018dfae4 <+568>: b 0x1018dfacc ; <+544> [inlined] magazine_cache_trim + 8 at gslice.c:710 0x1018dfae8 <+572>: cbnz x21, 0x1018dfaa0 ; <+500> [inlined] magazine_chain_pop_head at gslice.c:678 0x1018dfaec <+576>: mov x0, x19 0x1018dfaf0 <+580>: bl 0x101924c44 ; g_mutex_unlock at gthread-posix.c:232 0x1018dfaf4 <+584>: sub sp, x29, #48 ; =48 0x1018dfaf8 <+588>: ldp x29, x30, [sp, #48] 0x1018dfafc <+592>: ldp x20, x19, [sp, #32] 0x1018dfb00 <+596>: ldp x22, x21, [sp, #16] 0x1018dfb04 <+600>: ldp x24, x23, [sp], #64 0x1018dfb08 <+604>: ret 0x1018dfb0c <+608>: ldr x8, [x9] 0x1018dfb10 <+612>: str x8, [x20, #8] 0x1018dfb14 <+616>: mov x8, x20 0x1018dfb18 <+620>: mov x20, x9 0x1018dfb1c <+624>: b 0x1018df8dc ; <+48> [inlined] magazine_chain_pop_head at gslice.c:618 0x1018dfb20 <+628>: ldr x10, [x9] 0x1018dfb24 <+632>: str x10, [x8, #8] 0x1018dfb28 <+636>: b 0x1018df8f0 ; <+68> [inlined] magazine_chain_pop_head + 4 at gslice.c:619 0x1018dfb2c <+640>: ldr x11, [x10] 0x1018dfb30 <+644>: str x11, [x8, #8] 0x1018dfb34 <+648>: b 0x1018df900 ; <+84> [inlined] magazine_chain_pop_head + 4 at gslice.c:620 0x1018dfb38 <+652>: ldr x12, [x11] 0x1018dfb3c <+656>: str x12, [x8, #8] 0x1018dfb40 <+660>: b 0x1018df90c ; <+96> [inlined] magazine_chain_prepare_fields + 60 at gslice.c:691
Thanks for taking the time to report this. This bug report isn't very useful because it doesn't describe the bug well. What is the "iOS screen bug" exactly? What is the current behavior, and the expected behavior? If you have time and can still reproduce the bug, please read https://bugzilla.gnome.org/page.cgi?id=bug-writing.html and add a more useful description to this bug. When providing a better description, please reset the status of this bug report from NEEDINFO to its previous status.