element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Error while running a cpp project on xillinux on zedboard but no error for running in Linux PC.
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 315 subscribers
  • Views 566 views
  • Users 0 members are here
Related

Error while running a cpp project on xillinux on zedboard but no error for running in Linux PC.

Former Member
Former Member over 12 years ago

My cpp project compiles and runs as well successfully with correct results in a linux based pc. But the same cpp project luckily gets compiled in xillinux platform on Zedboard but while running it makes a logical error in computation and eventually aborts as its programmed to abort if something goes wrong.

Error:
Assertion fails and then aborts and gets cored dumped.
The assertion is to check a variable's value if its less than or equal to 1. But it gets a value 255 instead 1 or 0 or -1.

Gcc compiler version in my pc running centos:
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)

Gcc compiler version in xillinux (zedboard):
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

It seems to be some incompatibility but not sure about the cause. How to get rid of this problem?
Can anyone help me in this please..?

Thanks.
-Mahesh.

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago

    It seems to be a casting problem. Are you working with char variables? Can you post the code the problem appears

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    Thanks atkarapa for replying.. Actually its a complex cpp project of video codecs. I will lead to many branches and leaves to post here even for a snippet.
    What do you think about stdint.h? This is under a directory named 'compat' . Any idea ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    No idea ...
    Try to compile with -Wall and post the warnings.
    I assume you do calculations which might fit in a 64bit architecture and causing errors in 32bit arch( ARM is a 32bit arch) . Watch the arithmetic operations you are doing.
    You can at least post a snippet of the code that works on the vars you checking

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    Thanks for your reply. Actually it is a complex project of HEVC codec and it is having so many files.Now i am sending the code related links,
    the below link is for codec related code files.
    https://hevc.hhi.fraunhofer.de/HM-doc/files.html

    In this i am getting assertion failure problem
    in TComPrediction.cpp file(Line no:501).



    it is available in the path
    HM-4.0/source/Lib/TLibCommon/TComPrediction.cpp
    only while running the zedboard but in pc it works fine..


    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    From a quick look and considering it has to do with video encoding/decoding there has to be some casting error since an
    (unsigned char)-1 equals to a value of 255.
    Track the value m_piRefIdx and see how it is assigned.
    It really is a complex code !!!
    It seems a compiler thing as different compilers see certain things differently. I would start by installing on the desktop a gcc version 4.6.x or using an older CodeSourcery Tool that has a 4.4.x compiler.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    Thanks for your reply,I am trying to debugging the refidx values in various files.
    But today i tried with the some other version of codec's
    named as HM-1.0. It is working fine on this Zedboard os aswell as my Pc also.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Hi Atkarapa,

    Thanks for your previous replies,
    I tried the HEVC codes execution through os on Zedboard is working fine and also i tried the sample Demo's( hello-world and custom pheriperal examples) through PlanAhead tool without using OS on ZedBoard.

    Now i am trying to running the my HEVC code files through PlanAhead tool(without os) like sample Demo's.
    In this way of running of my codes without using OS,
    i am facing the few problem's,

    How to add the my HEVC code files to SDK through PlanAhead tool instead of sample Demo files(without OS).
    Can you suggest me this way of running the huge codes through PlanAhead tool(without OS).

    Thanks,
    Mahesh.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube