TeamFlos / phira

GNU General Public License v3.0
1.35k stars 108 forks source link

[Bug] Crash/Stuck when playing video background #279

Open YuevUwU opened 9 months ago

YuevUwU commented 9 months ago

发生版本:仅v0.6.2 (已测试Android与iOS) 中文标题:播放视频背景时闪退/卡死


谱面:[13080] ♿Nuclear-Star♿ 分区:未上架 - 整活 演示:视频 具体情况:

  1. HONOR PAD V7 PRO (Android 11) 清黄键海(2228combo)时造成闪退 (即视频背景播放时)
  2. POCO M5/M5s (Android 13) (v8a) 黄键海期间(约3171,浮动),帧率由120降至60,直接卡死 (即视频背景播放时)

谱面:[2789] 耳光侠 分区:未上架 - 整活 演示:视频 具体情况:

  1. HONOR PAD V7 PRO (Android 11) 进入谱面闪退
  2. POCO M5/M5s (Android 11) (v8a) 进入谱面卡死,未播放视频背景

谱面:[13967] enchanted love 分区:未上架 - 常规

  1. iPad(?) (iOS 17.4.1) 进入谱面闪退
  2. POCO M5/M5s (Android 11) (v8a) 进入谱面卡死

设备提供者: HONOR PAD V7 PRO:Mosacaio POCO M5/M5s:YuevUwU iPad(?):sword

YuevUwU commented 8 months ago

LINUX BINARY LOG OUTPUT:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `408960`,
 right: `414720`', /home/mivik/.cargo/git/checkouts/prpr-miniquad-4ecc38303101db59/e8deff6/src/graphics/texture.rs:302:9
stack backtrace:
   0:     0x56165f5a90aa - <unknown>
   1:     0x56165f5d4d1e - <unknown>
   2:     0x56165f5a2535 - <unknown>
   3:     0x56165f5a8e75 - <unknown>
   4:     0x56165f5aa7ff - <unknown>
   5:     0x56165f5aa53b - <unknown>
   6:     0x56165f5aaf69 - <unknown>
   7:     0x56165f5aad09 - <unknown>
   8:     0x56165f5a955c - <unknown>
   9:     0x56165f5aaa12 - <unknown>
  10:     0x56165f5d1f13 - <unknown>
  11:     0x56165f5d22cf - <unknown>
  12:     0x56165f57429b - <unknown>
  13:     0x56165f57e253 - <unknown>
  14:     0x56165ecebb57 - <unknown>
  15:     0x56165ece94b4 - <unknown>
  16:     0x56165eccc36c - <unknown>
  17:     0x56165ecab368 - <unknown>
  18:     0x56165e584112 - <unknown>
  19:     0x56165e586777 - <unknown>
  20:     0x56165f3d155d - <unknown>
  21:     0x56165e565a66 - <unknown>
  22:     0x56165e5660a0 - <unknown>
  23:     0x56165e50fc5e - <unknown>
  24:     0x56165e5db715 - <unknown>
  25:     0x56165e45d0f3 - <unknown>
  26:     0x56165e45d109 - <unknown>
  27:     0x56165f59a32c - <unknown>
  28:     0x56165e45d165 - <unknown>
  29:     0x7f37e5515d90 - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  30:     0x7f37e5515e40 - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:392:3
  31:     0x56165e45d025 - <unknown>
  32:                0x0 - <unknown>
Segmentation fault (core dumped)
YuevUwU commented 1 month ago

后续补充,以2789为例,length of buf[0] 变成414720,预期为852*480=408960 (format=Alpha, size加成系数=1) 现buf中YUV值长度如下: (yuv420p) buf[0] (Y): 414720 (预期408960) (data) buf[1] (U): 107520 (预期204480) (data_half) buf[2] (V): 107520 (预期204480) (data_half) 几个数字有些特性(可能误导) 864*480=414720 (18:10) 448*240=107520 (28:15) 0.6.4版去掉miniquad所有assert後,画面变得异常地...啥(如图) 另外这确实是0.6.2加入unlockVideo功能后有的bug,直到0.6.4都存在 希望对日后想修复这个Bug的开发者有些帮助 (另外这可能不是 OS/Device Compatibility Bug)

Screenshot_2024-10-21-03-19-15-387_com.anydesk.anydeskandroid-edit.jpg

FOTL09 commented 1 day ago

Hello Dev of Phira, if you see this comment then im messaging to you, because of a thing happened. It started on newest ver of Phira, after i downloaded to my device and it happened, here is the link to file : https://drive.google.com/file/d/1NdasAxWCQJ5YweBqqC4ro0Jfg5Ps3Z20/view *After added and im planning to play it and it happened :

  1. Mobile : delayed and cannot exit ( freezed )
  2. PC : crashed immediately *I hope on dev can see this and fix it on near future and dont miss it The version : from v0.6.0 to v0.6.5

video *Here is my record on PC, it has 15 seconds, but when i sent to Discord then its only 12 seconds, because of the crashes so it affected to my record also

*Best regards, Fry

YuevUwU commented 1 day ago

Tested on Linux self-built based on v0.6.4 And also Windows v0.6.5

thread 'main' panicked at /home/alan54692/.cargo/git/checkouts/prpr-miniquad-4ecc38303101db59/e8deff6/src/graphics/texture.rs:302:9:
assertion `left == right` failed
  left: 388800
 right: 397440
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at core/src/panicking.rs:221:5:
panic in a function that cannot unwind
... (The same log after it)