Closed TienHai closed 11 years ago
Hi! Thank you for the test report, this is indeed the same error as before. Daniel
On 7 Oct 2013, at 20:49, Tien haï wrote:
Hi,
I try to open ePub3 file cole-voyage-of-life-20120320.epub (I found it in readium-sdk/TestData/ ), the app no crash when open ePub file. But can see the page, the page is blank, I have this error:
10-07 13:06:13.631: I/NavigationTableActivity(6592): Open webview at : 0-intro.xhtml 10-07 13:06:13.821: D/WebViewActivity(6592): onPageStarted: file:///android_asset/readium-shared-js/reader.html 10-07 13:06:14.021: D/dalvikvm(6592): GC_CONCURRENT freed 184K, 26% free 8091K/10887K, paused 3ms+3ms 10-07 13:06:14.091: D/OpenGLRenderer(6592): Flushing caches (mode 0) 10-07 13:06:14.521: E/Web Console(6592): Uncaught TypeError: Object function (a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=j(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this.escapedAttributes={};this.cid=f.uniqueId("c");if(!this.set(a, 10-07 13:06:14.521: E/Web Console(6592): {silent:!0}))throw Error("Can't create an invalid model");delete this.changed;this.previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)} has no method 'bindRoutes' at file:///android_asset/readium-shared-js/lib/backbone.min.js:24 10-07 13:06:14.521: E/Web Console(6592): Uncaught TypeError: Object function (a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=j(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this.escapedAttributes={};this.cid=f.uniqueId("c");if(!this.set(a, 10-07 13:06:14.521: E/Web Console(6592): {silent:!0}))throw Error("Can't create an invalid model");delete this.changed;this.previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)} has no method 'bindRoutes' at file:///android_asset/readium-shared-js/lib/backbone.min.js:24 10-07 13:06:14.651: D/WebViewActivity(6592): onPageFinished: file:///android_asset/readium-shared-js/reader.html 10-07 13:06:14.651: D/WebViewActivity(6592): openPageRequestData: org.readium.sdk.android.launcher.model.OpenPageRequest@413ff52 10-07 13:06:14.651: D/libepub3 ./../../Platform/Android/jni/jni/jni_ptr.cpp:204: PointerPool::get(): got pointer 1BCB1C(3) package [./../../Platform/Android/jni/epub3.cpp:349] 10-07 13:06:14.651: D/libepub3 ./../../Platform/Android/jni/jni/jni_ptr.cpp:204: PointerPool::get(): got pointer 1BCB1C(6) package [./../../Platform/Android/jni/epub3.cpp:349] 10-07 13:06:14.651: D/libepub3 ./../../Platform/Android/jni/package.cpp:119: getProperty(): called for name='layout' pref='rendition' 10-07 13:06:14.651: D/libepub3 ./../../Platform/Android/jni/package.cpp:132: getProperty(): returning EMPTY 10-07 13:06:14.651: I/ReadiumJSApi(6592): loadJS: $(document).ready(function () {ReadiumSDK.reader.openBook({"package":{"mediaOverlays":[],"spine":{"items":[{"idref":"i","href":"xhtml\/0-intro.xhtml","rendition_layout":"","page_spread":""},{"idref":"s1a","href":"xhtml\/1a-childhood-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s1b","href":"xhtml\/1b-childhood-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s2a","href":"xhtml\/2a-youth-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s2b","href":"xhtml\/2b-youth-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s3a","href":"xhtml\/3a-manhood-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s3b","href":"xhtml\/3b-manhood-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s4a","href":"xhtml\/4a-oldage-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s4b","href":"xhtml\/4b-oldage-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s5","href":"xhtml\/5-significance.xhtml","rendition_layout":"","page_spread":""}],"direction":""},"rendition_layout":"","rootUrl":"EPUB\/"},"openPageRequest":{"elementCfi":"","spineItemPageIndex":0,"idref":"","sourceFileHref":"xhtml\/nav.xhtml","contentRefUrl":"0-intro.xhtml"},"settings":{"fontSize":100,"columnGap":20,"isSyntheticSpread":false}});}); 10-07 13:06:14.701: E/Web Console(6592): Uncaught TypeError: undefined is not a function at file:///android_asset/readium-shared-js/js/views/reader_view.js:98
With the latest code in readium-shared-js, the latest code of readium-sdk and the latest LaucherAndroid, for branch develop.
Tien Haï
— Reply to this email directly or view it on GitHub.
Hi Daniel,
Yes is a same log, I close issue in repository readium-sdk.
I complete with my environnement:
Debian wheezy android-ndk-r9-linux-x86_64 adt-bundle-linux-x86_64 android-sdk_r22.2.1-linux
Device : Memup Android 4.0 Archos 10 Titanium Android 4.1
Tien Haï
Hi Tien, Daniel,
I was also having this bug. I discover that it was related to the Launcher-Android/SDKLauncher-Android/assets/readium-shared-js/reader.html file. In the head tag, some javascript files where needed but not included in reader.html. It should work if you update readium/readium-sdk and readium/Launcher-Android in the develop branch. Please let me know if the problem still persists.
Yonathan
Hi Yonathan,
I update my readium/readium-sdk and readium/Launcher-Android in the develop branch. the compil of sdk is OK.
I open cole-voyage-of-life-20120320.epub, I get in readium-sdk/TestData, but the page is always blank.
log: 10-09 11:44:03.182: I/NavigationTableActivity(9252): Open webview at : 0-intro.xhtml 10-09 11:44:03.472: I/dalvikvm(9252): threadid=1: recursive native library load attempt (/system/lib/libwebcore.so) 10-09 11:44:03.472: D/dalvikvm(9252): No JNI_OnLoad found in /system/lib/libchromium_net.so 0x0, skipping init 10-09 11:44:03.682: D/WebViewActivity(9252): onPageStarted: file:///android_asset/readium-shared-js/reader.html 10-09 11:44:03.692: D/dalvikvm(9252): GC_CONCURRENT freed 4512K, 43% free 6296K/10887K, paused 1ms+2ms 10-09 11:44:03.742: D/OpenGLRenderer(9252): Flushing caches (mode 0) 10-09 11:44:04.212: E/Web Console(9252): Uncaught TypeError: Object function (a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=j(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this._escapedAttributes={};this.cid=f.uniqueId("c");if(!this.set(a, 10-09 11:44:04.212: E/Web Console(9252): {silent:!0}))throw Error("Can't create an invalid model");delete this._changed;this._previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)} has no method '_bindRoutes' at file:///android_asset/readium-shared-js/lib/backbone.min.js:24 10-09 11:44:04.222: E/Web Console(9252): Uncaught TypeError: Object function (a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=j(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this._escapedAttributes={};this.cid=f.uniqueId("c");if(!this.set(a, 10-09 11:44:04.222: E/Web Console(9252): {silent:!0}))throw Error("Can't create an invalid model");delete this._changed;this._previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)} has no method '_bindRoutes' at file:///android_asset/readium-shared-js/lib/backbone.min.js:24 10-09 11:44:04.332: D/WebViewActivity(9252): onReaderInitialized 10-09 11:44:04.342: D/WebViewActivity(9252): onPageFinished: file:///android_asset/readium-shared-js/reader.html 10-09 11:44:04.342: D/WebViewActivity(9252): openPageRequestData: org.readium.sdk.android.launcher.model.OpenPageRequest@41430980 10-09 11:44:04.342: D/libepub3 ./../../Platform/Android/jni/jni/jni_ptr.cpp:204: PointerPool::get(): got pointer 1BB494(3) package [./../../Platform/Android/jni/epub3.cpp:349] 10-09 11:44:04.342: D/libepub3 ./../../Platform/Android/jni/jni/jni_ptr.cpp:204: PointerPool::get(): got pointer 1BB494(6) package [./../../Platform/Android/jni/epub3.cpp:349] 10-09 11:44:04.342: D/libepub3 ./../../Platform/Android/jni/package.cpp:119: getProperty(): called for name='layout' pref='rendition' 10-09 11:44:04.342: D/libepub3 ./../../Platform/Android/jni/package.cpp:132: getProperty(): returning EMPTY 10-09 11:44:04.352: I/ReadiumJSApi(9252): loadJS: $(document).ready(function () {ReadiumSDK.reader.openBook({"package":{"mediaOverlays":[],"spine":{"items":[{"idref":"i","href":"xhtml\/0-intro.xhtml","rendition_layout":"","page_spread":""},{"idref":"s1a","href":"xhtml\/1a-childhood-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s1b","href":"xhtml\/1b-childhood-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s2a","href":"xhtml\/2a-youth-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s2b","href":"xhtml\/2b-youth-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s3a","href":"xhtml\/3a-manhood-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s3b","href":"xhtml\/3b-manhood-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s4a","href":"xhtml\/4a-oldage-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s4b","href":"xhtml\/4b-oldage-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s5","href":"xhtml\/5-significance.xhtml","rendition_layout":"","page_spread":""}],"direction":""},"rendition_layout":"","rootUrl":"EPUB\/"},"openPageRequest":{"sourceFileHref":"xhtml\/nav.xhtml","contentRefUrl":"0-intro.xhtml"},"settings":{"fontSize":100,"columnGap":20,"isSyntheticSpread":false}});}); 10-09 11:44:04.412: E/Web Console(9252): Uncaught TypeError: undefined is not a function at file:///android_asset/readium-shared-js/js/views/reader_view.js:98
Tien Haï
Yonathan,
I have 2 devices,
Memup Android 4.0: result the log a will just send.
Archos Android 4.1: OPEN AND READ ePub3
Tien Haï
Hi,
I close this issue, develop branch work with device in Android 4.1
Hi,
I try to open ePub3 file cole-voyage-of-life-20120320.epub (I found it in readium-sdk/TestData/ ), the app no crash when open ePub file. But can see the page, the page is blank, I have this error:
10-07 13:06:13.631: I/NavigationTableActivity(6592): Open webview at : 0-intro.xhtml 10-07 13:06:13.821: D/WebViewActivity(6592): onPageStarted: file:///android_asset/readium-shared-js/reader.html 10-07 13:06:14.021: D/dalvikvm(6592): GC_CONCURRENT freed 184K, 26% free 8091K/10887K, paused 3ms+3ms 10-07 13:06:14.091: D/OpenGLRenderer(6592): Flushing caches (mode 0) 10-07 13:06:14.521: E/Web Console(6592): Uncaught TypeError: Object function (a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=j(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this.escapedAttributes={};this.cid=f.uniqueId("c");if(!this.set(a, 10-07 13:06:14.521: E/Web Console(6592): {silent:!0}))throw Error("Can't create an invalid model");delete this.changed;this.previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)} has no method 'bindRoutes' at file:///android_asset/readium-shared-js/lib/backbone.min.js:24 10-07 13:06:14.521: E/Web Console(6592): Uncaught TypeError: Object function (a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=j(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this.escapedAttributes={};this.cid=f.uniqueId("c");if(!this.set(a, 10-07 13:06:14.521: E/Web Console(6592): {silent:!0}))throw Error("Can't create an invalid model");delete this.changed;this.previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)} has no method 'bindRoutes' at file:///android_asset/readium-shared-js/lib/backbone.min.js:24 10-07 13:06:14.651: D/WebViewActivity(6592): onPageFinished: file:///android_asset/readium-shared-js/reader.html 10-07 13:06:14.651: D/WebViewActivity(6592): openPageRequestData: org.readium.sdk.android.launcher.model.OpenPageRequest@413ff52 10-07 13:06:14.651: D/libepub3 ./../../Platform/Android/jni/jni/jni_ptr.cpp:204: PointerPool::get(): got pointer 1BCB1C(3) package [./../../Platform/Android/jni/epub3.cpp:349] 10-07 13:06:14.651: D/libepub3 ./../../Platform/Android/jni/jni/jni_ptr.cpp:204: PointerPool::get(): got pointer 1BCB1C(6) package [./../../Platform/Android/jni/epub3.cpp:349] 10-07 13:06:14.651: D/libepub3 ./../../Platform/Android/jni/package.cpp:119: getProperty(): called for name='layout' pref='rendition' 10-07 13:06:14.651: D/libepub3 ./../../Platform/Android/jni/package.cpp:132: getProperty(): returning EMPTY 10-07 13:06:14.651: I/ReadiumJSApi(6592): loadJS: $(document).ready(function () {ReadiumSDK.reader.openBook({"package":{"mediaOverlays":[],"spine":{"items":[{"idref":"i","href":"xhtml\/0-intro.xhtml","rendition_layout":"","page_spread":""},{"idref":"s1a","href":"xhtml\/1a-childhood-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s1b","href":"xhtml\/1b-childhood-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s2a","href":"xhtml\/2a-youth-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s2b","href":"xhtml\/2b-youth-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s3a","href":"xhtml\/3a-manhood-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s3b","href":"xhtml\/3b-manhood-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s4a","href":"xhtml\/4a-oldage-text.xhtml","rendition_layout":"","page_spread":""},{"idref":"s4b","href":"xhtml\/4b-oldage-painting.xhtml","rendition_layout":"pre-paginated","page_spread":""},{"idref":"s5","href":"xhtml\/5-significance.xhtml","rendition_layout":"","page_spread":""}],"direction":""},"rendition_layout":"","rootUrl":"EPUB\/"},"openPageRequest":{"elementCfi":"","spineItemPageIndex":0,"idref":"","sourceFileHref":"xhtml\/nav.xhtml","contentRefUrl":"0-intro.xhtml"},"settings":{"fontSize":100,"columnGap":20,"isSyntheticSpread":false}});}); 10-07 13:06:14.701: E/Web Console(6592): Uncaught TypeError: undefined is not a function at file:///android_asset/readium-shared-js/js/views/reader_view.js:98
With the latest code in readium-shared-js, the latest code of readium-sdk and the latest LaucherAndroid, for branch develop.
Tien Haï