executorch icon indicating copy to clipboard operation
executorch copied to clipboard

Check for null outputs in method

Open GregoryComer opened this issue 5 months ago • 6 comments

Summary: When non-memory-planned outputs are unset, method execution will crash when writing to the output tensor. This manifests as a native crash with a deep stack trace that is both unrecoverable and unclear to the user. This PR adds a check in method.execute to detect null output tensor data pointers, and, if found, log a message and return an error code.

Differential Revision: D78438716

GregoryComer avatar Jul 16 '25 20:07 GregoryComer

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12559

Note: Links to docs will display an error until the docs builds have been completed.

:x: 2 New Failures

As of commit d2635e59a0a89acec276515670887799193ceba5 with merge base 1333b36ab307dff4b7abe2516c2e6cca84e97edf (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

pytorch-bot[bot] avatar Jul 16 '25 20:07 pytorch-bot[bot]

This pull request was exported from Phabricator. Differential Revision: D78438716

facebook-github-bot avatar Jul 16 '25 20:07 facebook-github-bot

This pull request was exported from Phabricator. Differential Revision: D78438716

facebook-github-bot avatar Jul 16 '25 20:07 facebook-github-bot

This pull request was exported from Phabricator. Differential Revision: D78438716

facebook-github-bot avatar Jul 16 '25 20:07 facebook-github-bot

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

github-actions[bot] avatar Sep 15 '25 00:09 github-actions[bot]

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

github-actions[bot] avatar Nov 15 '25 00:11 github-actions[bot]