{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/7268","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/7268/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/7268/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/7268/events","html_url":"https://github.com/godotengine/godot/issues/7268","id":194333181,"number":7268,"title":"Two scenes loading eachother (using export) causes Crash","user":{"login":"Tybobobo","id":6776092,"avatar_url":"https://avatars.githubusercontent.com/u/6776092?v=3","gravatar_id":"","url":"https://api.github.com/users/Tybobobo","html_url":"https://github.com/Tybobobo","followers_url":"https://api.github.com/users/Tybobobo/followers","following_url":"https://api.github.com/users/Tybobobo/following{/other_user}","gists_url":"https://api.github.com/users/Tybobobo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tybobobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tybobobo/subscriptions","organizations_url":"https://api.github.com/users/Tybobobo/orgs","repos_url":"https://api.github.com/users/Tybobobo/repos","events_url":"https://api.github.com/users/Tybobobo/events{/privacy}","received_events_url":"https://api.github.com/users/Tybobobo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-08T13:16:26Z","updated_at":"2016-12-09T23:56:18Z","closed_at":null,"body":"**Operating system or device - Godot version:**\r\n2.1.1 stable (on Steam)\r\n\r\n**Issue description** (what happened, and what was expected):\r\nWhen I hit play, the game freezes and will not start.\r\n I have no idea what causes this, but I suspect it has something with using **export (PackedScene),** and having the scenes reference each-other. What is supposed to happen, is that scene_1 is supposed to change to scene_2 when pressing space (ui_select) - and scene_2 to change back to 1 when pressing space again. I would understand why this would happen if they would automatically load eachother (thus causing a loop), but neither scene is instancing the other at startup, so it is odd.\r\n\r\n**_Edit 1:_** I can confirm that it still crashes, even if I do not run any code. It is definitely because of the e**xport (PackedScene)** that refer each-other.\r\n\r\n**_Edit 2:_** If you change the next_scene inside scene_2.tscn\r\n  `export (PackedScene) var next_scene`\r\ninto \r\n  `onready var next_scene = preload(\"res://scene_1/scene_1.tscn\")`\r\nIt works perfectly. It has something to do with export. \r\n\r\n**Steps to reproduce:**\r\n1. Download project files:\r\n[Scene Transitioning - Bug.zip](https://github.com/godotengine/godot/files/639481/Scene.Transitioning.-.Bug.zip)\r\n\r\n2. Hit play.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/266156014","html_url":"https://github.com/godotengine/godot/issues/7268#issuecomment-266156014","issue_url":"https://api.github.com/repos/godotengine/godot/issues/7268","id":266156014,"user":{"login":"williamd1k0","id":10428035,"avatar_url":"https://avatars.githubusercontent.com/u/10428035?v=3","gravatar_id":"","url":"https://api.github.com/users/williamd1k0","html_url":"https://github.com/williamd1k0","followers_url":"https://api.github.com/users/williamd1k0/followers","following_url":"https://api.github.com/users/williamd1k0/following{/other_user}","gists_url":"https://api.github.com/users/williamd1k0/gists{/gist_id}","starred_url":"https://api.github.com/users/williamd1k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamd1k0/subscriptions","organizations_url":"https://api.github.com/users/williamd1k0/orgs","repos_url":"https://api.github.com/users/williamd1k0/repos","events_url":"https://api.github.com/users/williamd1k0/events{/privacy}","received_events_url":"https://api.github.com/users/williamd1k0/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T23:56:18Z","updated_at":"2016-12-09T23:56:18Z","body":"I believe that it happened with me too.\r\nI created a scene manager to change scenes. I exported the next scene value like this:\r\n\r\n```gdscript\r\nexport(String, FILE, \"*.tscn\") var next_scene\r\n```\r\nThis works ok.\r\n\r\n***\r\nYesterday I tried to change this system to export the actual `PackedScene` and it crashes for no apparent reason.\r\nTons of `Parse Error: [ext_resource] referenced nonexistent resource at:` in the console."}}
{"actor":{"display_login":"williamd1k0"}}