qw3rtty / neix

neix - a RSS/Atom feed reader for your terminal.
GNU General Public License v3.0
200 stars 12 forks source link

[cant run] error when starting program: core dumped. #10

Closed odarcan closed 3 years ago

odarcan commented 3 years ago

*previous fixes worked for me now it makes and installs but I get another error

after adding a rss feed to the file and try to run the program I get the following error:

[neix] Starting version 0.1.2 [neix] Loading configuration files [neix] Loading feeds .double free or corruption (out) Aborted (core dumped)

odarcan commented 3 years ago

previous comment was when I had one feed in the feeds.conf with 3 feeds it takes a few minutes then says loading feeds .segmentation fault (core dumped)

LIFEHACKER = https://lifehacker.com/rss NYT = https://archive.nytimes.com/www.nytimes.com/services/xml/rss/index.html?mcubz=0 WSJ = http://www.wsj.com/public/page/rss_news_and_feeds.html

odarcan commented 3 years ago

also in the feed description why does it only say DOMAIN.TOP-LEVEL-DOMAIN

shouldnt there be a directory and possibly file as well?

odarcan commented 3 years ago

without trailing directory and file it does this: [neix] Loading feeds .terminate called after throwing an instance of 'rapidxml::parse_error' what(): expected ' or " Aborted (core dumped)

odarcan commented 3 years ago

can you give perhaps 5 random rss feeds, and I suggest a large list should be available when first installing it, for nuubs' sake so they dont have to bother with editors.

odarcan commented 3 years ago

Also you should add that cmake 3.nn + is required for installation, to the requirements.

I dont know why such a new version is required but know that in mint for example only latest version has the version of cmake that is required. And installing and makeing it is not easy for nuubs.

qw3rtty commented 3 years ago

Thanks for opening this issue. I will try to reproduce your error.

I will update the requirements on the README. Maybe I should add some default feeds to the feeds.conf file.

Maybe I can change the required cmake version. I try it and update the version if it works :)

qw3rtty commented 3 years ago

also in the feed description why does it only say DOMAIN.TOP-LEVEL-DOMAIN shouldnt there be a directory and possibly file as well?

Yes there can be directories and files. I updated the documentation. Thanks for this hint!

odarcan commented 3 years ago

Great, but how will you reproduce error? Im still eager to try it out.

You know what I would really like, a service that I can connect to with telnet, and there I can access every single rss on the internet, a minimal uncluttered organized Internet for only access to raw text articles of websites.... you could add text banners and text ads as links even to make money.

just some details:it should say Directory, singular,

qw3rtty commented 3 years ago

Great, but how will you reproduce error? Im still eager to try it out.

I could reproduce the error. It depends on the feeds you want to load. There is an issue while parsing the XML-File. But I have to figure it out what causing the error.

Try this feed, it should work: Hacker News=https://news.ycombinator.com/rss

I dont know why such a new version is required but know that in mint for example only latest version has the version of cmake that is required. And installing and makeing it is not easy for nuubs.

You are right. But I use the add_compile_definitions of cmake which was introduced in version 3.12. See the release nodes of cmake 3.12. Maybe I will change it in the future. :)

just some details:it should say Directory, singular I think the plurarl is correct. The XML-File could be located in multiple sub folders on the server. :)

odarcan commented 3 years ago

Very cool it works! but when I open a feed, instead of article it only says "comments" and nothing more, it is so for every entry I think.

What more feeds should I add, the ones I added caused the crash.

qw3rtty commented 3 years ago

Very cool it works!

Nice. Happy to here this :)

but when I open a feed, instead of article it only says "comments" and nothing more, it is so for every entry I think.

Yeah this is because in the XML-File of hacker news there are only links to the comments :/

Try this one: Planet GNU=https://planet.gnu.org/rss20.xml

There is more content on the feeds!

I will discover the error of your feeds in the next days.

odarcan commented 3 years ago

ok cool this one works and shows the contents of the article.

I know I shouldnt ask for feeds manually, I hope you can fix the reading error or provide a more feeds that work :)

qw3rtty commented 3 years ago

I could fix this issue :)

LIFEHACKER = https://lifehacker.com/rss

This feed works now. They had an issue in their xml structure (they fixed it by themself).

NYT = https://archive.nytimes.com/www.nytimes.com/services/xml/rss/index.html?mcubz=0 WSJ = http://www.wsj.com/public/page/rss_news_and_feeds.html

This two links are not valid. This aren't RSS/Atom feeds. This is a standard HTML-Site which lists some feed urls. You have to put valid links to the feeds .xml file. But I fixed this problem also. neix can startup now with not valid links.

yonderbread commented 2 years ago

Having the same issue, doesn't seem like it was fixed.