Skip to content

Instantly share code, notes, and snippets.

@anzfactory
Created November 15, 2020 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anzfactory/63fedc781624258a4c91c11a75377ff4 to your computer and use it in GitHub Desktop.
Save anzfactory/63fedc781624258a4c91c11a75377ff4 to your computer and use it in GitHub Desktop.
特定の画像表示でクラッシュする 🤔
/*
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H2, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.51.1)
[✓] Connected device (1 available)
*/
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
appBar: AppBar(
title: Text("画像表示でクラッシュするンゴ"),
),
body: Center(
child: SizedBox.fromSize(
size: Size.fromHeight(200),
child: Image.network(
// この画像表示するとクラッシュする
"http://ketsuekigatakun.com/wp-content/uploads/2019/03/bigstock-146597552.jpg",
// こっちは大丈夫
// "https://higurashianime.com/ogp2.jpg",
),
),
),
),
);
}
}
@anzfactory
Copy link
Author

log

E/flutter (10406): [ERROR:flutter/lib/ui/painting/image_descriptor.cc(181)] Failed to get pixels for image.
F/libc    (10406): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 10435 (flutter_sandbox), pid 10406 (flutter_sandbox)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.190920.001/5891938:user/release-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2020-11-15 13:01:27+0900
pid: 10406, tid: 10435, name: flutter_sandbox  >>> com.example.flutter_sandbox <<<
uid: 10137
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    eax ca159d28  ebx cc58b180  ecx 00000000  edx 00000000
    edi ca159db0  esi ca159d20
    ebp ca159d58  esp ca159d10  eip cbdb7c71
backtrace:
      #00 pc 012a8c71  /data/app/com.example.flutter_sandbox-vWdo3_N8zGmK0OHntnz39Q==/lib/x86/libflutter.so (BuildId: 2e1bfc4b7c8459116dcc4bb4d0c42d090174c072)
      #01 pc 012a94d4  /data/app/com.example.flutter_sandbox-vWdo3_N8zGmK0OHntnz39Q==/lib/x86/libflutter.so (BuildId: 2e1bfc4b7c8459116dcc4bb4d0c42d090174c072)
      #02 pc 011bf68f  /data/app/com.example.flutter_sandbox-vWdo3_N8zGmK0OHntnz39Q==/lib/x86/libflutter.so (BuildId: 2e1bfc4b7c8459116dcc4bb4d0c42d090174c072)
      #03 pc 011c07b2  /data/app/com.example.flutter_sandbox-vWdo3_N8zGmK0OHntnz39Q==/lib/x86/libflutter.so (BuildId: 2e1bfc4b7c8459116dcc4bb4d0c42d090174c072)
      #04 pc 011a914f  /data/app/com.example.flutter_sandbox-vWdo3_N8zGmK0OHntnz39Q==/lib/x86/libflutter.so (BuildId: 2e1bfc4b7c8459116dcc4bb4d0c42d090174c072)
      #05 pc 011a8d53  /data/app/com.example.flutter_sandbox-vWdo3_N8zGmK0OHntnz39Q==/lib/x86/libflutter.so (BuildId: 2e1bfc4b7c8459116dcc4bb4d0c42d090174c072)
      #06 pc 011a958a  /data/app/com.example.flutter_sandbox-vWdo3_N8zGmK0OHntnz39Q==/lib/x86/libflutter.so (BuildId: 2e1bfc4b7c8459116dcc4bb4d0c42d090174c072)
      #07 pc 0011a8e5  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+53) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
      #08 pc 000af6a7  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
Lost connection to device.
Exited (sigterm)

@anzfactory
Copy link
Author

関係ある? 👀

flutter/flutter#66921

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment