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

通用参数报错:Error message: abort(Cannot enlarge memory arrays to size 16781312 bytes (OOM). #13052

Closed
1 task done
DerekTso opened this issue Aug 16, 2023 · 5 comments · Fixed by #13072
Closed
1 task done
Labels
RSS bug Something isn't working

Comments

@DerekTso
Copy link
Contributor

Routes

NOROUTE

Full routes

NOROUTE

Related documentation

https://docs.rsshub.app/parameter

What is expected?

通用参数(e.g. filter / filterout) 能正常使用

What is actually happening?

无法正常使用通用参数进行过滤

Deployment information

RSSHub demo (https://rsshub.app)

Deployment information (for self-hosted)

No response

Additional info

报错信息:

Error message: abort(Cannot enlarge memory arrays to size 16781312 bytes (OOM). Either (1) compile with  -s INITIAL_MEMORY=X  with X higher than the current value 16777216, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ) at Error
    at jsStackTrace (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:1675:19)
    at stackTrace (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:1692:16)
    at abort (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:1387:44)
    at abortOnCannotGrowMemory (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:3521:7)
    at _emscripten_resize_heap (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:3525:7)
    at wasm://wasm/003466ba:wasm-function[5377]:0xbfea0
    at wasm://wasm/003466ba:wasm-function[5372]:0xbdcde
    at /app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:1464:22
    at Object.toWireType (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:3313:25)
    at WrappedRE2.constructor_body (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:2812:58)
    at WrappedRE2. (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:2709:31)
    at new WrappedRE2 (eval at createNamedFunction (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/wasm/re2.js:1843:14), :4:34)
    at new RE2 (/app/node_modules/.pnpm/re2-wasm@1.0.2/node_modules/re2-wasm/build/src/re2.js:187:24)
    at makeRegex (/app/lib/middleware/parameter.js:180:36)
    at /app/lib/middleware/parameter.js:197:37
    at Array.filter ()
    at module.exports (/app/lib/middleware/parameter.js:191:59)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async module.exports (/app/lib/middleware/anti-hotlink.js:99:5)
    at async module.exports (/app/lib/middleware/template.js:15:5)
    at async /app/lib/middleware/api-response-handler.js:143:9
    at async module.exports (/app/lib/middleware/api-template.js:2:5)
    at async module.exports (/app/lib/middleware/utf8.js:4:5)
    at async module.exports (/app/lib/middleware/header.js:21:5)
    at async module.exports (/app/lib/middleware/debug.js:9:5)
    at async grant (/app/lib/middleware/access-control.js:24:13)
    at async module.exports (/app/lib/middleware/onerror.js:32:9)
    at async serve (/app/node_modules/.pnpm/koa-static@5.0.0/node_modules/koa-static/index.js:53:9)

This is not a duplicated issue

  • I have searched existing issues to ensure this bug has not already been reported
@DerekTso DerekTso added the RSS bug Something isn't working label Aug 16, 2023
@TonyRL
Copy link
Collaborator

TonyRL commented Aug 16, 2023

Please provide actual routes instead of NOROUTE.

@DerekTso
Copy link
Contributor Author

Please provide actual routes instead of NOROUTE.

it's not route related. but below is an example:

without filter param, it's ok:
https://rsshub.app/douban/people/62759792/status

but with filter param, it's not ok:
https://rsshub.app/douban/people/62759792/status?filter_description=img

@TonyRL
Copy link
Collaborator

TonyRL commented Aug 18, 2023

/test

/douban/people/62759792/status?filter_description=img

@github-actions
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/douban/people/62759792/status?filter_description=img - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
>
    <channel>
        <title><![CDATA[豆瓣广播 - DIYgod]]></title>
        <link>https://m.douban.com/people/62759792/statuses</link>
        <atom:link href="http://localhost:1200/douban/people/62759792/status?filter_description=img" rel="self" type="application/rss+xml" />
        <description><![CDATA[豆瓣广播 - DIYgod - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
        <generator>RSSHub</generator>
        <webMaster>i@diygod.me (DIYgod)</webMaster>
        <language>zh-cn</language>
        <lastBuildDate>Fri, 18 Aug 2023 11:13:51 GMT</lastBuildDate>
        <ttl>5</ttl>
        <item>
            <title><![CDATA[DIYgod 读过这本书: 《朝闻道》★★★★★]]></title>
            <description><![CDATA[★★★★★ <br><img src="https://img9.doubanio.com/view/status/l/public/3No3ih.jpg" referrerpolicy="no-referrer"><a href="https://book.douban.com/subject/27191786/" target="_blank" rel="noopener noreferrer"><strong>朝闻道</strong><br><small>刘慈欣 / 2018 / 江苏凤凰文艺出版社</small><br><small>评分:8.6</small></a>]]></description>
            <pubDate>Tue, 08 Aug 2023 22:52:31 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4332985970/</guid>
            <link>https://www.douban.com/people/62759792/status/4332985970/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 在读这本书: 《翦商》]]></title>
            <description><![CDATA[<br><img src="https://img1.doubanio.com/view/status/l/public/0SdRXa.jpg" referrerpolicy="no-referrer"><a href="https://book.douban.com/subject/36096304/" target="_blank" rel="noopener noreferrer"><strong>翦商</strong><br><small>李硕 / 2022 / 广西师范大学出版社</small><br><small>评分:9.1</small></a>]]></description>
            <pubDate>Sat, 05 Aug 2023 11:35:28 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4328868891/</guid>
            <link>https://www.douban.com/people/62759792/status/4328868891/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 在读这本书: 《暗时间》]]></title>
            <description><![CDATA[<br><img src="https://img9.doubanio.com/view/status/l/public/0fpaJt.jpg" referrerpolicy="no-referrer"><a href="https://book.douban.com/subject/6709809/" target="_blank" rel="noopener noreferrer"><strong>暗时间</strong><br><small>刘未鹏 / 2011 / 电子工业出版社</small><br><small>评分:8.4</small></a>]]></description>
            <pubDate>Sat, 05 Aug 2023 09:25:57 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4328732580/</guid>
            <link>https://www.douban.com/people/62759792/status/4328732580/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 想看这部剧集: 《摇曳百合4 ゆるゆり 4期‎ (2024)》]]></title>
            <description><![CDATA[<br><img src="https://img1.doubanio.com/view/status/l/public/0FCb4Y.jpg" referrerpolicy="no-referrer"><a href="https://movie.douban.com/subject/36431036/" target="_blank" rel="noopener noreferrer"><strong>摇曳百合4 ゆるゆり 4期‎ (2024)</strong><br><small>2024 / 日本 / 动画 / 三上枝织 大坪由佳</small><br><small>评分:0</small></a>]]></description>
            <pubDate>Fri, 04 Aug 2023 11:01:06 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4327705618/</guid>
            <link>https://www.douban.com/people/62759792/status/4327705618/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 想看这部电影: 《大室家 dear friends‎ (2024)》]]></title>
            <description><![CDATA[<br><img src="https://img1.doubanio.com/view/status/l/public/3ABG1l.jpg" referrerpolicy="no-referrer"><a href="https://movie.douban.com/subject/36503110/" target="_blank" rel="noopener noreferrer"><strong>大室家 dear friends‎ (2024)</strong><br><small>2024 / 日本 / 动画 / 龙轮直征 / 加藤英美里 斋藤千和</small><br><small>评分:0</small></a>]]></description>
            <pubDate>Fri, 04 Aug 2023 11:00:53 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4327705343/</guid>
            <link>https://www.douban.com/people/62759792/status/4327705343/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 想看这部电影: 《大室家 dear sisters‎ (2024)》]]></title>
            <description><![CDATA[<br><img src="https://img1.doubanio.com/view/status/l/public/3dvRjn.jpg" referrerpolicy="no-referrer"><a href="https://movie.douban.com/subject/36503092/" target="_blank" rel="noopener noreferrer"><strong>大室家 dear sisters‎ (2024)</strong><br><small>2024 / 日本 / 动画 / 龙轮直征 / 加藤英美里 斋藤千和</small><br><small>评分:0</small></a>]]></description>
            <pubDate>Fri, 04 Aug 2023 11:00:40 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4327705224/</guid>
            <link>https://www.douban.com/people/62759792/status/4327705224/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 读过这本书: 《赡养人类》★★★★★]]></title>
            <description><![CDATA[★★★★★ <br><img src="https://img1.doubanio.com/view/status/l/public/0HNqlm.jpg" referrerpolicy="no-referrer"><a href="https://book.douban.com/subject/26807576/" target="_blank" rel="noopener noreferrer"><strong>赡养人类</strong><br><small>刘慈欣 / 2016 / 中国华侨出版社</small><br><small>评分:8.6</small></a>]]></description>
            <pubDate>Thu, 03 Aug 2023 20:09:08 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4327104188/</guid>
            <link>https://www.douban.com/people/62759792/status/4327104188/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 想看这部电影: 《数码宝贝大冒险02 新剧场版 デジモンアドベンチャー02 THE BEGINNING‎ (2023)》]]></title>
            <description><![CDATA[<br><img src="https://img9.doubanio.com/view/status/l/public/03CsLj.jpg" referrerpolicy="no-referrer"><a href="https://movie.douban.com/subject/35559564/" target="_blank" rel="noopener noreferrer"><strong>数码宝贝大冒险02 新剧场版 デジモンアドベンチャー02 THE BEGINNING‎ (2023)</strong><br><small>2023 / 日本 / 动画 / 田口智久 / 片山福十郎 野田顺子</small><br><small>评分:0</small></a>]]></description>
            <pubDate>Mon, 31 Jul 2023 09:25:09 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4322958970/</guid>
            <link>https://www.douban.com/people/62759792/status/4322958970/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 想读这本书: 《暗时间》]]></title>
            <description><![CDATA[<br><img src="https://img2.doubanio.com/view/status/l/public/24SkPf.jpg" referrerpolicy="no-referrer"><a href="https://book.douban.com/subject/6709809/" target="_blank" rel="noopener noreferrer"><strong>暗时间</strong><br><small>刘未鹏 / 2011 / 电子工业出版社</small><br><small>评分:8.4</small></a>]]></description>
            <pubDate>Tue, 25 Jul 2023 23:34:47 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4316073698/</guid>
            <link>https://www.douban.com/people/62759792/status/4316073698/</link>
        </item>
        <item>
            <title><![CDATA[DIYgod 想读这本书: 《财富自由之路》]]></title>
            <description><![CDATA[<br><img src="https://img9.doubanio.com/view/status/l/public/4c8YE6.jpg" referrerpolicy="no-referrer"><a href="https://book.douban.com/subject/27094706/" target="_blank" rel="noopener noreferrer"><strong>财富自由之路</strong><br><small>李笑来 / 2017 / 电子工业出版社</small><br><small>评分:8.6</small></a>]]></description>
            <pubDate>Tue, 25 Jul 2023 23:34:30 GMT</pubDate>
            <guid isPermaLink="false">https://www.douban.com/people/62759792/status/4316073619/</guid>
            <link>https://www.douban.com/people/62759792/status/4316073619/</link>
        </item>
    </channel>
</rss>

@Uejvvn
Copy link

Uejvvn commented Aug 18, 2023

/test

/douban/people/62759792/status?filter_description=img

There is indeed such a situation, but it cannot be reproduced on the official server. For example, (this server is from the internet):

https://rsshub.rssforever.com/douban/people/62759792/status?filter_description=img

An instance without adding parameters:

https://rsshub.rssforever.com/douban/people/62759792/status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RSS bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants