Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8213811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:14:48+00:00 2026-06-07T11:14:48+00:00

my Android 4 app generates long views by adding multiple textviews to a linearlayout

  • 0

my Android 4 app generates long views by adding multiple textviews to a linearlayout. This works well for all my list items, except of one. The problem is, that the list of textviews aborts after adding the first textview, but no exception is thrown!

I just see this warning in my LogCat:

TextLayoutCache | computeValuesWithHarfbuzz — need to force to single
run

Does anyone know what that means?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:14:51+00:00Added an answer on June 7, 2026 at 11:14 am

    HarfBuzz is a layout/shaping engine for OpenType fonts. Its purpose is to standardize text layout in Open-source projects. That warning, can be traced back to android/graphics/TextLayoutCache.cpp.

    The relevant code block is:

    ubidi_setPara(bidi, chars, contextCount, bidiReq, NULL, &status); //runs the algorithm
    int paraDir = ubidi_getParaLevel(bidi) & kDirection_Mask; // 0 if ltr, 1 if rtl
    
         if (U_SUCCESS(status) && rc == 1) {
               // Normal case: one run, status is ok
               isRTL = (paraDir == 1);
               useSingleRun = true;
          } else if (!U_SUCCESS(status) || rc < 1) {
               LOGW("computeValuesWithHarfbuzz -- need to force to single run");
               isRTL = (paraDir == 1);
               useSingleRun = true;
          } else {...}
    

    This part of the code is a part of the BiDi algorithm (uBiDi) which stands for Unicode Bidirectional, as detailed here.

    Data in Arabic, Hebrew or another RTL languages need handling of bidirectional text. Because these right-to-left scripts use digits that are written from left to right, the text is actually bidirectional: a mixture of right-to-left and left-to-right text.

    rc in the above is the runcount of the algorithm. Each unicode character is assigned a level. (Even the unassigned ones)

    Text is first split into different levels, (Level 0 is plain English text, Level 1 is plain Arabic text, possibly embedded within English level 0 text, etc)

    The runs now occur in the following manner.

     Levels:  0   0   0   1   1   1   2
    
     Runs:   <--- 1 ---> <--- 2 ---> <3>
    

    Run count in the above example is 3.
    The warning is thrown if the BiDi algorithm hasn’t been able to run even once successfully. There are many errors that can occur, preventing the successful running of the algorithm.
    Any one of these could’ve triggered the warning.

    However, whether the warning occurs or not, the code behaviour is exactly identical except for the warning logged. So, it shouldn’t affect the running of the application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my android app crash before load main.xml. This is the exception thrown java.lang.RuntimeException: Unable
I'm trying to make and android app with some dynamically drawn views. Currently, the
I am working on a groceries list app to learn android, but I cannot
I am using a thread and a handler in android. The app works fine
I'm developing an Android app that will play a specific audio. This audio is
I have this code: package lijap.app.starcraft2counters; import java.io.File; import android.app.Activity; import android.os.Bundle; import android.os.Environment;
I have created an app that I want to list all the installed applications
Lets say I have an Android html5 app with a picture generated with Javascript
The android app reads from database but doesnt write anything to DB, the app
My android app leaks, what should I check? I gave a look at avoiding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.