Skip to content

Render failed, Invalid memory address or nil pointer dereference #32524

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

Closed
joshes opened this issue Nov 15, 2024 · 1 comment
Closed

Render failed, Invalid memory address or nil pointer dereference #32524

joshes opened this issue Nov 15, 2024 · 1 comment
Labels

Comments

@joshes
Copy link

joshes commented Nov 15, 2024

Description

I am currently receiving the following error.

An error occurred:

Render failed, failed to render template: user/dashboard/dashboard, error: template error: builtin(bindata):user/dashboard/feeds:20:45 : executing "user/dashboard/feeds" at <.GetRepoLink>: error calling GetRepoLink: runtime error: invalid memory address or nil pointer dereference
----------------------------------------------------------------------
							{{ctx.Locale.Tr "action.commit_repo" (.GetRepoLink ctx) (.GetRefLink ctx) .GetBranch (.ShortRepoPath ctx)}}
							                                      ^
----------------------------------------------------------------------

Prior to seeing this I was deleting repositories from out of an org so I could delete the org itself. This was all done via the Site Administration UI.

It seems stuck in this behaviour now.

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/joshes/5307eb7336c2cf47fa2d42c27e3e7850

Screenshots

Screenshot 2024-11-15 at 8 03 01 AM

Git Version

2.45.2

Operating System

OSX Sonoma

How are you running Gitea?

Docker compose

# docker-compose.yml
services:
  gitea:
    build:
      dockerfile: Dockerfile
      context: dockerfiles/gitea
    ports:
      - "2222:2222"
      - "3000:3000"
    restart: always
    entrypoint:
      - /usr/bin/dumb-init
      - --
      - /usr/local/bin/docker-entrypoint.sh
    volumes:
      - ./.data/gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
# Dockerfile
FROM debian:bookworm AS tmp
RUN apt-get update && \
    apt-get install -y openssl && \
    openssl rand -hex 8 > /tmp/password

FROM gitea/gitea:1.22-rootless

USER git

# Configure well-known admin user
ARG ADMIN_USER="gitea"
ARG ADMIN_MAIL="[email protected]"

# Provides a headless installation
ENV GITEA__security__INSTALL_LOCK="true"

WORKDIR "$HOME/.local/bin"

ENV PATH="$HOME/.local/bin/:$PATH"

# - Install wait-for-it script
RUN wget https://raw.githubusercontent.com/vishnubob/wait-for-it/refs/heads/master/wait-for-it.sh && \
    chmod +x wait-for-it.sh

WORKDIR "$HOME"

COPY --from=tmp --chown=git /tmp /tmp

# - Start the server
# - Wait for it to become ready
# - Create a well-known admin user and token
# - Gracefully shut-down and wait for termination
RUN nohup bash -c "/usr/local/bin/docker-entrypoint.sh &" && \
    wait-for-it.sh 0.0.0.0:3000 -t 30 -- && \
    gitea admin user create --admin --username "$ADMIN_USER" --password "$(cat /tmp/password)" --email "$ADMIN_MAIL" && \
    gitea admin user generate-access-token --username "$ADMIN_USER" --token-name "default-token" --scopes all | awk -F': ' '{print $2}' > /tmp/token && \
    gitea manager shutdown && \
    while pgrep -o gitea > /dev/null; do sleep 1; done

Note this is just for integration testing, do not use this image for production

Database

SQLite

@lunny
Copy link
Member

lunny commented Nov 15, 2024

Duplicate of #32496 and it has been fixed by #32501

@lunny lunny closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Feb 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants