yl_cinema/internal.lua:141: bad argument #1 to 'ipairs' (table expected, got nil) #5259

Closed
opened 2023-09-11 07:06:46 +02:00 by AliasAlreadyTaken · 4 comments
2023-09-11 07:05:51: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_cinema' in callback environment_Step(): ....6.0-dev/minetest-dev/bin/../mods/yl_cinema/internal.lua:141: bad argument #1 to 'ipairs' (table expected, got nil)
2023-09-11 07:05:51: ERROR[Main]: stack traceback:
2023-09-11 07:05:51: ERROR[Main]: 	[C]: in function 'ipairs'
2023-09-11 07:05:51: ERROR[Main]: 	....6.0-dev/minetest-dev/bin/../mods/yl_cinema/internal.lua:141: in function 'load_images_of_movie'
2023-09-11 07:05:51: ERROR[Main]: 	....6.0-dev/minetest-dev/bin/../mods/yl_cinema/internal.lua:366: in function 'func'
2023-09-11 07:05:51: ERROR[Main]: 	...t/5.6.0-dev/minetest-dev/bin/../builtin/common/after.lua:20: in function <...t/5.6.0-dev/minetest-dev/bin/../builtin/common/after.lua:5>
2023-09-11 07:05:51: ERROR[Main]: 	....6.0-dev/minetest-dev/bin/../builtin/common/register.lua:26: in function <....6.0-dev/minetest-dev/bin/../builtin/common/register.lua:12>

``` 2023-09-11 07:05:51: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_cinema' in callback environment_Step(): ....6.0-dev/minetest-dev/bin/../mods/yl_cinema/internal.lua:141: bad argument #1 to 'ipairs' (table expected, got nil) 2023-09-11 07:05:51: ERROR[Main]: stack traceback: 2023-09-11 07:05:51: ERROR[Main]: [C]: in function 'ipairs' 2023-09-11 07:05:51: ERROR[Main]: ....6.0-dev/minetest-dev/bin/../mods/yl_cinema/internal.lua:141: in function 'load_images_of_movie' 2023-09-11 07:05:51: ERROR[Main]: ....6.0-dev/minetest-dev/bin/../mods/yl_cinema/internal.lua:366: in function 'func' 2023-09-11 07:05:51: ERROR[Main]: ...t/5.6.0-dev/minetest-dev/bin/../builtin/common/after.lua:20: in function <...t/5.6.0-dev/minetest-dev/bin/../builtin/common/after.lua:5> 2023-09-11 07:05:51: ERROR[Main]: ....6.0-dev/minetest-dev/bin/../builtin/common/register.lua:26: in function <....6.0-dev/minetest-dev/bin/../builtin/common/register.lua:12> ```
AliasAlreadyTaken added the
1. kind/bug
label 2023-09-11 07:06:51 +02:00
AliasAlreadyTaken added this to the 1.1.120 milestone 2023-09-11 07:06:54 +02:00
Author
Owner

Crashes when a movie has no files of its own.

Repro: Add a movie with NO files.

Crashes when a movie has no files of its own. Repro: Add a movie with NO files.
AliasAlreadyTaken added the
4. step/ready to QA test
label 2023-09-11 09:15:06 +02:00
AliasAlreadyTaken added the
4. step/QA OK
label 2023-09-21 07:19:48 +02:00
Author
Owner

QA

Couldn't find a test other than myself, so tested it myself. This is not much more than a dumbfix - we really need a JSON validator

QA Couldn't find a test other than myself, so tested it myself. This is not much more than a dumbfix - we really need a JSON validator
Owner

I had movies with no files, cuz they were all wrong or belonging to another movie or all named wrong... I had so many things wrong, I can hardly figure out which would apply here... but regardless, nothing crashed the server, so I wouldn't say it was TOO dumb :)

I had movies with no files, cuz they were all wrong or belonging to another movie or all named wrong... I had so many things wrong, I can hardly figure out which would apply here... but regardless, nothing crashed the server, so I wouldn't say it was TOO dumb :)
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-11-22 01:13:05 +01:00
Member

presuming this is live

presuming this is live
flux closed this issue 2023-11-22 01:13:16 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#5259
No description provided.