Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats crash on Linux x64 with single storyboard (with patch) #111

Open
jbuchbinder opened this issue Dec 31, 2014 · 0 comments
Open

Stats crash on Linux x64 with single storyboard (with patch) #111

jbuchbinder opened this issue Dec 31, 2014 · 0 comments

Comments

@jbuchbinder
Copy link

Got this errors when trying to view stats on Linux x64 build:

[24711:1231/115544:INFO:CONSOLE(1665)] "Uncaught TypeError: Cannot read property 'elementsCount' of undefined", source: file:///tmp/.org.chromium.Chromium.2MyYKo/js/fountainmanager.js (1665)

The following patch seems to stop the crash, but messes up some of the stats:

diff --git a/node-webkit-src/js/fountainmanager.js b/node-webkit-src/js/fountain
index 1e4c6ff..307bd44 100644
--- a/node-webkit-src/js/fountainmanager.js
+++ b/node-webkit-src/js/fountainmanager.js
@@ -1651,8 +1651,8 @@ function hexToRgb(hex) {
     var elementsCount = 0;
     var currentScene = 0;
     for (var i=0; i<objects.length; i++) {
+      if (typeof sceneStats[objects[i].scene-1] == 'undefined') { sceneStats[ob
       if (currentScene != objects[i].scene) {
-        if (typeof sceneStats[objects[i].scene-1] == 'undefined') { sceneStats[
         sceneStats[objects[i].scene-1]["elementsCount"] = 0;
         currentScene = objects[i].scene;
       }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant