Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    PyTrack GPS - MemoryError

    Scheduled Pinned Locked Moved Expansion Board
    pytracklopymemoryerrorgps
    1 Posts 1 Posters 818 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      bogd
      last edited by bogd

      I'm trying to test the Pytrack GPS by using the sample code provided by Pycom. The problem is that the code keeps crashing after several reads (sometimes even after a single one!), with "memory allocation failed":

      RTC Set from NTP to UTC: (1970, 1, 1, 0, 3, 19, 594962, None)
      Adjusted from UTC to EST timezone (1970, 1, 1, 2, 3, 19, 3, 1)

      (None, None) - (1970, 1, 1, 0, 3, 49, 703270, None) - 37728
      Traceback (most recent call last):
      File "<stdin>", line 36, in <module>
      File "/flash/lib/L76GNSS.py", line 56, in coordinates
      MemoryError: memory allocation failed, allocating 4064 bytes

      Unfortunately, I have no idea what to do in order to solve this issue. Can anyone help point me in the right direction?

      As far as I can tell, I'm not the only one experiencing the issue - see https://github.com/pycom/pycom-libraries/issues/35 . But that issue has been open for more than a month, and Pycom seems to be ignoring it...

      [ Edit: Looks like I should have searched better before posting - I just found a very similar post in the SiPy topic.

      https://forum.pycom.io/topic/2200/solved-sipy-pytrack-gps-example-simplified-to-basic-gps-only-fails-with-memoryerror

      I will try the fix recommended there, and see what happens... ]

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post

      Pycom on Twitter

      Pycom