I'm creating a custom preloader for a Flex app and have noticed the following behavior: when loading, the progress bar goes to 100%, then down then back up, and so on until the app is finished loading.
When I put a trace in the dowloadprogress listener, I see that while the app is loading, both bytesLoaded and bytesTotal increase, but not necessarily at the same time.
Code:
private function onDownloadProgress(event:ProgressEvent):void {
var loaded:int = event.bytesLoaded;
var total:int = event.bytesTotal;
trace(event.target,loaded,total);
_starfield.progress = loaded/total;
}
Output:
[object Preloader] 134276 134276
[object Preloader] 265348 285007
[object Preloader] 285007 285007
[object Preloader] 678223 1322116
[object Preloader] 809295 1322116
[object Preloader] 1322116 1322116
[object Preloader] 1322116 1322116
[object Preloader] 1387652 1584342
[object Preloader] 1791882 1791882
[object Preloader] 2293133 2293133
[object Preloader] 2362938 2362938
[object Preloader] 2362938 2362938
[object Preloader] 2362938 2362938
Why does bytesTotal change during load?
As runtime shared libraries are started to be downloaded, the total can increase. You can learn a little more about it by reading the Preloader source code.
sdk\frameworks\projects\framework\src\mx\preloaders\Preloader.as
Here are some links to custom preloader samples that handle RSL's better than the default.
http://coding.bhirschmann.de/2008/03/20/preloader-for-flex-with-rsl-support/
http://www.leavethatthingalone.com/blog/index.cfm/2009/11/11/Flex4CustomPreloader
or another way would be to break a preloader into 6 stages, with a preloader loading each component and running from 0 to 100%, then incrementing a number or "parts" loaded and displaying that on screen too
Related
I'm suddenly getting this error in my Windows 8.1 console when trying to run an existing meteor project. I've tried "meteor reset" and "meteor update". I've also tried deleting \.meteor\local. None of this has resolved the problem. I'm dead in the water.
C:\Users\mhl\AppData\Local\.meteor\packages\templating-compiler\1.2.15\plugin.compileTemplatesBatch.os\npm\node_modules\meteor\promise\node_modules\meteor-promise\promise_server.js:177
throw error;
^
TypeError: Cannot set property '/C/Users/mhl/Google Drive/Quarule/QREBuilder_Meteor_1.4/node_modules/react-router/package.json'
of undefined
at Resolver._resolvePkgJsonMain (C:\tools\isobuild\resolver.js:321:9)
at Resolver._resolve (C:\tools\isobuild\resolver.js:124:25)
at C:\tools\isobuild\resolver.js:76:19
at Entry._reallyRecompute (C:\Users\mhl\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\optimism\lib\entry.js:215:26)
at Entry._recomputeIfDirty (C:\Users\mhl\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\optimism\lib\entry.js:179:17)
at Entry.recompute (C:\Users\mhl\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\optimism\lib\entry.js:46:20)
at Resolver.optimistic [as resolve] (C:\Users\mhl\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\optimism\lib\index.js:50:18)
at ImportScanner._resolve (C:\tools\isobuild\import-scanner.js:459:36)
at C:\tools\isobuild\import-scanner.js:492:29
at _.each._.forEach (C:\Users\mhl\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:87:22)
at ImportScanner._scanFile (C:\tools\isobuild\import-scanner.js:491:5)
at C:\tools\isobuild\import-scanner.js:523:18
at _.each._.forEach (C:\Users\mhl\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:87:22)
at ImportScanner._scanFile (C:\tools\isobuild\import-scanner.js:491:5)
at C:\tools\isobuild\import-scanner.js:523:18
at _.each._.forEach (C:\Users\mhl\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:87:22)
at ImportScanner._scanFile (C:\tools\isobuild\import-scanner.js:491:5)
at C:\tools\isobuild\import-scanner.js:337:14
at Array.forEach (native)
at ImportScanner.scanImports (C:\tools\isobuild\import-scanner.js:335:22)
at C:\tools\isobuild\compiler-plugin.js:1037:17
at Array.forEach (native)
at Function.computeJsOutputFilesMap (C:\tools\isobuild\compiler-plugin.js:1005:19)
at ClientTarget._emitResources (C:\tools\isobuild\bundler.js:1006:8)
at C:\tools\isobuild\bundler.js:777:12
at C:\tools\utils\buildmessage.js:359:18
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:352:34
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:350:23
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at ClientTarget.make (C:\tools\isobuild\bundler.js:768:18)
at C:\tools\isobuild\bundler.js:2638:14
at C:\tools\isobuild\bundler.js:2727:20
at Array.forEach (native)
at Function._.each._.forEach (C:\Users\mhl\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
at C:\tools\isobuild\bundler.js:2726:7
at C:\tools\utils\buildmessage.js:271:13
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:264:29
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:262:18
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:253:23
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.capture (C:\tools\utils\buildmessage.js:252:19)
at bundle (C:\tools\isobuild\bundler.js:2619:31)
at C:\tools\isobuild\bundler.js:2566:32
at Object.withCache (C:\tools\fs\files.js:1597:12)
at Object.exports.bundle (C:\tools\isobuild\bundler.js:2566:16)
at C:\tools\runners\run-app.js:574:36
at Function.run (C:\tools\tool-env\profile.js:490:12)
at bundleApp (C:\tools\runners\run-app.js:573:34)
at AppRunner._runOnce (C:\tools\runners\run-app.js:617:35)
at AppRunner._fiber (C:\tools\runners\run-app.js:876:28)
at C:\tools\runners\run-app.js:403:12
I got this notification: Newer versions of the following indirect dependencies are available:
* aldeed:tabular 1.6.1 (2.0.2 is available)
So, I ran meteor update --all-packages and it didn't update.
So I added aldeed:tabular#2.0.2 to the packages file.
I am getting this error while running meteor update --all-packages with that added to the packages file.
This project is already at Meteor 1.4.2, the latest release.
MINISAT-out: Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 67108864, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.
MINISAT-err: Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 67108864, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.
/Users/nathancain/.meteor/packages/meteor-tool/.1.4.2.zi1w5b++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/isopackets/ddp/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190
throw error;
^
abort() at Error
at jsStackTrace (packages/logic-solver.js:22:18626)
at stackTrace (packages/logic-solver.js:22:18809)
at abort (packages/logic-solver.js:52:28956)
at enlargeMemory (packages/logic-solver.js:22:19142)
at Function.Runtime.dynamicAlloc [as alloc] (packages/logic-solver.js:22:7927)
at _sbrk (packages/logic-solver.js:22:58803)
at Sd (packages/logic-solver.js:26:98389)
at Ud (packages/logic-solver.js:26:109800)
at mc (packages/logic-solver.js:26:44840)
at Ob (packages/logic-solver.js:26:14353)
at Pb (packages/logic-solver.js:26:15704)
at Xb (packages/logic-solver.js:26:26622)
at Zb (packages/logic-solver.js:26:27957)
at _b (packages/logic-solver.js:26:30575)
at $b (packages/logic-solver.js:26:35130)
at Bc (packages/logic-solver.js:26:54870)
at Object.hd [as _solveAssuming] (packages/logic-solver.js:26:84479)
at [object Object].MiniSat.solveAssuming (packages/logic-solver.js:157:18)
at [object Object].Logic.Solver.solve (packages/logic-solver.js:1681:33)
at [object Object].Logic.Solver.solveAssuming (packages/logic-solver.js:1714:21)
at minMaxWS (packages/logic-solver.js:2022:32)
at [object Object].Logic.Solver.minimizeWeightedSum (packages/logic-solver.js:2087:10)
at packages/constraint-solver.js:1326:28
at Function.time (/tools/tool-env/profile.js:305:10)
at [object Object].CS.Solver.minimize (packages/constraint-solver.js:1310:16)
at packages/constraint-solver.js:1286:12
at Array.forEach (native)
at Function._.each._.forEach (packages/underscore.js:139:11)
at [object Object].CS.Solver.minimize (packages/constraint-solver.js:1285:7)
at [object Object].CS.Solver._getAnswer (packages/constraint-solver.js:1733:8)
at packages/constraint-solver.js:1561:17
at Function.time (/tools/tool-env/profile.js:305:10)
at [object Object].CS.Solver.getAnswer (packages/constraint-solver.js:1560:23)
at packages/constraint-solver.js:2258:25
at Object.Logic.disablingAssertions (packages/logic-solver.js:390:12)
at Function.CS.PackagesResolver._resolveWithInput (packages/constraint-solver.js:2257:16)
at [object Object].CS.PackagesResolver.resolve (packages/constraint-solver.js:2221:34)
at /tools/project-context.js:518:35
at Function.time (/tools/tool-env/profile.js:305:10)
at /tools/project-context.js:514:19
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at /tools/project-context.js:486:20
at /tools/packaging/catalog/catalog.js:100:5
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.catalog.runAndRetryWithRefreshIfHelpful (/tools/packaging/catalog/catalog.js:99:31)
at ProjectContext._resolveConstraints (/tools/project-context.js:485:13)
at /tools/project-context.js:268:9
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at ProjectContext._completeStagesThrough (/tools/project-context.js:258:18)
at /tools/project-context.js:228:12
at Function.run (/tools/tool-env/profile.js:490:12)
at ProjectContext.resolveConstraints (/tools/project-context.js:227:13)
at /tools/cli/commands-packages.js:1682:22
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.main.captureAndExit (/tools/cli/main.js:271:29)
at Command.func (/tools/cli/commands-packages.js:1680:8)
at /tools/cli/main.js:1454:23
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
(Stackoverflow is saying I need to add more details, but I don't have any right now.)
What can I do to fix this?
I had to remove yogiben:admin because of its dependency on an older version of aldeed:tabular.
You should be able to add yogiben:admin back again and it should work.
I have just started getting this on Meteor. It compiles perfectly on a Mac OS X system but when I upload it to a Linux system it produces the following. Any thoughts? Thanks :)
/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:245
throw(ex);
^
Error: EXDEV, rename '/opt/meteor/src/.meteor/local/isopacks/npm-container'
at Object.Future.wait (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:398:15)
at Object.wrapper [as rename] (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/files.js:1350:24)
at Object.files.renameDirAlmostAtomically (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/files.js:810:11)
at [object Object]._.extend.complete (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/builder.js:482:11)
at [object Object]._.extend.saveToPath (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/isopack.js:1075:15)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/isopack-cache.js:236:21
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:352:18
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:345:34
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:343:23
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at Object.enterJob (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:317:26)
at [object Object]._.extend._loadLocalPackage (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/isopack-cache.js:198:18)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/isopack-cache.js:149:14
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:352:18
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:345:34
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:343:23
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at Object.enterJob (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:317:26)
at [object Object]._.extend._ensurePackageLoaded (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/isopack-cache.js:141:20)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/isopack-cache.js:63:14
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/package-map.js:50:7
at Function._.each._.forEach (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:87:22)
at [object Object]._.extend.eachPackage (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/package-map.js:42:7)
at [object Object]._.extend.buildLocalPackages (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/isopack-cache.js:62:24)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/project-context.js:698:25
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:352:18
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:345:34
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:343:23
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at Object.enterJob (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:317:26)
at ProjectContext._.extend._buildLocalPackages (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/project-context.js:697:18)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/project-context.js:238:35
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:352:18
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:345:34
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:343:23
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at Object.enterJob (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:317:26)
at ProjectContext._.extend._completeStagesThrough (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/project-context.js:228:18)
at ProjectContext._.extend.saveChangedMetadata (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/project-context.js:216:10)
at ProjectContext._.extend.prepareProjectForBuild (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/project-context.js:221:10)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/commands.js:793:20
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:264:13
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:257:29
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:255:18
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:246:23
at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
at Object.capture (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:245:19)
at Object.main.captureAndExit (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/main.js:271:29)
at buildCommand (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/commands.js:792:8)
at Command.main.registerCommand._.extend.name [as func] (/root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/commands.js:746:12)
at /root/.meteor/packages/meteor-tool/.1.1.3.4sddkj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/main.js:1363:23
- - - - -
Removing the meteor local directory will do the stuff working.
cd $WORKDIR
rm -fr .meteor/local
I ran into a similar problem when trying to build my app for docker.
My initial Dockerfile looked something like this:
ADD . /app
WORKDIR /app
RUN meteor build / --directory
WORKDIR /bundle/programs/server
RUN npm i
WORKDIR /bundle
RUN node main.js
And I kept running into the issue you described above.
After checking out a docker image for Meteor that worked, I noticed the following comment: https://github.com/meteorhacks/meteord/blob/master/base/scripts/lib/build_app.sh#L6
I then modified my Dockerfile to this:
ADD . /app
RUN cp -R /app /tmp/app
WORKDIR /tmp/app
RUN meteor build / --directory
WORKDIR /bundle/programs/server
RUN npm i
WORKDIR /bundle
RUN node main.js
Which solved my problems.
Copying the files without the .meteor folder can help
Meteor will re-compile it on your different server/box and it should work correctly.
What have I do, to use Meteor.setInterval on server side?
When I use it, it's work, but I get:
Exception in setInterval callback: Error: Method not found [404]
I20150429-15:47:50.897(2)? at [object Object]._.extend.apply (packages/ddp/livedata_server.js:1502:1)
I20150429-15:47:50.897(2)? at [object Object]._.extend.call
(packages/ddp/livedata_server.js:1472:1)
I20150429-15:47:50.897(2)?
at app/server/cronJob.js:35:43
I20150429-15:47:50.897(2)?
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20150429-15:47:50.897(2)? at packages/meteor/timers.js:6:1
I20150429-15:47:50.898(2)? at runWithEnvironment
(packages/meteor/dynamics_nodejs.js:108:1)
I get this error even then I try this:
Meteor.setInterval(function(){
console.log("test");
});
Why it happens?
You need to specify a delay for the interval, e.g., 5 seconds:
Meteor.setInterval(function(){
console.log("test");
}, 5000);
It's hard to know what the behavior will be without a specified time interval.
I did
meteor update
All packages are manually added via meteor add
Here is the log:
=> Started proxy.
=> Started MongoDB.
=> Starting your app...
/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
throw(ex);
^
TypeError: Cannot read property 'name' of undefined
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/compiler.js:378:34
at Function._.each._.forEach (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:87:22)
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/compiler.js:371:7
at Array.forEach (native)
at Function._.each._.forEach (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at compileUnibuild (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/compiler.js:370:5)
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/compiler.js:888:27
at Array.forEach (native)
at Function._.each._.forEach (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at Object.compiler.compile (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/compiler.js:887:5)
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/bundler.js:1794:26
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:247:13
at [object Object]._.extend.withValue (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:240:29
at [object Object]._.extend.withValue (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:238:18
at [object Object]._.extend.withValue (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:229:23
at [object Object]._.extend.withValue (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at Object.capture (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:228:19)
at Object.exports.bundle (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/bundler.js:1716:31)
at bundleApp (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:481:28)
at [object Object]._.extend._runOnce (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:499:24)
at [object Object]._.extend._fiber (/Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:685:28)
at /Users/test/.meteor/packages/meteor-tool/.1.0.33.1b5lzqo++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:360:12
OK the error is gone if I delete all the symlinks in /packages/ folder.
See discover meteor's blog post for why you can delete that folder.