Skip to content
View in the app

A better way to browse. Learn more.

Flirc Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Segmentation fault with with flirc_util and raw data ....only sometimes...is it length?

Featured Replies

I have some scripts using flirc_util that used to work, but after reinstalling and recreating things, now I can't figure out why sometimes I get a segmentation fault.  One script that has a short pattern works with no segmentation fault.  Is there some way that flirc_util needs more memory, shorter patterns, something else? 

I have bolded the original patttern at +565 -1659 and comparing the output from the program everything is the same in the output until the +565, then a -9046 shows up instead of the -1649.  I counted the characters in the input pattern and at 538 characters this seems to be the blowing up place.  Is there some input parameter that has a size limit of that gets blown up and doesn't get length checked?

 

FW Version: v4.6.5v4.6.5
   SKU:     Flirc 2.0 [dori]
   Branch:  master
   Config:  release
   Hash:    0x18BBFCFA
 

The script:

================

"/cygdrive/d/Program Files (x86)/Flirc/flirc_util.exe" sendir --raw="
+9046 -4438 +570 -523 +569 -1645 +568 -524 +568 -1646 +568 -524 +568 -1645 +594 -1621 +594 -1620 +593 -1621 +568 -1646 +593 -1621 +595 -497 +594 -497 +566 -526 +568 -1646 +592 -1622 +568 -524 +568 -1646 +568 -524 +568 -1646 +568 -524 +567 -1646 +568 -525 +568 -524 +567 -1646 +569 -524 +567 -1646 +594 -498 +568 -1647 +567 -524 +568 -1646 +593 -1616 +569 -37000 +9004 -4465 +568 -525 +567 -1647 +592 -518 +548 -1648 +567 -524 +567 -1647 +567 -1648 +566 -1648 +566 -1648 +565 -1649 +566 -1649 +565 -526 +567 -525 +565 -526 +565 -1649 +565 -1649 +566 -525 +567 -1647 +592 -500 +567 -1647 +566 -526 +589 -1625 +591 -500 +567 -1646 +566 -1648 +566 -526 +565 -1648 +567 -525 +566 -1647 +566 -526 +566 -1648 +566 -521 +566 -38000 +8991 -4465 +568 -525 +566 -525 +567 -524 +566 -539 +577 -501 +566 -1647 +566 -1648 +567 -1647 +568 -542 +573 -500 +568 -524 +566 -525 +591 -501 +566 -525 +567 -1647 +566 -1648 +566 -1648 +567 -1647 +567 -525 +566 -1667 +547 -1648 +565 -527 +566 -1647 +567 -1647 +567 -526 +566 -525 +566 -1648 +567 -525 +565 -527 +565 -1648 +567 -525 +566 -521 +566"
============================================

 

The output result:

=========================================================

Transmitting IR Pattern...
+9046 -4438 +570 -523 +569 -1645 +568 -524 +568 -1646 +568 -524 +568 -1645 +594 -1621 +594 -1620 +593 -1621 +568 -1646 +593 -1621 +595 -497 +594 -497 +566 -526 +568 -1646 +592 -1622 +568 -524 +568 -1646 +568 -524 +568 -1646 +568 -524 +567 -1646 +568 -525 +568 -524 +567 -1646 +569 -524 +567 -1646 +594 -498 +568 -1647 +567 -524 +568 -1646 +593 -1616 +569 -37000 +9004 -4465 +568 -525 +567 -1647 +592 -518 +548 -1648 +567 -524 +567 -1647 +567 -1648 +566 -1648 +566 -1648 +565 -1649 +566 -1649 +565 -526 +567 -525 +565 -526 +565 -1649 +565 -9046 +4438 -570 +523 -569 +1645 -568 +524 -568 +1646 -568 +524 -568 +1645 -594 +1621 -594 +1620 -593 +1621 -568 +1646 -593 +1621 -595 +497 -594 +497 -566 +526 -568 +1646 -592 +1622 -568 +524 -568 +1646 -568 +524 -568 +1646 -568 +524 -567 +1646 -568 +525 -568 +524 -567 +1646 -569 +524 -567 +1646 -594 +498 -568 +1647 -567 +524 -568 +1646 -593 +1616 -569 +37000 -9004 +4465 -568 +525 -567 +1647 -592 +518 -548 +1648 -567 +524 -567 +1647 -567 +1648 -566 +1648 -566 +1648 -565 +1649 -566 +1649 -565 +526 -567 +525 -565 +526 -565 +1649 -565 +9046
-50
Done!
sendOK.bat: 行 1:  1836 Segmentation fault      "/cygdrive/d/Program Files (x86)/Flirc/flirc_util.exe" sendir --raw=" +9046 -4438 +570 -523 +569 -1645 +568 -524 +568 -1646 +568 -524 +568 -1645 +594 -1621 +594 -1620 +593 -1621 +568 -1646 +593 -1621 +595 -497 +594 -497 +566 -526 +568 -1646 +592 -1622 +568 -524 +568 -1646 +568 -524 +568 -1646 +568 -524 +567 -1646 +568 -525 +568 -524 +567 -1646 +569 -524 +567 -1646 +594 -498 +568 -1647 +567 -524 +568 -1646 +593 -1616 +569 -37000 +9004 -4465 +568 -525 +567 -1647 +592 -518 +548 -1648 +567 -524 +567 -1647 +567 -1648 +566 -1648 +566 -1648 +565 -1649 +566 -1649 +565 -526 +567 -525 +565 -526 +565 -1649 +565 -1649 +566 -525 +567 -1647 +592 -500 +567 -1647 +566 -526 +589 -1625 +591 -500 +567 -1646 +566 -1648 +566 -526 +565 -1648 +567 -525 +566 -1647 +566 -526 +566 -1648 +566 -521 +566 -38000 +8991 -4465 +568 -525 +566 -525 +567 -524 +566 -539 +577 -501 +566 -1647 +566 -1648 +567 -1647 +568 -542 +573 -500 +568 -524 +566 -525 +591 -501 +566 -525 +567 -1647 +566 -1648 +566 -1648 +567 -1647 +567 -525 +566 -1667 +547 -1648 +565 -527 +566 -1647 +567 -1647 +567 -526 +566 -525 +566 -1648 +567 -525 +565 -527 +565 -1648 +567 -525 +566 -521 +566"
 

===========================================

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.