Hiram-Wong / ZyPlayer

跨平台桌面端视频资源播放器,免费高颜值.
MIT License
5.44k stars 708 forks source link

[播放窗口] 弹出错误提示: Uncaught Exception: TypeError: Cannot read properties of undefined (reading 'width') #322

Closed mf1389004071 closed 2 months ago

mf1389004071 commented 2 months ago

zyplayer 版本

3.3.7

重现步骤

  1. 电脑环境(MacBookPro11,4; 系统版本12.7.6 (21H1320); inter芯片)
  2. 打开软件
  3. 点击任何影视资源, 进入播放窗口
  4. 都会提示此错误, 导致永远无法打开最终的播放窗口

报错信息

A JavaScript error occurred in the main process

Uncaught Exception: TypeError: Cannot read properties of undefined (reading 'width') at createPlay (/Applications/zyplayer.app/Contents/Resources/app.asar/out/main/index.js:22163:36) at IpcMainImpl. (/Applications/zyplayer.app/Contents/Resources/app.asar/out/main/index.js:22431:9) at IpcMainImpl.emit (node:events:513:28) at EventEmitter. (node:electron/js2c/browser_init:2:81099) at EventEmitter.emit (node:events:513:28)

实际截图如下

image

期望结果

可正常通过播放窗口观看查询到的影视剧

实际结果

一直弹出报错信息, 然后无法打开播放窗口, 无法观看影视剧

系统信息

电脑环境(MacBookPro11,4; 系统版本12.7.6 (21H1320); inter芯片)

补充说明

No response

Hiram-Wong commented 2 months ago

该问题由于数据库数据没有按照要求导致,查看历史issue有解决方案