Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Runtime Error: "Attempt to perform arithmetic on field 'contentHeight' (a nil value)"
Started by beesh Dec 27 2013 04:51 PM

* * * * * 1 votes
27 replies to this topic
[TOPIC CONTROLS]
Page 2 of 2 1 2
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

corona2824

[GLOBAL: userInfoPane.html]
corona2824
  • Observer

  • 12 posts
  • Corona SDK

Thing is we don't have the stack.

 

I don't know why, but most of the time errors on device don't show any stack, just some "?" everywhere.

 

And it only happens on device, never on the simulator

 

More precisely, our errors look like that:

 

<Warning>: Runtime error
?:0: attempt to index field '?' (a nil value)
stack traceback:
?: in function 'changeSize'
?: in function 'refresh'
?: in function <?:48>
?: in function 'dispatchEvent'
?: in function '_nextTransition'
?: in function <?:1492>
?: in function 'gotoScene'
?: in function 'switchScene'
?: in function 'clickCallback'
?: in function 'click'
?: in function <?:60>
?: in function <?:221>
 
So, kinda hard to debug with all those "?"


[TOPIC: post.html]
#27

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Can you determine more specifically when it occurs? You mentioned when changing scenes. So, the scene you're leaving contains the scrollView+tableView combo unit, or the scene you're going to? Are you using the Composer library to manage scenes? Are the widgets properly located inside the scene's view?

 

Brent



[TOPIC: post.html]
#28

corona2824

[GLOBAL: userInfoPane.html]
corona2824
  • Observer

  • 12 posts
  • Corona SDK

The proble is this happened randomly, I think it was on a scene change but I am not even sure, and it wasn't always on the same screen.

 

I haven't gotten this error since my last post, if I get it I will post the details here.

 

And yes we're using composer. As for our widgets, in most of our scenes we destroy dynamic content (including lists) on the hide, and create it back on the show.




[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]