yellowcath / PhotoMovie

Using your photos to create cool videos.(高仿抖音照片电影功能)
Apache License 2.0
694 stars 145 forks source link

Can you help me this? NullPointerException at GaussianBlurLayer #16

Open daohieu91 opened 5 years ago

daohieu91 commented 5 years ago

at com.hw.photomovie.segment.layer.GaussianBlurLayer.allocPhotos (GaussianBlurLayer.java) or .drawFrame (GaussianBlurLayer.java) or .getRequiredPhotoNum (GaussianBlurLayer.java) or .setViewprot (GaussianBlurLayer.java) at com.hw.photomovie.segment.AbsLayerSegment.allocPhotoToLayers (AbsLayerSegment.java) at com.hw.photomovie.segment.AbsLayerSegment.onDataPrepared (AbsLayerSegment.java) at com.hw.photomovie.segment.MulitBitmapSegment.checkAllLoaded (MulitBitmapSegment.java) at com.hw.photomovie.segment.MulitBitmapSegment.allocPhotos (MulitBitmapSegment.java) or .onDataLoaded (MulitBitmapSegment.java) or .onDownloaded (MulitBitmapSegment.java) or .onError (MulitBitmapSegment.java) or .setViewport (MulitBitmapSegment.java) at com.hw.photomovie.model.SimplePhotoData.access$000 (SimplePhotoData.java) or .access$100 (SimplePhotoData.java) or .loadBitmap (SimplePhotoData.java) or .prepareData (SimplePhotoData.java) or .scaleBitmap (SimplePhotoData.java) at com.hw.photomovie.segment.MulitBitmapSegment.onPrepare (MulitBitmapSegment.java) at com.hw.photomovie.segment.MovieSegment.prepare (MovieSegment.java) at com.hw.photomovie.PhotoMoviePlayer.restartImpl (PhotoMoviePlayer.java) at com.hw.photomovie.PhotoMoviePlayer.access$500 (PhotoMoviePlayer.java) or .onMovieUpdate (PhotoMoviePlayer.java) or .stop (PhotoMoviePlayer.java) at com.hw.photomovie.PhotoMoviePlayer$3$1.run (PhotoMoviePlayer.java)

yellowcath commented 5 years ago

What is the line number?

daohieu91 commented 5 years ago

java.lang.NullPointerException: at com.hw.photomovie.segment.layer.GaussianBlurLayer.allocPhotos (GaussianBlurLayer.java) or .drawFrame (GaussianBlurLayer.java) or .getRequiredPhotoNum (GaussianBlurLayer.java) or .setViewprot (GaussianBlurLayer.java) at com.hw.photomovie.segment.AbsLayerSegment.allocPhotoToLayers (AbsLayerSegment.java) at com.hw.photomovie.segment.AbsLayerSegment.onDataPrepared (AbsLayerSegment.java) at com.hw.photomovie.segment.MulitBitmapSegment.checkAllLoaded (MulitBitmapSegment.java) at com.hw.photomovie.segment.MulitBitmapSegment.allocPhotos (MulitBitmapSegment.java) or .onDataLoaded (MulitBitmapSegment.java) or .onDownloaded (MulitBitmapSegment.java) or .onError (MulitBitmapSegment.java) or .setViewport (MulitBitmapSegment.java) at com.hw.photomovie.model.SimplePhotoData.access$000 (SimplePhotoData.java) or .access$100 (SimplePhotoData.java) or .loadBitmap (SimplePhotoData.java) or .prepareData (SimplePhotoData.java) or .scaleBitmap (SimplePhotoData.java) at com.hw.photomovie.segment.MulitBitmapSegment.onPrepare (MulitBitmapSegment.java) at com.hw.photomovie.segment.MovieSegment.prepare (MovieSegment.java) at com.hw.photomovie.PhotoMovie$SegmentPicker.getPreSegment (PhotoMovie.java) or .getSegmentProgress (PhotoMovie.java) or .pickCurrentSegment (PhotoMovie.java) at com.hw.photomovie.render.MovieRenderer.drawMovieFrame (MovieRenderer.java) or .release (MovieRenderer.java) or .setMovieViewport (MovieRenderer.java) or .setOnReleaseListener (MovieRenderer.java) or .setPainter (MovieRenderer.java) or .setPhotoMovie (MovieRenderer.java) at com.hw.photomovie.render.GLMovieRenderer.checkGLPrepared (GLMovieRenderer.java) or .drawMovieFrame (GLMovieRenderer.java) or .initTexture (GLMovieRenderer.java) or .release (GLMovieRenderer.java) or .releaseTextures (GLMovieRenderer.java) or .runOnUiThread (GLMovieRenderer.java) or .setMovieFilter (GLMovieRenderer.java) or .setMovieViewport (GLMovieRenderer.java) or .setWaterMark (GLMovieRenderer.java) at com.hw.photomovie.render.GLTextureMovieRender$1.onDrawFrame (GLTextureMovieRender.java) or .onSurfaceChanged (GLTextureMovieRender.java) or .onSurfaceCreated (GLTextureMovieRender.java) or .onSurfaceDestroyed (GLTextureMovieRender.java) at com.hw.photomovie.render.GLTextureView$GLThread.guardedRun (GLTextureView.java) at com.hw.photomovie.render.GLTextureView$GLThread.run (GLTextureView.java)

maykfery commented 2 years ago

Any updates on this issue? I have the same problem.