-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Problem with long pages #15
Comments
I meet the same problem. And it seems that this problem is related to theme, I'm trying to find the answer... |
+1 Meet the same problem. Seems like a problem caused by the buffer size. |
Is this still a problem? We recently updated the module too. |
@tcrowe Problem still remains. Can you reproduce this bug? |
I don't know if this is the same bug but I did get a very weird problem with a large post. As you can see in the image it had intermittent blank spots. There was no error from hexo or the browser when this happened. This is how I tried to reproduce your bug: # create the project
mkdir hexo-bsync-big-text
cd hexo-bsync-big-text
hexo init
# generate some random text for the posts
# the issue reports anything around 1000 words
npm install chance-cli -g
hexo new post "one"
hexo new post "two"
hexo new post "three"
paragraph_count=100
for (( i = 0; i < $paragraph_count; i++ )); do
chance paragraph >> source/_posts/one.md
echo '\n\n' >> source/_posts/one.md
done
for (( i = 0; i < $paragraph_count; i++ )); do
chance paragraph >> source/_posts/two.md
echo '\n\n' >> source/_posts/two.md
done
for (( i = 0; i < $paragraph_count; i++ )); do
chance paragraph >> source/_posts/three.md
echo '\n\n' >> source/_posts/three.md
done
npm install
npm install hexo-browsersync --save
# it installed [email protected]
hexo serve --debug On a hunch I tried commenting out the Stylus code and the page started to render all the text again. I'm using Which theme are you using @giuem ? |
I'm using this theme. And I have try your demo with this theme, the bug doesn't reproduce. Maybe this bug is related to post content? |
I tried it again with your theme (very nice!) but I did not reproduce the error. If you would please try a few things: Somewhere around here: Add: console.log('op', op)
console.log('pos', pos)
console.log('snippet', snippet) Lets see what the output is. Another thing you can try is upgrade all modules: # upgrade hexo and get module updater
npm install npm-check-updates hexo@latest -g
# in your project, updates versions
ncu -an
npm install
# clean
rm db.json debug.log
hexo serve --debug You can also tell us Thank you! |
I am having the same issue with this theme (although slightly modified): typing. I don't think it has to deal with the theme itself. The only thing I see in the console is this:
I assume this could be well the reason for dropping rendering at an almost random point. |
The same problem, may be the error is here. |
Do you know how to get a failing test case for this, @anapopo ? We could not reproduce the error. |
it's very strange, every time the log shows a error repsonse, but the browser show the page ok |
i don't know why here the |
OK, I think I have found the problem!
it redirects |
That's interesting you may have found a solution after all this time. We could not reproduce it. Were you able to? If so, how? |
@tcrowe making a long post( >130K in my case) with chinese would reproduce it |
@fatfatson is right. This problem has been reproduced with hexo-browsersync:0.3.0. How to reproduce
What happens?
What is the expected result?
|
@yuki-takei Thank you! I wont be able to look at it for a few days but I will review this and test again soon. 👍 |
I meet the same problem. |
This problem is caused by server:
compress: true |
Cool, it works. Thanks! |
same problem.It has remain for a long time.And I found it happends only when |
Same problem |
I just install hexo and try to use hexo-browsersync. But I notice a bug: when generated page size bigger than some number (~1000 words) it can't be fully loaded, in chrome source code it looks like this:
If there is not so much characters in a page, everything is ok. So it happens only in big posts. When I uninstall hexo-browsersync bug is disappear, so it's definitely problem with hexo-browsersync.
I suppose it's could be some stream or buffer limit, but I'm new to node and can't solve this...
The text was updated successfully, but these errors were encountered: