|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Allocating 1.8GB memory.... problem?
I seem to have an issue... Our logomotion code, recompiled for this year, boots, until it tries to allocate 1.8GB memory:
Quote:
|
|
#2
|
|||
|
|||
|
Re: Allocating 1.8GB memory.... problem?
Well, you should post your code so we know what exactly is allocating 2GB of memory.
![]() |
|
#3
|
||||
|
||||
|
Re: Allocating 1.8GB memory.... problem?
our logomotion code, recompiled from last year: https://bitbucket.org/byteit101/logo/src
It worked for us perfectly at the competitions, so not sure why its failing this year.... |
|
#4
|
||||
|
||||
|
Re: Allocating 1.8GB memory.... problem?
I looked over your code briefly and didn't see anything that looks like it would cause the problem. For one thing you don't do many (any?) manual memory/object allocations (so that rules out a lot of potential problems I was looking for).
I'd try putting a print in the first line of your robot's constructor and see if the crash happens before or after that. Assuming it happens before your print, then you'll probably have to start commenting member variables and their associated code out to figure out where the problem is. Nothing against ZomB but I'd try commenting that out first; maybe you need an updated version of it that is compatible with this year's WPI lib? Or your code is trying to talk to an older ZomB but you're linking in the new code? Just a guess. |
|
#5
|
||||
|
||||
|
Re: Allocating 1.8GB memory.... problem?
Quote:
strange.... |
|
#6
|
|||
|
|||
|
Re: Allocating 1.8GB memory.... problem?
Minimal Test Case?
Edit: I mean, post it. |
|
#7
|
||||
|
||||
|
Re: Allocating 1.8GB memory.... problem?
Ok, did you do the print test? Is the crash is before or after your robot's constructor?
|
|
#8
|
||||
|
||||
|
Re: Allocating 1.8GB memory.... problem?
Not yet, I'll try that on Monday. The really funny thing is I got it working last tuesday, and did not touch it after that, but on wednesday at the school open house, it started this issue
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|