Title: Eel sometimes takes infinitely long to render a webpage · Issue #702 · python-eel/Eel · GitHub
Open Graph Title: Eel sometimes takes infinitely long to render a webpage · Issue #702 · python-eel/Eel
X Title: Eel sometimes takes infinitely long to render a webpage · Issue #702 · python-eel/Eel
Description: Eel version 0.16.0 Describe the bug At seemingly random, eel never exits the loading page To Reproduce Steps to reproduce the behavior: create simple application using eel run it multiple times until the page fails to load Expected behav...
Open Graph Description: Eel version 0.16.0 Describe the bug At seemingly random, eel never exits the loading page To Reproduce Steps to reproduce the behavior: create simple application using eel run it multiple times unt...
X Description: Eel version 0.16.0 Describe the bug At seemingly random, eel never exits the loading page To Reproduce Steps to reproduce the behavior: create simple application using eel run it multiple times unt...
Opengraph URL: https://github.com/python-eel/Eel/issues/702
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Eel sometimes takes infinitely long to render a webpage","articleBody":"**Eel version**\r\n0.16.0\r\n\r\n**Describe the bug**\r\nAt seemingly random, eel never exits the loading page \r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. create simple application using eel\r\n2. run it multiple times until the page fails to load\r\n\r\n**Expected behavior**\r\nThe page should have loaded properly every time\r\n**System Information**\r\n - OS: Microsoft Windows 11 Home System Type\tx64-based PC\r\n - Browser: chrome 116\r\n - Python Distribution: Python 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)] on win32\r\n\r\n**Additional context**\r\nas reccomended by https://github.com/python-eel/Eel/issues/393, i added the print statement. Every file parses even when it doesnt load properly.\r\n\r\n```python\r\nimport chess\r\nimport eel\r\n\r\nboard = chess.Board()\r\nprint(\"Initialised\")\r\n@eel.expose\r\ndef _validate_move(source, destination, piece) -> bool:\r\n if not (board.turn == chess.WHITE and piece[0] == \"w\" or board.turn == chess.BLACK and piece[0] == \"b\") or source == destination:\r\n return False\r\n if chess.Move.from_uci(f\"{source}{destination}\") in board.legal_moves:\r\n board.push(chess.Move.from_uci(f\"{source}{destination}\"))\r\n print(board.fen())\r\n return True\r\n else:\r\n return False\r\n \r\n print(\"F\")\r\neel.init(r\"D:\\coding\\Python\\chess\\opening_trainer\\eel_app\\web\")\r\neel.start(\"main.html\",disable_cache=True)\r\nprint(\"G\")\r\n```\r\n```html\r\n\u003c!DOCTYPE html>\r\n\u003chtml>\r\n \u003chead>\r\n \u003cmeta charset=\"utf-8\">\r\n \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n \u003ctitle>\u003c/title>\r\n \u003cmeta name=\"description\" content=\"\">\r\n \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n \u003clink rel=\"stylesheet\" href=\"css/chessboard-1.0.0.min.css\">\r\n \u003cscript src=\"https://code.jquery.com/jquery-1.12.4.min.js\">\u003c/script>\r\n \u003cscript src=\"js/chessboard-1.0.0.min.js\">\u003c/script>\r\n \u003cscript src=\"mainjs.js\" defer>\u003c/script>\r\n \u003cscript type=\"text/javascript\" src=\"/eel.js\">\u003c/script>\r\n \u003clink rel=\"stylesheet\" href=\"main.css\">\u003c/linkt>\r\n \r\n \r\n \r\n \u003c/head>\r\n \u003cbody>\r\n \u003cdiv id=\"main-container\" class=\"main-horizongal-flex\">\r\n \u003cdiv id=\"board-and-pgn-container\">\r\n \u003cdiv id=\"board\" style=\"width: 400px\">\u003c/div>\r\n \u003cdiv id=\"pgn\">PGN HERE\u003c/div>\r\n \u003c/div>\r\n \u003cdiv id=\"moves-container\">\r\n \u003cul id=\"moves\" class=\"moves-options\">\r\n \u003cli>Move 1\u003c/li>\r\n \u003cli>Move 2\u003c/li>\r\n \u003c/ul>\r\n \u003c/div>\r\n \u003c/div>\r\n \u003c/body>\r\n\u003c/html>\r\n```\r\n```javascript\r\n\r\nlet config = {\r\n draggable: true,\r\n position: 'start',\r\n onDrop: onDrop\r\n }\r\n \r\n\r\n\r\nlet board = ChessBoard(\"board\", config);\r\nfunction move(source, target, piece, newPos){\r\n board.position(newPos,false);\r\n if(piece==\"wK\"&&source==\"e1\"&&(target==\"g1\"||target==\"c1\")){\r\n if(target==\"g1\"){\r\n board.move(\"h1-f1\");\r\n } else{\r\n board.move(\"a1-d1\");\r\n }\r\n } else if(piece==\"bK\"&&source==\"e8\"&&(target==\"g8\"||target==\"c8\")){\r\n if(target==\"g8\"){\r\n board.move(\"h8-f8\");\r\n } else{\r\n board.move(\"a8-d8\");\r\n }\r\n }\r\n}\r\nasync function moveIfValid(source, target, piece, newPos){\r\n await eel._validate_move(source, target, piece)(function(result){\r\n if(result==true){\r\n move(source, target, piece,newPos);\r\n }\r\n })\r\n}\r\nfunction onDrop(source, target, piece, newPos, oldPos, orientation){\r\n moveIfValid(source, target,piece, newPos);\r\n return \"snapback\";\r\n}\r\n```","author":{"url":"https://github.com/padfoot9445","@type":"Person","name":"padfoot9445"},"datePublished":"2023-09-23T11:45:55Z","url":"https://github.com/python-eel/Eel/issues/702"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7d045c8c-9a47-3ca1-6c42-8320fcba9afb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D36:EF4D6:56BD2D:7A42C7:6AFDCCA7 |
| html-safe-nonce | 680212ff750824c73ce7eed554c796e8dbfa2f6cacf215791ff7caf68998ec51 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDM2OkVGNEQ2OjU2QkQyRDo3QTQyQzc6NkFGRENDQTciLCJ2aXNpdG9yX2lkIjoiNzU0OTgzNDIzMzk4NzU5NTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b16dcd42205118611d8c1368ce65e926affb3fba740c38848709197db89ae8b6 |
| hovercard-subject-tag | issue:1909840370 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-eel/Eel/702/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bcc1766fb802854d46c06112fc1d9591db487b870a9dbd5f404faa659ae29fd3/python-eel/Eel/issues/702 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bcc1766fb802854d46c06112fc1d9591db487b870a9dbd5f404faa659ae29fd3/python-eel/Eel/issues/702 |
| og:image:alt | Eel version 0.16.0 Describe the bug At seemingly random, eel never exits the loading page To Reproduce Steps to reproduce the behavior: create simple application using eel run it multiple times unt... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | padfoot9445 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-eel/Eel git https://github.com/python-eel/Eel.git |
| octolytics-dimension-user_id | 114726397 |
| octolytics-dimension-user_login | python-eel |
| octolytics-dimension-repository_id | 115559503 |
| octolytics-dimension-repository_nwo | python-eel/Eel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 115559503 |
| octolytics-dimension-repository_network_root_nwo | python-eel/Eel |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width