简体   繁体   English

为什么在 Linux 中完美运行的同一个 Electron 应用程序在 Windows 10 中崩溃(重新加载后)?

[英]Why same Electron app that works perfectly in Linux crashes in Windows 10 (after a reload)?

On a 64-bit Windows machine, I'm running an Electron app that uploads a file and logs its first line in the browser's console.在 64 位 Windows 机器上,我正在运行一个 Electron 应用程序,该应用程序上传文件并将其第一行记录在浏览器的控制台中。 Everything works fine until I reload the app.一切正常,直到我重新加载应用程序。 Once reloaded, every subsequent file uploads do not log any line.重新加载后,每个后续文件上传都不会记录任何行。 However, I can see the file is uploaded in the console log as shown in the screenshot below,但是,我可以看到文件已上传到控制台日志中,如下面的屏幕截图所示,

Electron version 10.1.2电子版本10.1.2

Windows version Windows 10 Enterprise (1909) Windows 版本Windows 10 企业版 (1909)

To Reproduce再现

  1. Run the electron fiddle gist from the link below https://gist.github.com/wasimaftab/6bd20e0ec4540ddc855d2744115bdb42从以下链接运行电子小提琴要点https://gist.github.com/wasimaftab/6bd20e0ec4540ddc855d2744115bdb42
  2. click Upload File button and upload any text file In the browser's console and you should see first line of the uploaded file as highlighted using red rectangle in the following screenshot,单击“上传文件”按钮并上传任何文本文件在浏览器的控制台中,您应该在以下屏幕截图中看到使用红色矩形突出显示的上传文件的第一行,

在此处输入图片说明

  1. Now reload the app by pressing CTRL + SHIFT + R现在按 CTRL + SHIFT + R 重新加载应用程序
  2. click Upload File button and upload any text file单击上传文件按钮并上传任何文本文件
  3. you will NOT see the first line of the uploaded file as depicted in the following screenshot您不会看到上传文件的第一行,如下面的屏幕截图所示

在此处输入图片说明

此错误已在电子 v10.1.5 中修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Windows、Mac 和 Linux 上分发 Electron 应用程序 - Distributing an Electron app on Windows, Mac and Linux 页面重新加载后Websocket ruby​​应用程序崩溃 - Websocket ruby app crashes after page reload 打印后电子崩溃 - Electron crashes after print Windows 10上的电子 - Electron on windows 10 Linux 上的透明 Windows (Electron) - Transparent Windows on Linux (Electron) 如何在Windows 10上的电子应用程序中禁用键盘快捷键Alt + Tab? - How to Disable keyboard shortcuts Alt + Tab in electron app on Windows 10? Electron App:关闭屏幕键盘 Windows 10 平板电脑 - Electron App: Turn off On-Screen Keyboard Windows 10 Tablet 在Linux上部署后未能加载某些JS文件。 在Windows上也一样 - Failing to load some JS files after deploying on linux. Same works on windows 我正在使用 node js 开发一个应用程序,它在本地运行良好,但在我尝试将其上传到 heroku 时崩溃,它说 cat find dotenv - i am developing an app with node js , it works perfectly locally but crashes anytime i try to upload it to heroku,it says cat find dotenv AdonisJs:为什么迁移在无符号附近标记语法错误,而其他迁移具有相同的语法并且可以完美运行? - AdonisJs: Why is the migration marking a syntax error near the unsigned, when other migration have the same syntax and works perfectly?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM