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

Termux error[BUG] #760

Closed
wowlikon opened this issue Mar 15, 2024 · 11 comments
Closed

Termux error[BUG] #760

wowlikon opened this issue Mar 15, 2024 · 11 comments
Labels
android Only affects Android platform bug Something isn't working can't reproduce

Comments

@wowlikon
Copy link

wowlikon commented Mar 15, 2024

General description of bug:

  • What happened:
  • Error: "Pointer tag for 0x2020200a20202020 was truncated"
  • pkg fastfetch 2.8.9 (aarch64)

Screenshot:
image

Output of fastfetch -c ci.jsonc --format json:
error.json

Output of fastfetch --list-features:

threads
vulkan
freetype
videodev2
@wowlikon wowlikon added the bug Something isn't working label Mar 15, 2024
@CarterLi
Copy link
Member

CarterLi commented Mar 16, 2024

Thanks for reporting. Unfortunately I cannot reproduce this issue on my cell phone. Can you provide the output of the following command?

for structure in localip battery poweradapter locale break colors; do ./fastfetch -l none --show-errors -s $structure; done

@wowlikon
Copy link
Author

wowlikon commented Mar 17, 2024

Thanks for reporting. Unfortunately I cannot reproduce this issue on my cell phone. Can you provide the output of the following command?

for structure in localip battery poweradapter locale break colors; do ./fastfetch -l none --show-errors -s $structure; done

Output:

❯ for structure in localip battery poweradapter locale break colors; do fastfetch -l none --show-errors -s $structure; done
Local IP (rmnet_data6): 12.34.67.90/24
Local IP (wlan0): 192.168.0.164/24
Battery: 50% [DISCHARGING]
Power Adapter: Not supported on this platform
Locale: en_US.UTF-8

████████████████████████
████████████████████████

@CarterLi
Copy link
Member

Well, is the bug consistantly reproduceable?

@wowlikon
Copy link
Author

wowlikon commented Mar 17, 2024

Well, is the bug consistantly reproduceable?

The error is probably related to termux-api. because without it, the battery status is not displayed and an error does not occur

❯ termux-battery-status
{
  "health": "GOOD",
  "percentage": 49,
  "plugged": "UNPLUGGED",
  "status": "DISCHARGING",
  "temperature": 28.0,
  "current": -1002000
}

@CarterLi
Copy link
Member

However it didn't occur here:

Battery: 50% [DISCHARGING]

@wowlikon
Copy link
Author

Perhaps some other termux-api commands are causing errors, or do not return the expected response

@CarterLi
Copy link
Member

CarterLi commented Mar 17, 2024

Can you please try this?

for structure in Title Separator OS Host Kernel Uptime Packages Shell Display DE WM WMTheme Theme Icons Font Cursor Terminal TerminalFont CPU GPU Memory Swap Disk LocalIp Battery PowerAdapter Locale Break Colors; do fastfetch -l none --show-errors -s $structure; done

@wowlikon
Copy link
Author

Can you please try this?

for structure in Title Separator OS Host Kernel Uptime Packages Shell Display DE WM WMTheme Theme Icons Font Cursor Terminal TerminalFont CPU GPU Memory Swap Disk LocalIp Battery PowerAdapter Locale Break Colors; do fastfetch -l none --show-errors -s $structure; done

WindowsTerminal_rMicxOJTh6

@CarterLi
Copy link
Member

The crash seems to be random. Let's wait and see if it occurs to others.

@CarterLi
Copy link
Member

CarterLi commented Mar 17, 2024

Anyway, you can always disable the battery module manually with fastfetch -s Title:Separator:OS:Host:Kernel:Uptime:Packages:Shell:Display:DE:WM:WMTheme:Theme:Icons:Font:Cursor:Terminal:TerminalFont:CPU:GPU:Memory:Swap:Disk:LocalIp:Locale:Break:Colors

@CarterLi CarterLi added android Only affects Android platform can't reproduce labels Mar 17, 2024
@Efreak
Copy link

Efreak commented May 1, 2024

I'm getting this as well, though I'm not sure if it's for the same reason. It goes away when I disable battery, however the battery report is correct. It also goes away if I set --pipe, oddly.

detailed info and fastfetch output

fastfetch -c ci.jsonc --format json

Output from fastfetch --list-features:

threads
vulkan
freetype
linux/videodev2
linux/wireless

SmartSelect_20240501_070345_Termux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Only affects Android platform bug Something isn't working can't reproduce
Projects
None yet
Development

No branches or pull requests

3 participants