Go to Post You know this crazy ChiefDelphi... nothing but useless information and kids ranting about pizza. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2012, 15:53
detruby detruby is offline
Dave Truby
AKA: Dave Truby
FRC #4145 (Wolf Pack)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Columbus
Posts: 11
detruby is an unknown quantity at this point
Smart Dashboard - SquareTrackerExtension quit unexpectedly

Running Smart Dashboard extension (example) SquareTrackerExtension - after a short time dashboard crashes with

quit unexpectedly while using the libopencv_code.2.3.dylib plugin.

I am running on mac OSX. I have attached the osx crash report.
Attached Files
File Type: txt smartdashboard-crash-report-20120130.txt (88.6 KB, 19 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2012, 22:33
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Smart Dashboard - SquareTrackerExtension quit unexpectedly

[speculation based on an observation from my last meeting that I never got around to investigating]

Could you run it and monitor your memory usage? I think the SmartDashboard has a memory leak. If so you should notice some very drastic accumulating memory usage.

EDIT: Could be reading the crash report wrong, but I think I might be right:
Quote:
Physical Memory: Page Size = 4k, Total = 4096M, Free = 9M
<snipped>
TOTAL 1.4G

Last edited by basicxman : 30-01-2012 at 22:35.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2012, 16:13
detruby detruby is offline
Dave Truby
AKA: Dave Truby
FRC #4145 (Wolf Pack)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Columbus
Posts: 11
detruby is an unknown quantity at this point
Re: Smart Dashboard - SquareTrackerExtension quit unexpectedly

I started the osx activity monitor and then ran the smart dashboard. after adding the SquareTracker widget to the dashboard - virtual memory continued to climb until it ran out - then crashed. From watching the memory while changing what the camera sees - it appears to only climb while objects are found (red border is drawn). I am attaching the photo (I hold a color print out in this front of the camera) and the SquareTracker source (I made a couple changes so it tracks better with the photo).

PS. before doing the test above, I deleted all libraries and source I was using and re-downloaded to make sure I had the latest versions of the smart dashboard (and the internally related projects) and wpilibjava. For all lines of java I changed in SquareTrackerExtension.java, I left the original line (commented out) - if that helps.

Dave Truby, team 4145 mentor
Attached Thumbnails
Click image for larger version

Name:	IMG_20120123_210600.jpg
Views:	36
Size:	393.0 KB
ID:	11654  
Attached Files
File Type: java SquareTrackerExtension.java (3.7 KB, 35 views)
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2012, 08:01
detruby detruby is offline
Dave Truby
AKA: Dave Truby
FRC #4145 (Wolf Pack)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Columbus
Posts: 11
detruby is an unknown quantity at this point
Re: Smart Dashboard - SquareTrackerExtension quit unexpectedly

I see a fix was committed to the trunk. I updated from the trunk, re-built and tested. It runs a lot longer before running out of memory.

Dave Truby
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi