Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Invalid ID 0x00000000 #13820

Open
1 task done
m1ga opened this issue Apr 25, 2023 · 0 comments
Open
1 task done

Android: Invalid ID 0x00000000 #13820

m1ga opened this issue Apr 25, 2023 · 0 comments
Labels
android bug needs triage This issue hasn't been reviewed by maintainers

Comments

@m1ga
Copy link
Contributor

m1ga commented Apr 25, 2023

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

Android apps are showing an Error (without any crash or issue inside the app) at the beginning:

[ERROR] E/app: Invalid ID 0x00000000.

I've debugged the SDK and found this to be the last line in the SDK
https://github.com/tidev/titanium_mobile/blob/025d1fa18bf65cec434b5b480574888d7142d224/android/titanium/src/java/org/appcelerator/titanium/view/TiCompositeLayout.java#L153

After that it will go into ViewGroup.java and the error appears once this is called

    public ViewGroup(Context context, AttributeSet attrs, int defStyleAttr) {
        this(context, attrs, defStyleAttr, 0);
    }

Apps still work fine (that "error" is visible in older SDKs already) but of course it would be better not to have that in the logs 😄

Reproducible sample

const win1 = Titanium.UI.createWindow();
win1.open();

Steps to reproduce

  • put the code into the SDKs app.js
  • set a breakpoint in TiCompositeLayout.java - line 153
  • start the debug mode (little bug icon in the top menu)
  • check the logcat output in Studio
  • after hitting the breakpoint step into the function
  • invalid output is visible in the logs

Platform

Android

SDK version you are using

12.2.0

Alloy version you are using

No response

@m1ga m1ga added bug needs triage This issue hasn't been reviewed by maintainers labels Apr 25, 2023
@m1ga m1ga added the android label Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

1 participant