davidbau / seedrandom

seeded random number generator for Javascript
2.04k stars 160 forks source link

TypeError: Object #<Object> has no method 'seedrandom' #22

Closed yoav-zibin closed 9 years ago

yoav-zibin commented 9 years ago

(Thanks again for an awesome project!)

My usage is really simple:

Then I do: Math.seedrandom(...)

It works really well, but I got an email with a JS error: TypeError: Object # has no method 'seedrandom' (I automatically send myself errors if they happened in production.)

The file seedrandom.min.js was definitely loaded because I use HTML5 manifest, so either everything loads or nothing loads :)

I really have no idea how to reproduce it, but I wanted to record the issue in case someone else runs into it in the future.

It happened for this settings: URL: http://yoav-zibin.github.io/multiplayer-games/index.html#/main Navigator: appName=Netscape, appCodeName=Mozilla, platform=Linux armv7l, appVersion=5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, product=Gecko, userAgent=Mozilla/5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, vendor=Google Inc.

davidbau commented 9 years ago

The page http://yoav-zibin.github.io/multiplayer-games/index.html doesn't exist for me.

On Sun, Mar 8, 2015 at 1:45 PM, Yoav Zibin notifications@github.com wrote:

(Thanks again for an awesome project!)

My usage is really simple:

Then I do: Math.seedrandom(...)

It works really well, but I got an email with a JS error: TypeError: Object # has no method 'seedrandom' (I automatically send myself errors if they happened in production.)

The file seedrandom.min.js was definitely loaded because I use HTML5 manifest, so either everything loads or nothing loads :)

I really have no idea how to reproduce it, but I wanted to record the issue in case someone else runs into it in the future.

It happened for this settings: URL: http://yoav-zibin.github.io/multiplayer-games/index.html#/main Navigator: appName=Netscape, appCodeName=Mozilla, platform=Linux armv7l, appVersion=5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, product=Gecko, userAgent=Mozilla/5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, vendor=Google Inc.

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22.

yoav-zibin commented 9 years ago

Really??? I've tried it in FF, Chrome and Safari just now and it works fine for me. Can you open the console and email me (yoav.zibin@gmail.com) any errors you see? I would really appreciate it :) (It's intended to be loaded from inside a mobile browser: https://play.google.com/store/apps/details?id=com.yoavzibin.megagame )

On Sun, Mar 8, 2015 at 2:48 PM, David Bau notifications@github.com wrote:

The page http://yoav-zibin.github.io/multiplayer-games/index.html doesn't exist for me.

On Sun, Mar 8, 2015 at 1:45 PM, Yoav Zibin notifications@github.com wrote:

(Thanks again for an awesome project!)

My usage is really simple:

Then I do: Math.seedrandom(...)

It works really well, but I got an email with a JS error: TypeError: Object # has no method 'seedrandom' (I automatically send myself errors if they happened in production.)

The file seedrandom.min.js was definitely loaded because I use HTML5 manifest, so either everything loads or nothing loads :)

I really have no idea how to reproduce it, but I wanted to record the issue in case someone else runs into it in the future.

It happened for this settings: URL: http://yoav-zibin.github.io/multiplayer-games/index.html#/main Navigator: appName=Netscape, appCodeName=Mozilla, platform=Linux armv7l, appVersion=5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, product=Gecko, userAgent=Mozilla/5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, vendor=Google Inc.

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22.

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22#issuecomment-77767130.

davidbau commented 9 years ago

Ah, it's my home firewall (for the kids) that's picking up on "multiplayer-games" in the URL. I'll look again.

On Sun, Mar 8, 2015 at 3:02 PM, Yoav Zibin notifications@github.com wrote:

Really??? I've tried it in FF, Chrome and Safari just now and it works fine for me. Can you open the console and email me (yoav.zibin@gmail.com) any errors you see? I would really appreciate it :) (It's intended to be loaded from inside a mobile browser: https://play.google.com/store/apps/details?id=com.yoavzibin.megagame )

On Sun, Mar 8, 2015 at 2:48 PM, David Bau notifications@github.com wrote:

The page http://yoav-zibin.github.io/multiplayer-games/index.html doesn't exist for me.

On Sun, Mar 8, 2015 at 1:45 PM, Yoav Zibin notifications@github.com wrote:

(Thanks again for an awesome project!)

My usage is really simple:

Then I do: Math.seedrandom(...)

It works really well, but I got an email with a JS error: TypeError: Object # has no method 'seedrandom' (I automatically send myself errors if they happened in production.)

The file seedrandom.min.js was definitely loaded because I use HTML5 manifest, so either everything loads or nothing loads :)

I really have no idea how to reproduce it, but I wanted to record the issue in case someone else runs into it in the future.

It happened for this settings: URL: http://yoav-zibin.github.io/multiplayer-games/index.html#/main Navigator: appName=Netscape, appCodeName=Mozilla, platform=Linux armv7l, appVersion=5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, product=Gecko, userAgent=Mozilla/5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, vendor=Google Inc.

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22.

— Reply to this email directly or view it on GitHub <https://github.com/davidbau/seedrandom/issues/22#issuecomment-77767130 .

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22#issuecomment-77767857.

davidbau commented 9 years ago

OK, the page works for me, and like you, I cannot reproduce the problem. By the way, I've always had problems with app manifests in my own work (though not this sort of problem); and I'm not sure about support for app manifests for older browsers. Does your logging report a user agent?

David

On Sun, Mar 8, 2015 at 3:13 PM, David Bau david.bau@gmail.com wrote:

Ah, it's my home firewall (for the kids) that's picking up on "multiplayer-games" in the URL. I'll look again.

On Sun, Mar 8, 2015 at 3:02 PM, Yoav Zibin notifications@github.com wrote:

Really??? I've tried it in FF, Chrome and Safari just now and it works fine for me. Can you open the console and email me (yoav.zibin@gmail.com) any errors you see? I would really appreciate it :) (It's intended to be loaded from inside a mobile browser: https://play.google.com/store/apps/details?id=com.yoavzibin.megagame )

On Sun, Mar 8, 2015 at 2:48 PM, David Bau notifications@github.com wrote:

The page http://yoav-zibin.github.io/multiplayer-games/index.html doesn't exist for me.

On Sun, Mar 8, 2015 at 1:45 PM, Yoav Zibin notifications@github.com wrote:

(Thanks again for an awesome project!)

My usage is really simple:

Then I do: Math.seedrandom(...)

It works really well, but I got an email with a JS error: TypeError: Object # has no method 'seedrandom' (I automatically send myself errors if they happened in production.)

The file seedrandom.min.js was definitely loaded because I use HTML5 manifest, so either everything loads or nothing loads :)

I really have no idea how to reproduce it, but I wanted to record the issue in case someone else runs into it in the future.

It happened for this settings: URL: http://yoav-zibin.github.io/multiplayer-games/index.html#/main Navigator: appName=Netscape, appCodeName=Mozilla, platform=Linux armv7l, appVersion=5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, product=Gecko, userAgent=Mozilla/5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, vendor=Google Inc.

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22.

— Reply to this email directly or view it on GitHub <https://github.com/davidbau/seedrandom/issues/22#issuecomment-77767130 .

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22#issuecomment-77767857.

yoav-zibin commented 9 years ago

Yes, I added it in my bug report: userAgent=Mozilla/5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L)

AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36,

I can't reproduce it either. You can close this bug as non-reproducible. If I get it more times, I'll reopen :)

On Sun, Mar 8, 2015 at 3:20 PM, David Bau notifications@github.com wrote:

OK, the page works for me, and like you, I cannot reproduce the problem. By the way, I've always had problems with app manifests in my own work (though not this sort of problem); and I'm not sure about support for app manifests for older browsers. Does your logging report a user agent?

David

On Sun, Mar 8, 2015 at 3:13 PM, David Bau david.bau@gmail.com wrote:

Ah, it's my home firewall (for the kids) that's picking up on "multiplayer-games" in the URL. I'll look again.

On Sun, Mar 8, 2015 at 3:02 PM, Yoav Zibin notifications@github.com wrote:

Really??? I've tried it in FF, Chrome and Safari just now and it works fine for me. Can you open the console and email me (yoav.zibin@gmail.com) any errors you see? I would really appreciate it :) (It's intended to be loaded from inside a mobile browser: https://play.google.com/store/apps/details?id=com.yoavzibin.megagame )

On Sun, Mar 8, 2015 at 2:48 PM, David Bau notifications@github.com wrote:

The page http://yoav-zibin.github.io/multiplayer-games/index.html doesn't exist for me.

On Sun, Mar 8, 2015 at 1:45 PM, Yoav Zibin notifications@github.com wrote:

(Thanks again for an awesome project!)

My usage is really simple:

Then I do: Math.seedrandom(...)

It works really well, but I got an email with a JS error: TypeError: Object # has no method 'seedrandom' (I automatically send myself errors if they happened in production.)

The file seedrandom.min.js was definitely loaded because I use HTML5 manifest, so either everything loads or nothing loads :)

I really have no idea how to reproduce it, but I wanted to record the issue in case someone else runs into it in the future.

It happened for this settings: URL: http://yoav-zibin.github.io/multiplayer-games/index.html#/main Navigator: appName=Netscape, appCodeName=Mozilla, platform=Linux armv7l, appVersion=5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, product=Gecko, userAgent=Mozilla/5.0 (Linux; Android 4.4.2; Endeavour_101L Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36, vendor=Google Inc.

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22.

— Reply to this email directly or view it on GitHub < https://github.com/davidbau/seedrandom/issues/22#issuecomment-77767130 .

— Reply to this email directly or view it on GitHub <https://github.com/davidbau/seedrandom/issues/22#issuecomment-77767857 .

— Reply to this email directly or view it on GitHub https://github.com/davidbau/seedrandom/issues/22#issuecomment-77768759.

davidbau commented 9 years ago

OK. http://caniuse.com/#feat=offline-apps only lists offline support on Chrome/40 Android, so it might not be using app manifests. Closing as no-repro.