-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Overall reactivity, database updating, and usability issues. Possible npm issues #3130
Comments
sorry, it defaulted to private I just set it to public |
To give some more context: Here's a screenshot of the machine specs from this video: @JoeyLyman will you run A few notes: bcryptthe We're hoping to be able to reintroduce node In the meantime, we highly recommend not installing the node version of bcrypt and ignoring the warning. The mention of 3x slower is only when running bcrypt, this happens only when a password needs to be checked, (login, account creation, etc) and so it's not making the whole app run 3x slower. Running the pure javascript version of bcrypt is not the reason for the slowness you are experiencing. Testing
Running the app
I'd be curious if you look at your memory usage and swap usage while Reaction is running to see if perhaps it's just hammering your swap. App UI Responsiveness
When running Reaction in development mode, every file is watched, and all javascript is loaded as separate files, this can be very taxing on a computer and I can imagine that a computer that has to swap memory into the hard drive could produce a lot of these results. My primary dev machine is about 3 years newer and has 16GB memory, but I've got a 2012 machine that also doesn't exhibit this level of slowness. 8GB of memory should be plenty for development, but my older machine also runs 16GB, so I'm unable to test that specifically. If anyone else is experiencing these issues, I think we may need some more data points to pin down exactly what the problems are. |
Here's my output for 'ulimit -a' core file size (blocks, -c) 0 And cool, thanks for the the explanation for bcrypt. The requirements doc at https://docs.reactioncommerce.com/reaction-docs/master/requirements does still seem to recommend installing the node version: "Installing a local native compiled version of bcrypt is optional, but may yield some performance benefits and is recommended for production environments." Testing Hmm, after uninstalling node bcrypt, 299 tests ran, 298 passed and 1 failed (before first reaction launch), then after first launch all 299 passed. Still a couple errors though, not sure if it's just in the lack of configuration of my version? Here's the log: Also, yes I have an SSD in here that is only 25% full. Here's an activity snapshot of when I am trying to log in (after being logged out when I refreshed the page after a freeze), where it is stuck again trying to log me in. The activity was pretty similar to this on startup, and when things were going smoothly during the first few interactions (adding a product and a title to the product). Also, is it normal to have all those npm ERR! missing: ... packages? Also, when I did reaction pull tonight, it says it is up to date, but reaction -v still says v1.5.1 though when I run reaction it suggests I update to 1.5.2. Thanks again for the help and the long answer, let me know what else I can show you i.e. video of usage, more in depth / consolidated with some of the potential bugs, etc. |
@JoeyLyman Thanks for spending time pulling this together. Regarding the Sounds like you've got the correct version and the correct amount of tests. Not sure what I was seeing in the last video. I don't see any issues with your One of the next focus points for our core team will be app performance, I'd expect that we'll address many of the underlying issues that may be causing the sluggishness you're experiencing as well. |
Cool, so no issue with npm thinking there are all these missing dependencies, or with the errors in the test? |
We've got one or two tests that seem to fail occasionally, so it seems like one of those got you. |
Hey @spencern, I'm having some really slow dev build times, which sound out of line from everyone else's experiences. I don't mind the initial build time, but the restart time is definitely prohibitive to getting much done... Initial Server Start: ( Restart on file save: ( in I'm running on an embarrassingly old system Mac Book Pro (Mid 2010), but have 16GB of RAM and have never has an issue with any other modern Node environments. I'm running the latest release (Reaction 1.6.3) and below are the complete specs on my machine.... MacBook Pro (13-inch, Mid 2010) Available RAM (@ initialization): 10.4 GB
I'm getting a new machine soon, but would love to be able to work on a project in the mean time. If you're aware of a previous version I can roll back to that may help, or if I'm missing something from the development process then I'd appreciate any help. Thanks! |
@cantuket Well, I suspect it's because of where you're putting the file. You can't just throw custom files in
Then within that add one or both of...
You then use those index files to import or export any of your custom plugin code. You could also automatically generate the above by running...
That generates the following...
The four generated files above are the only files See the docs for more detail on customizing Reaction. |
Thanks for the detailed response @jshimko, I should have been more detailed with my question because I was actually working on imported files in the client directory of a registered plugin, as you specified, just left that critical piece of info out. Sorry! I still appreciate the explanation, which gives me a much better understanding of how the compilation is working. Unfortunately the above mentioned build times still apply, but waiting for a new machine to be delivered in the next few day so I assume that will improve my situation significantly. |
Closing this issue for now as we don't have solid reproduction steps and don't have anything that we can work on specifically on this issue. We're starting a big performance push this week, if you're having similar issues in a couple weeks once we've made some performance improvements or if you have specific reproduction steps please open another issue. |
Expected behavior
When doing a fresh reaction init, I don't expect 'npm list' to show a whole bunch of missing packages. Also expect general usability (though, I am not sure if I have a local problem, and would be stoked if you could spot anything that I may be missing in the screencast video I made).
Actual behavior
Video of a fresh install, and attempted usage of RC: https://www.youtube.com/watch?v=NEX9f72bJqE&t=53s
When I run reaction, there is a large lack of reactivity; sometimes the database updates, and sometimes it doesn't. This is for admin settings, new products, and new accounts. Also, sometimes data from one product will be superimposed on another. Also, sometimes when I am not logged in (for example in an incognito window), there won't be a sign in button at all on the navbar. Also, when not logged in, sometimes when I click on a product, it will take me to a page that says I don't have permission to view that product. Also, when clicking on the marketplace dropdown in the menu, sometimes the options show up below it, and sometimes they don't (i.e. enable users to opt to be sellers). Also, images don't always upload - sometimes new products that I tried to put images on will just show up to be white on the product grid, and sometimes they will have the ReactionCommerce watermark; sometimes when images show up on the product grid, they still won't show up on the product detail page.
Steps to reproduce the behavior
Please see video. I did a fresh install and did everything in the Requirements and Installation docs. Then ran reaction, and tried to do general things, without much luck.
Thanks lots,
Joey
Versions
Node: 8.7.0
NPM: 5.4.2
Meteor Node: 4.8.4
Meteor NPM: 4.6.1
Reaction CLI: 0.18.1
Reaction: 1.5.1
Reaction branch: master
The text was updated successfully, but these errors were encountered: