Linux Crash with MathUtils.h:74 assertion fail.
#1
Lately my xbmc keeps crashing on Xvid sd videos. Noticed this just a day ago when I want to re-watch some old episodes.

Code:
xbmc.bin: /var/tmp/portage/media-tv/xbmc-12.2/work/xbmc-12.2/xbmc/utils/MathUtils.h:74: int MathUtils::round_int(double): Assertion `x > static_cast<double>((-2147483647 - 1) / 2) - 1.0' failed.

xorg.log -> http://pastebin.com/04D3VwYS
gdb log -> http://pastebin.com/jqWUsGpk
mediainfo on this particular file http://pastebin.com/m0ac3gXw

Code:
uname -a
Linux htpc 3.8.9-gentoo #2 SMP Fri May 31 10:16:17 CEST 2013 i686 AMD Athlon(tm) Dual Core Processor 4850e AuthenticAMD GNU/Linux

Is that glibc or xbmc bug?
Reply
#2
I am getting the same error on my Mac running OSX 10.7.5. Did you find a solution?
Reply
#3
I have the same issue. Happens when XBMC is idle (running a screensaver)

I've checked the source and found this:

// GCC does something stupid with optimization on release builds if we try
// to assert in these functions

I don't know, but I guess GCC is used to build the MacOS release?
Reply
#4
nope, OSX uses llvm/clang
Reply
#5
asserts are optimised out in release builds ...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#6
I have cross compiled the xbmc-12.3-Frodo and while running the xbmc.bin file, facing below error

xbmc.bin: /opt/xbmc-12.3-Frodo/xbmc/utils/MathUtils.h:76: int MathUtils::round_int(double): Assertion `x > static_cast<double>((-2147483647 - 1) / 2) - 1.0' failed.

Please let me know how to resolve this issue.
Reply

Logout Mark Read Team Forum Stats Members Help
Crash with MathUtils.h:74 assertion fail.0